[{"answer":[0,2,4,5],"code":"","created":"2020-03-19 13:56:26","explanation":null,"id":1,"level":0,"options":["Activities","Layouts","Content providers","Fragments","Broadcast receivers","Services"],"question":"Which are the main Android app components?","quiz_id":1,"type":"multi_select","updated":"2020-03-19 13:56:27"},{"answer":[3],"code":"","created":"2020-03-19 13:56:26","explanation":null,"id":2,"level":0,"options":["match_parent is used only for ViewGroup","fill_parent is used only for ViewGroup","There is no difference, but match_parent is deprecated starting from API Level 8","There is no difference, but fill_parent is deprecated starting from API Level 8"],"question":"What is the difference between match_parent and fill_parent?","quiz_id":1,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[0,3],"code":"","created":"2020-03-19 13:56:26","explanation":null,"id":3,"level":0,"options":["// This is an Android comment","<!-- This is an Android comment -->","# This is an Android comment","/* This is an Android comment */","/** This is an Android comment"],"question":"Which of the following statements are Android source code comments (not xml)?","quiz_id":1,"type":"multi_select","updated":"2020-03-19 13:56:27"},{"answer":[4],"code":"","created":"2020-03-19 13:56:26","explanation":null,"id":4,"level":1,"options":["// This is an Android doc comment","<!-- This is an Android doc comment -->","# This is an Android doc comment","/* This is an Android doc comment */","/** This is an Android doc comment */"],"question":"Which of the following statements is an Android documentation comment?","quiz_id":1,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[0],"code":"","created":"2020-03-19 13:56:26","explanation":null,"id":5,"level":0,"options":["Yes","No, all process use the same VM"],"question":"Each process in Android has its own virtual machine (VM).
Is this statement true?","quiz_id":1,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[0],"code":"","created":"2020-03-19 13:56:26","explanation":null,"id":6,"level":0,"options":["Activities","Services","Content providers","Broadcast receivers"],"question":"Which is the entry point for interacting with the user?","quiz_id":1,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[0],"code":"","created":"2020-03-19 13:56:26","explanation":null,"id":7,"level":0,"options":["Android package file","Executable file (.exe)","Executable script","Assembler"],"question":"What is the output of the Android compiler?","quiz_id":1,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[2],"code":"","created":"2020-03-19 13:56:26","explanation":null,"id":8,"level":0,"options":[".java",".rar",".apk",".exe"],"question":"Which is the extension of an Android package file?","quiz_id":1,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[1],"code":"","created":"2020-03-19 13:56:26","explanation":null,"id":9,"level":0,"options":["action","intent","object","event"],"question":"Activities, services, and broadcast receivers are activated by an asynchronous message called an ….","quiz_id":1,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[1],"code":"","created":"2020-03-19 13:56:26","explanation":null,"id":10,"level":0,"options":["AndroidSystem.xml","AndroidManifest.xml","Android.xml","Manifest.xml"],"question":"Which file is used to declare application components?","quiz_id":1,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[0],"code":"","created":"2020-03-19 13:56:26","explanation":null,"id":11,"level":0,"options":["startActivity( )","newActivity( )","Activity.start( )","launchActivity( )","runActivity( )"],"question":"Which method is used to start new Activity?","quiz_id":1,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[1],"code":"","created":"2020-03-19 13:56:26","explanation":null,"id":12,"level":0,"options":["startActivity( )","startActivityForResult( )","runActivityForResult( )","activityForResult( )"],"question":"Which method is used to start new Activity if you want to receive a result from the Activity when it finishes?","quiz_id":1,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[1],"code":"","created":"2020-03-19 13:56:26","explanation":null,"id":13,"level":0,"options":["sendMsg( )","sendBroadcast( )","sendBroadcastMsg( )","It's not possible"],"question":"Which method is used to send a message to another app?","quiz_id":1,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[0],"code":"","created":"2020-03-19 13:56:26","explanation":null,"id":14,"level":0,"options":["Explicit intent","Default intent","Implicit intent","Named intent"],"question":"Which Intent specifies the component to start by name?","quiz_id":1,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[3],"code":"","created":"2020-03-19 13:56:26","explanation":null,"id":15,"level":1,"options":["The service will start","The service will start but you cannot communicate with it","Noting","The system will throw an exception"],"question":"What will happen if you call bindService( ) on API level 21 and above with an implicit intent?","quiz_id":1,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[2],"code":"","created":"2020-03-19 13:56:26","explanation":null,"id":16,"level":0,"options":["Explicit intent","Default intent","Implicit intent","Named intent"],"question":"Which Intent declares a general action to perform, which allows a component from another app to handle it?","quiz_id":1,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[2],"code":"","created":"2020-03-19 13:56:26","explanation":null,"id":17,"level":0,"options":["Intent action","Intent","Intent filter","Intent service","Activity filter"],"question":"What do you need to declare in AndroidManifest.xml to allow other apps to directly start your activity with a certain kind of Intent?","quiz_id":1,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[3],"code":"","created":"2020-03-19 13:56:26","explanation":null,"id":18,"level":1,"options":["NotificationIntent","ForeignIntent","ActionIntent","PendingIntent"],"question":"Which Intent is used to grant permission to a foreign app to use the contained Intent as if it were executed from your app's own process?","quiz_id":1,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[3],"code":"","created":"2020-03-19 13:56:26","explanation":null,"id":19,"level":0,"options":["Explicit intent","Implicit intent","Manifest intent","It's not possible to start Activity without declaring it in the manifest file"],"question":"Which Intent is used to start activity without declaring it in the manifest file?","quiz_id":1,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[1],"code":"","created":"2020-03-19 13:56:26","explanation":null,"id":20,"level":0,"options":["onStart( )","onCreate( )","onInit( )","onResume( )"],"question":"Which Activity callback is called first when activity created?","quiz_id":1,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[0,1,2,4,6,7,9],"code":"","created":"2020-03-19 13:56:26","explanation":null,"id":21,"level":0,"options":["onCreate( )","onStart( )","onResume( )","onInit( )","onPause( )","onPlay( )","onRestart( )","onDestroy( )","onRemove( )","onStop( )"],"question":"Which are the Activity callback methods?","quiz_id":1,"type":"multi_select","updated":"2020-03-19 13:56:27"},{"answer":[4],"code":"","created":"2020-03-19 13:56:26","explanation":null,"id":22,"level":0,"options":["onCreateView( )","onStart( )","onResume( )","onInit( )","onCreate( )"],"question":"In which Activity callback you must call setContentView( )?","quiz_id":1,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[1],"code":"","created":"2020-03-19 13:56:26","explanation":null,"id":23,"level":0,"options":["onCreateView( )","setContentView( )","setView( )","setContentLayout( )","setLayout( )"],"question":"Which method is used to define the layout for the activity's user interface?","quiz_id":1,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[2],"code":"","created":"2020-03-19 13:56:26","explanation":null,"id":24,"level":1,"options":["onCreate( )","onResume( )","onPause( )","onRestart( )","onDestroy( )","onRemove( )","onStop( )"],"question":"Which Activity callback fires when the user taps the Back or Overlay button?","quiz_id":1,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[1],"code":"","created":"2020-03-19 13:56:26","explanation":null,"id":25,"level":1,"options":["Yes, when it needs to free up RAM","No, it kills the process in which the activity runs"],"question":"Can the system kill the activity directly?","quiz_id":1,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[0],"code":"","created":"2020-03-19 13:56:26","explanation":null,"id":26,"level":1,"options":["RESULT_CANCELED","RESULT_FAILED","RESULT_STOPPED","NO_RESULT"],"question":"Which result code the parent activity receives if a child activity is called with startActivityForResult(Intent, int) and fails for any reason?","quiz_id":1,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[1],"code":"","created":"2020-03-19 13:56:26","explanation":null,"id":27,"level":1,"options":["Yes","Yes, but you must defining a unique ID for each view","No"],"question":"If your activity instance is destroyed and recreated, the state of the layout is restored to its previous state with no code required by you.
Is this statement true?","quiz_id":1,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[0],"code":"","created":"2020-03-19 13:56:26","explanation":null,"id":28,"level":0,"options":["onSaveInstanceState( )","onSave( )","onSaveState( )","onSaveActivityState( )"],"question":"Which Activity method is used to save state information?","quiz_id":1,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[1],"code":"","created":"2020-03-19 13:56:26","explanation":null,"id":29,"level":1,"options":["Yes","No"],"question":"Does the onSaveInstanceState( ) callback fire when the user taps the Back button to exit the Activity?","quiz_id":1,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[2],"code":"","created":"2020-03-19 13:56:26","explanation":null,"id":59,"level":0,"options":["Super","Context","Object","This","Class","Application"],"question":"Which class is the root of the class hierarchy?","quiz_id":1,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[0],"code":"","created":"2020-03-19 13:56:26","explanation":null,"id":30,"level":0,"options":["Yes, with Intent's putExtra( ) method","Yes, with Intent's putData( ) method","No"],"question":"Is it possible to send data between activities?","quiz_id":1,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[2],"code":"","created":"2020-03-19 13:56:26","explanation":null,"id":31,"level":1,"options":["Yes","Yes, but it should extend Parcelable","Yes, but it should implement Parcelable","No"],"question":"Is it possible to send a custom object between activities?","quiz_id":1,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[0],"code":"","created":"2020-03-19 13:56:26","explanation":null,"id":32,"level":1,"options":["Yes, but you need to be certain that the exact same version of the custom class is present on both the sending and receiving apps","Yes, but a custom Parcelable should implement IPC interface","Yes, but a custom Parcelable size cannot be more than 50k","No"],"question":"Is it possible to send a custom Parcelable from one app to another?","quiz_id":1,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[0],"code":"","created":"2020-03-19 13:56:26","explanation":null,"id":33,"level":0,"options":["onCreateView( )","onStart( )","onResume( )","onInit( )","onCreate( )"],"question":"Which callback is called when it's time for the fragment to draw its user interface for the first time?","quiz_id":1,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[1],"code":"","created":"2020-03-19 13:56:26","explanation":null,"id":34,"level":0,"options":["onAssociate( )","onAttach( )","onCreate( )","onCreateView( )"],"question":"Which callback is called when a fragment has been associated with an activity?","quiz_id":1,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[1],"code":"","created":"2020-03-19 13:56:26","explanation":null,"id":35,"level":0,"options":["Inflater","LayoutInflater","LayoutManager","ViewInflater"],"question":"Which Class is used to instantiate a layout XML file into its corresponding View objects?","quiz_id":1,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[2],"code":"","created":"2020-03-19 13:56:26","explanation":null,"id":36,"level":0,"options":["onItemSelected( )","onOptionsSelected( )","onOptionsItemSelected( )","onOptionsItemPressed( )"],"question":"Which callback is called whenever an item in your options menu is selected?","quiz_id":1,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[0,3,4],"code":"","created":"2020-03-19 13:56:26","explanation":null,"id":37,"level":1,"options":["onCreateLoader( ) ","onDestroyLoader( )","onLoadStarted( )","onLoadFinished( )","onLoaderReset( )","onLoaderCancelled( )"],"question":"Which are the LoaderManager Callbacks?","quiz_id":1,"type":"multi_select","updated":"2020-03-19 13:56:27"},{"answer":[0],"code":"","created":"2020-03-19 13:56:26","explanation":null,"id":38,"level":0,"options":["Service","Activity","Thread","Task"],"question":"Which app component is used to perform long-running operations in the background even if the user switches to another application?","quiz_id":1,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[1],"code":"","created":"2020-03-19 13:56:26","explanation":null,"id":39,"level":1,"options":["Yes","No, a Service runs in the main thread of its hosting process","No, a Service runs in in a separate process"],"question":"By default a Service creates its own thread and runs in it.
Is this statement true?","quiz_id":1,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[3],"code":"","created":"2020-03-19 13:56:26","explanation":null,"id":40,"level":0,"options":["startService( )","startServiceImplicit( )","runService( )","It's not possible to start Service without declaring it in the manifest file"],"question":"Which method is used to start Service without declaring it in the manifest file?","quiz_id":1,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[2],"code":"","created":"2020-03-19 13:56:26","explanation":null,"id":41,"level":1,"options":["android:implicit","android:explicit","android:exported","android:private"],"question":"Which attribute (in manifest file) is used to effectively stops other apps from starting your service, even when using an explicit intent?","quiz_id":1,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[1],"code":"","created":"2020-03-19 13:56:26","explanation":null,"id":42,"level":0,"options":["Yes, you can manipulate with UI from any thread","No, only from main (UI) thread"],"question":"Is it possible to manipulate with UI from a non UI thread?","quiz_id":1,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[0,1,4],"code":"","created":"2020-03-19 13:56:26","explanation":null,"id":43,"level":1,"options":["Activity.runOnUiThread(Runnable)","View.post(Runnable)","View.runOnUI(Runnable)","View.runDelayedOnUI(Runnable, long)","View.postDelayed(Runnable, long)"],"question":"Which methods can help to access the UI thread from other threads?","quiz_id":1,"type":"multi_select","updated":"2020-03-19 13:56:27"},{"answer":[1],"code":"","created":"2020-03-19 13:56:26","explanation":null,"id":44,"level":1,"options":["Binder","IBinder","IServiceManager","IService"],"question":"... provides the programming interface that clients can use to interact with the service.","quiz_id":1,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[3],"code":"","created":"2020-03-19 13:56:26","explanation":null,"id":45,"level":1,"options":["WRITE_STORAGE","WRITE_INTERNAL_STORAGE","WRITE_EXTERNAL_STORAGE","You don\u2019t need any permissions to save files on the internal storage"],"question":"Which permission is required to save files on the internal storage?","quiz_id":1,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[3],"code":"","created":"2020-03-19 13:56:26","explanation":null,"id":46,"level":1,"options":["SQLiteHelper","SQLite","SQLOpenHelper","SQLiteOpenHelper"],"question":"Which is the helper class to manage database creation and version management?","quiz_id":1,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[2],"code":"","created":"2020-03-19 13:56:26","explanation":null,"id":47,"level":0,"options":["PostgreSQL","MyAQL","SQLite","Oracle"],"question":"What is the name of database used in android?","quiz_id":1,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[2],"code":"","created":"2020-03-19 13:56:26","explanation":null,"id":48,"level":0,"options":["HTMLView","BrowserView","WebView","WebBrowser"],"question":"Which of the following can you use to display an HTML web page?","quiz_id":1,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[0,1,2],"code":"","created":"2020-03-19 13:56:26","explanation":null,"id":49,"level":0,"options":["getApplicationContext( )","getBaseContext( )","getContext( )","Nothing of the above"],"question":"Which method you can use to get Context?","quiz_id":1,"type":"multi_select","updated":"2020-03-19 13:56:27"},{"answer":[0],"code":"","created":"2020-03-19 13:56:26","explanation":null,"id":50,"level":1,"options":["NetworkOnMainThreadException","MainThreadException","LongWorkOnMainThreadException","IllegalThreadStateException"],"question":"Which exception is thrown when an application attempts to perform a networking operation on its main thread?","quiz_id":1,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[0,2],"code":"","created":"2020-03-19 13:56:26","explanation":null,"id":51,"level":1,"options":["textView.setText(\" \"+ foo);","textView.setText(foo);","textView.setText(String.valueOf(foo));","textView.setText(foo.toString( ));"],"question":"Which are the correct ways to set an Integer as a TextView text?","quiz_id":1,"type":"multi_select","updated":"2020-03-19 13:56:27"},{"answer":[0],"code":"","created":"2020-03-19 13:56:26","explanation":null,"id":52,"level":1,"options":["commit( ) writes the data synchronously and returns a boolean value, apply( ) is asynchronous and it won\u2019t return any value","apply( ) writes the data synchronously and returns a boolean value, commit( ) is asynchronous and it won\u2019t return any value","There is no difference"],"question":"What\u2019s the difference between commit( ) and apply( ) when working with Shared Preferences?","quiz_id":1,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[0],"code":"","created":"2020-03-19 13:56:26","explanation":null,"id":53,"level":1,"options":["New value","Old value","Null","Error"],"question":"What value will be returned if you save value with apply( ) method in Shared Preference and immediately read it?","quiz_id":1,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[2],"code":"","created":"2020-03-19 13:56:26","explanation":null,"id":54,"level":1,"options":["Object","Context","View","ViewGroup"],"question":"All of the view classes defined in the Android framework extend ….","quiz_id":1,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[0],"code":"","created":"2020-03-19 13:56:26","explanation":null,"id":55,"level":1,"options":["Canvas and Paint","Paint and Canvas","Canvas and Bitmap","Drawable and Canvas"],"question":"… provides a method to draw a line, while … provides methods to define that line's color.","quiz_id":1,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[3],"code":"","created":"2020-03-19 13:56:26","explanation":null,"id":56,"level":0,"options":["To store the data in a database","To store the data on the device's internal storage","To share the data between fragments","To share the data between applications"],"question":"What is the use of content provider?","quiz_id":1,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[1],"code":"","created":"2020-03-19 13:56:26","explanation":null,"id":57,"level":1,"options":["Yes, by default","No, by default - on main thread, but you can specify other thread"],"question":"Are Android's BroadcastReceivers started in a new thread?","quiz_id":1,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[1],"code":"","created":"2020-03-19 13:56:26","explanation":null,"id":58,"level":1,"options":["GoogleMapManager","LocationManager","MapManager","PositionManager"],"question":"Which class provides access to the system location services?","quiz_id":1,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[4],"code":"","created":"2020-03-19 13:56:26","explanation":null,"id":60,"level":1,"options":["Super","Context","Object","This","Class","Application"],"question":"Instances of the class … represent classes and interfaces in a running Java application.","quiz_id":1,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[3],"code":"","created":"2020-03-19 13:56:26","explanation":null,"id":61,"level":1,"options":["@Override","@NonNull","@IgnoreLint","@SuppressLint","@SkipLint"],"question":"Which annotation indicates that Lint should ignore the specified warnings for the annotated element?","quiz_id":1,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[2],"code":"","created":"2020-03-19 13:56:26","explanation":null,"id":62,"level":1,"options":["g++ file.cpp .exe","g++ -c file.cpp","g++ file.cpp","g++ -o file.cpp"],"question":"How to create an executable program from a single .cpp file with g++ compiler?","quiz_id":3,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[3],"code":"","created":"2020-03-19 13:56:26","explanation":null,"id":63,"level":0,"options":["$","/","^","%"],"question":"Which of the following is the modulo operator?","quiz_id":3,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[0,2],"code":"","created":"2020-03-19 13:56:26","explanation":null,"id":64,"level":0,"options":["Dot (.)","Plus (+)","Arrow (->)","Slash (/)"],"question":"Choose all the correct operators that are used to access the class members.","quiz_id":3,"type":"multi_select","updated":"2020-03-19 13:56:27"},{"answer":[0],"code":"","created":"2020-03-19 13:56:26","explanation":null,"id":65,"level":2,"options":["-Wall","-Wextra","-fsyntax-only","-Wfatal-errors"],"question":"Which option turns on -Wmissing-braces warning while compiling with g++?","quiz_id":3,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[0,3],"code":"","created":"2020-03-19 13:56:26","explanation":null,"id":66,"level":0,"options":["// This is a C++ comment","<!-- This is a C++ comment -->","# This is a C++ comment","/* This is a C++ comment */"],"question":"Which of the following statements are C++ comments?","quiz_id":3,"type":"multi_select","updated":"2020-03-19 13:56:27"},{"answer":[4],"code":"","created":"2020-03-19 13:56:26","explanation":null,"id":67,"level":0,"options":["-32768 to 32767","-128 to 127 or 0 to 255","0 to 4294967295","-2147483648 to 2147483647","Compiler dependent"],"question":"What is the range of int data type?","quiz_id":3,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[2],"code":"","created":"2020-03-19 13:56:26","explanation":null,"id":68,"level":0,"options":["Dot (.)","Plus (+)","Arrow (->)","Slash (/)"],"question":"Which operator is used to access the class members with pointer?","quiz_id":3,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[0],"code":"","created":"2020-03-19 13:56:26","explanation":null,"id":69,"level":1,"options":["Yes","No"],"question":"Can a pointer be re-assigned?","quiz_id":3,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[3],"code":"","created":"2020-03-19 13:56:26","explanation":null,"id":70,"level":0,"options":["6 bits","8 bytes","2 bytes","1 byte"],"question":"What is the size of char data type?","quiz_id":3,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[2],"code":"","created":"2020-03-19 13:56:26","explanation":null,"id":71,"level":1,"options":["g++ -co prog.exe baz.o main.o","g++ -o baz.o main.o prog.exe","g++ -o prog.exe baz.o main.o","g++ -c prog.exe baz.o main.o"],"question":"How to link two object code files (baz.o and main.o) into an executable, called prog.exe, with g++ compiler?","quiz_id":3,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[1],"code":"","created":"2020-03-19 13:56:26","explanation":null,"id":72,"level":0,"options":["-32768 to 32767","-128 to 127 or 0 to 255","0 to 4294967295","1 wide character"],"question":"What is the range of char data type?","quiz_id":3,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[0],"code":"","created":"2020-03-19 13:56:26","explanation":null,"id":73,"level":0,"options":["cin, cout, cerr, clog","input, out, error, log","in, out, err, log","There are no default standard streams in C++"],"question":"What are the default standard streams in C++?","quiz_id":3,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[2],"code":"","created":"2020-03-19 13:56:26","explanation":null,"id":74,"level":0,"options":["while do condition","do condition while (statement);","do statement while (condition);","None of the above"],"question":"What is do-while loop syntax?","quiz_id":3,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[1],"code":"","created":"2020-03-19 13:56:26","explanation":null,"id":75,"level":0,"options":["for ( ) statement;","for (initialization; condition; increase) statement;","for (condition; initialization; increase) statement;","None of the above"],"question":"What is for loop syntax?","quiz_id":3,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[0],"code":"","created":"2020-03-19 13:56:26","explanation":null,"id":76,"level":0,"options":["for (declaration : range) statement;","for (range : declaration) statement;","for (condition; initialization; increase) statement;","None of the above"],"question":"What is range-based for loop syntax?","quiz_id":3,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[0],"code":"","created":"2020-03-19 13:56:26","explanation":null,"id":77,"level":0,"options":["Skip the rest of the loop in the current iteration and jump to the start of the following iteration","Break leaves a loop","It is undefined statement","None of the above"],"question":"What is the purpose of continue statement in the loop?","quiz_id":3,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[1],"code":"","created":"2020-03-19 13:56:26","explanation":null,"id":78,"level":0,"options":["Skip the rest of the loop in the current iteration and jump to the start of the following iteration","Break leaves a loop, even if the condition for its end is not fulfilled.","It is undefined statement","None of the above"],"question":"What is the purpose of break statement in the loop?","quiz_id":3,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[1],"code":"","created":"2020-03-19 13:56:26","explanation":null,"id":79,"level":0,"options":["-32768 to 32767","0 to 65535","0 to 4294967295","-2147483648 to 2147483647"],"question":"What is the range of unsigned short int data type?","quiz_id":3,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[0],"code":"","created":"2020-03-19 13:56:26","explanation":null,"id":80,"level":0,"options":["Make an absolute jump to another point in the program","Break leaves a loop, even if the condition for its end is not fulfilled.","It is undefined statement","Break one loop and jump to another"],"question":"What is the purpose of goto statement in the loop?","quiz_id":3,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[0],"code":"","created":"2020-03-19 13:56:26","explanation":null,"id":81,"level":1,"options":["Compiler replaces the definition of inline function at compile time instead of referring function definition at runtime.","Compiler compress inline function","The C++ language has no inline functions","Inline function works as standard function"],"question":"How does inline function work?","quiz_id":3,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[2],"code":"","created":"2020-03-19 13:56:26","explanation":null,"id":82,"level":2,"options":["Throw an exception","Compress inline function","Ignore the inline request and treat the function as normal function","Nothing"],"question":"What can the compiler do if the inline function is too large?","quiz_id":3,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[1],"code":"","created":"2020-03-19 13:56:26","explanation":null,"id":83,"level":0,"options":["wide_char","wchar_t","wchar","double_char"],"question":"What data type is used to store wide characters?","quiz_id":3,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[2],"code":"","created":"2020-03-19 13:56:26","explanation":null,"id":84,"level":0,"options":["++foo","+foo","foo++","+foo+","foo+"],"question":"What is the correct post-increment operator?","quiz_id":3,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[1],"code":"","created":"2020-03-19 13:56:26","explanation":null,"id":85,"level":1,"options":["No","Yes","Yes, but with some limitation","Yes, but at least with one member"],"question":"Can we create an empty class?","quiz_id":3,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[3],"code":"","created":"2020-03-19 13:56:26","explanation":null,"id":86,"level":0,"options":["0","There is no empty class in C++","NULL","At least 1"],"question":"What is the size of an object of an empty class?","quiz_id":3,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[0],"code":"","created":"2020-03-19 13:56:26","explanation":null,"id":87,"level":0,"options":["No","Yes","Yes, with some limitation","No, but sometimes yes"],"question":"Can Dot (.) operator be applied to pointers?","quiz_id":3,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[0],"code":"","created":"2020-03-19 13:56:26","explanation":null,"id":88,"level":1,"options":["Using delete[ ]","Using delete","Using release[ ]","It is not necessary, because C++ using automatic garbage collection"],"question":"How to release an array allocated memory which was allocated using new[ ]?","quiz_id":3,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[1],"code":"","created":"2020-03-19 13:56:26","explanation":null,"id":89,"level":1,"options":["Using delete[ ]","Using delete","Using release","It is not necessary, because C++ using automatic garbage collection"],"question":"How to release one chunk of memory which was allocated using new?","quiz_id":3,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[2],"code":"cout << \"Size of short int: \";cout << sizeof(short int);","created":"2020-03-19 13:56:26","explanation":null,"id":125,"level":0,"options":["Size of short int: 0","Size of short int: 1","Size of short int: 2","Size of short int: 4"],"question":"What will be the output?","quiz_id":3,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[1],"code":"","created":"2020-03-19 13:56:26","explanation":null,"id":90,"level":0,"options":["Yes","No, you can directly deallocate dynamically allocated memory","Yes, but it is very slow","Yes, but it is disabled by default"],"question":"Does C++ language using automatic garbage collection for dynamically allocated memory?","quiz_id":3,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[3],"code":"","created":"2020-03-19 13:56:26","explanation":null,"id":91,"level":0,"options":["-32768 to 32767","0 to 65535","0 to 255","-128 to 127"],"question":"What is the range of signed char data type?","quiz_id":3,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[1],"code":"","created":"2020-03-19 13:56:26","explanation":null,"id":92,"level":2,"options":["size_t is not defined anywhere in C++","Alias of one of the fundamental unsigned integer types","Alias of one of the fundamental unsigned long types","Alias of one of the fundamental signed integer types"],"question":"What is the size_t type?","quiz_id":3,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[2],"code":"","created":"2020-03-19 13:56:26","explanation":null,"id":93,"level":2,"options":["No, there is no difference","Struct members are private by default, class members are public","Struct members are public by default, class members are private","Class members are public by default and can't be private"],"question":"Is there a difference between class and struct?","quiz_id":3,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[1],"code":"","created":"2020-03-19 13:56:26","explanation":null,"id":94,"level":0,"options":["Yes","No, it's class from STL","Yes, it's class from STL"],"question":"Is the string a primitive data type?","quiz_id":3,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[1],"code":"","created":"2020-03-19 13:56:26","explanation":null,"id":95,"level":1,"options":["Yes","No"],"question":"Can the reference be re-assigned?","quiz_id":3,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[4],"code":"","created":"2020-03-19 13:56:26","explanation":null,"id":96,"level":0,"options":["-32768 to 32767","-128 to 127 or 0 to 255","0 to 4294967295","-2147483648 to 2147483647","Compiler dependent"],"question":"What is the range of unsigned int data type?","quiz_id":3,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[0],"code":"","created":"2020-03-19 13:56:26","explanation":null,"id":97,"level":0,"options":["Yes","No"],"question":"Does the pointer have its own memory address?","quiz_id":3,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[1],"code":"","created":"2020-03-19 13:56:26","explanation":null,"id":98,"level":0,"options":["Yes","No"],"question":"Does the reference have its own memory address?","quiz_id":3,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[0],"code":"","created":"2020-03-19 13:56:26","explanation":null,"id":99,"level":0,"options":["Yes","No"],"question":"A reference has the same address as the original variable itself.
Is this statement true?","quiz_id":3,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[0],"code":"","created":"2020-03-19 13:56:26","explanation":null,"id":100,"level":1,"options":["Yes","No"],"question":"Can the pointer be assigned nullptr directly?","quiz_id":3,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[1],"code":"","created":"2020-03-19 13:56:26","explanation":null,"id":101,"level":1,"options":["Yes","No"],"question":"Can the reference be assigned nullptr directly?","quiz_id":3,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[0],"code":"","created":"2020-03-19 13:56:26","explanation":null,"id":102,"level":0,"options":["Dot (.)","Plus (+)","Arrow (->)","Slash (/)"],"question":"Which operator is used to access the class members with reference?","quiz_id":3,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[1],"code":"","created":"2020-03-19 13:56:26","explanation":null,"id":103,"level":0,"options":["Yes","No"],"question":"Are destructors overloadable?","quiz_id":3,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[0,1,3],"code":"","created":"2020-03-19 13:56:26","explanation":null,"id":104,"level":1,"options":["try","catch","throwable","throw"],"question":"Name the C++ keywords that are used to handle exceptions.","quiz_id":3,"type":"multi_select","updated":"2020-03-19 13:56:27"},{"answer":[0],"code":"","created":"2020-03-19 13:56:26","explanation":null,"id":105,"level":2,"options":["Yes","No"],"question":"Can a lambda expression contain a nested lambda expression?","quiz_id":3,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[0],"code":"","created":"2020-03-19 13:56:26","explanation":null,"id":106,"level":0,"options":["Yes","No"],"question":"Does C++ support multiple inheritance?","quiz_id":3,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[0],"code":"","created":"2020-03-19 13:56:26","explanation":null,"id":107,"level":0,"options":["0","-1","1"],"question":"Which is the number of the first element of an array?","quiz_id":3,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[1],"code":"[ ](int n) { return (n % 2 == 1); };","created":"2020-03-19 13:56:26","explanation":null,"id":108,"level":2,"options":["true","false","Nothing","Error"],"question":"What does lambda expression return if its parameter is an even number?","quiz_id":3,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[0],"code":"","created":"2020-03-19 13:56:26","explanation":null,"id":109,"level":0,"options":["-32768 to 32767","0 to 65535","0 to 4294967295","-2147483648 to 2147483647"],"question":"What is the range of signed short int data type?","quiz_id":3,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[0],"code":"[ ](int n) { return (n % 2 == 1); };","created":"2020-03-19 13:56:26","explanation":null,"id":110,"level":2,"options":["true","false","Nothing","Error"],"question":"What does lambda expression return if its parameter is an odd number?","quiz_id":3,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[0],"code":"enum Color { BLACK, RED, BLUE };enum Color [ BLACK, RED, BLUE ];enum Color = new Enum { BLACK, RED, BLUE };enum Color = BLACK, RED, BLUE;","created":"2020-03-19 13:56:26","explanation":null,"id":111,"level":0,"options":["1","2","3","4","None of the above"],"question":"What is the correct way to define an enumerated type (enum)?","quiz_id":3,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[0],"code":"","created":"2020-03-19 13:56:26","explanation":null,"id":112,"level":1,"options":["Yes","No"],"question":"Is it possible to overload pre-increment/decrement operators?","quiz_id":3,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[2],"code":"cout << \"Size of float: \" << sizeof(float);","created":"2020-03-19 13:56:26","explanation":null,"id":113,"level":0,"options":["Size of float: 0","Size of float: 2","Size of float: 4","Size of float: 8"],"question":"What will be the output?","quiz_id":3,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[0],"code":"int bar = foo[1];int bar = foo{2};int bar = foo.get(1);","created":"2020-03-19 13:56:26","explanation":null,"id":114,"level":0,"options":["1","2","3","Nothing of the above"],"question":"Which is a proper way for accessing the value of an array?","quiz_id":3,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[2],"code":"int foo = 5;int bar = foo++;// …","created":"2020-03-19 13:56:26","explanation":null,"id":115,"level":2,"options":["foo = 5, bar = 6","foo = 6, bar = 6","foo = 6, bar = 5","foo = 5, bar = 5"],"question":"What will foo and bar equal after the code below is executed?","quiz_id":3,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[2],"code":"struct Foo {int foo;char bar;};// …cout << sizeof(Foo);","created":"2020-03-19 13:56:26","explanation":null,"id":116,"level":2,"options":["0","5","8","16"],"question":"What will be the output?","quiz_id":3,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[0,2,3],"code":"int bar[3] = { };int foo[1] = [1, 3]; int bar[ ] = {1, 3, 5, 8};int foo[2] = {1, 3};","created":"2020-03-19 13:56:26","explanation":null,"id":117,"level":0,"options":["1","2","3","4"],"question":"Choose all the correct ways of array initialization.","quiz_id":3,"type":"multi_select","updated":"2020-03-19 13:56:27"},{"answer":[1],"code":"int x = 3;int y = 5;function foo = [x, &y] { return x + y; };x = 22;y = 44;cout << foo( );","created":"2020-03-19 13:56:26","explanation":null,"id":118,"level":2,"options":["8","47","49","66"],"question":"What will be the output?","quiz_id":3,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[1],"code":"user@host: g++ -\u0441 file.cpp","created":"2020-03-19 13:56:26","explanation":null,"id":119,"level":1,"options":["Compile and link","Compile only","Link only","Create exe file"],"question":"What does -c mean in below command?","quiz_id":3,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[4],"code":"","created":"2020-03-19 13:56:26","explanation":null,"id":120,"level":0,"options":["-32768 to 32767","-128 to 127 or 0 to 255","0 to 4294967295","-2147483648 to 2147483647","Compiler dependent"],"question":"What is the range of signed int data type?","quiz_id":3,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[0],"code":"#include ","created":"2020-03-19 13:56:26","explanation":null,"id":121,"level":0,"options":["It is instruction for preprocessor to include a section of C++ code","It is special instruction for testing","It is instruction for preprocessor to exclude a section of C++ code","Nothing"],"question":"What does below directive mean in c++ listing?","quiz_id":3,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[2],"code":"typedef int = newName;typedef int = new newName(\"Name\");typedef int newName;newName typedef of int;","created":"2020-03-19 13:56:26","explanation":null,"id":122,"level":1,"options":["1","2","3","4"],"question":"How to create a new name for an existing int type?","quiz_id":3,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[3],"code":"cout << \"Size of int: \" << sizeof(int);","created":"2020-03-19 13:56:26","explanation":null,"id":123,"level":0,"options":["Size of int: 0","Size of int: 1","Size of int: 2","Size of int: 4"],"question":"What will be the output on a 32-bit CPU?","quiz_id":3,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[1],"code":"cout << \"Size of char: \" << sizeof(char);","created":"2020-03-19 13:56:26","explanation":null,"id":124,"level":0,"options":["Size of char: 0","Size of char: 1","Size of char: 2","Size of char: 4"],"question":"What will be the output?","quiz_id":3,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[3],"code":"cout << \"Size of long int: \";cout << sizeof(long int);","created":"2020-03-19 13:56:26","explanation":null,"id":126,"level":0,"options":["Size of long int: 0","Size of long int: 2","Size of long int: 4","Size of long int: 8"],"question":"What will be the output?","quiz_id":3,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[0],"code":"","created":"2020-03-19 13:56:26","explanation":null,"id":127,"level":0,"options":["++foo","+foo","foo++","+foo+","foo+"],"question":"What is the correct pre-increment operator?","quiz_id":3,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[2],"code":"cout << \"Size of double: \";cout << sizeof(double);","created":"2020-03-19 13:56:26","explanation":null,"id":128,"level":0,"options":["Size of double: 0","Size of double: 2","Size of double: 8","Size of double: 16"],"question":"What will be the output?","quiz_id":3,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[3],"code":"cout << \"Size of wchar_t: \";cout << sizeof(wchar_t);","created":"2020-03-19 13:56:26","explanation":null,"id":129,"level":0,"options":["Size of wchar_t: 0","Size of wchar_t: 1","Size of wchar_t: 2","Size of wchar_t: 4"],"question":"What will be the output?","quiz_id":3,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[0],"code":"","created":"2020-03-19 13:56:26","explanation":null,"id":130,"level":0,"options":["-32768 to 32767","-128 to 127 or 0 to 255","0 to 4294967295","-2147483648 to 2147483647"],"question":"What is the range of short int data type?","quiz_id":3,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[2],"code":"enum Color { BLACK, RED, BLUE = 20, GREEN };","created":"2020-03-19 13:56:26","explanation":null,"id":131,"level":0,"options":["3","4","21","None of the above"],"question":"What is an associated integer value of GREEN?","quiz_id":3,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[0],"code":"enum Color { BLACK, RED = 0, BLUE = BLACK + 2 };","created":"2020-03-19 13:56:26","explanation":null,"id":132,"level":1,"options":["2","3","1","None of the above"],"question":"What is an integer value of BLUE?","quiz_id":3,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[0,2,3],"code":"int foo = 5;int foo = [5];int foo(3);int foo{2};","created":"2020-03-19 13:56:26","explanation":null,"id":133,"level":0,"options":["1","2","3","4"],"question":"Choose all the correct ways of int data type initialization.","quiz_id":3,"type":"multi_select","updated":"2020-03-19 13:56:27"},{"answer":[1],"code":"auto foo = 5.0;","created":"2020-03-19 13:56:27","explanation":null,"id":134,"level":1,"options":["int","double","char","None of the above"],"question":"What is the type of foo?","quiz_id":3,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[0,3],"code":"const double PI = 3.14159;double PI = 3.14159;double PI 3.14159;#define PI 3.14159;","created":"2020-03-19 13:56:27","explanation":null,"id":135,"level":0,"options":["1","2","3","4"],"question":"Choose all the correct ways to define a constant value.","quiz_id":3,"type":"multi_select","updated":"2020-03-19 13:56:27"},{"answer":[0],"code":"int foo = (7 == 5) ? 4 : 3;","created":"2020-03-19 13:56:27","explanation":null,"id":136,"level":0,"options":["3","4","7","None of the above"],"question":"What is the value of foo?","quiz_id":3,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[2],"code":"int bar;int foo = (bar = 5, bar + 2);cout << foo;","created":"2020-03-19 13:56:27","explanation":null,"id":137,"level":0,"options":["3","5","7","2"],"question":"What will be the output?","quiz_id":3,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[2],"code":"#ifndef FOO_BAR_BAZ_H_#define FOO_BAR_BAZ_H_// …#endif // FOO_BAR_BAZ_H_","created":"2020-03-19 13:56:27","explanation":null,"id":138,"level":1,"options":["It is the instruction for garbage collection","It is a special instruction for memory allocation","Prevent multiple inclusion","None of the above"],"question":"What is the meaning of using #define guards?","quiz_id":3,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[1],"code":"int foo = 128;char bar = foo;foo = bar;cout << foo;","created":"2020-03-19 13:56:27","explanation":null,"id":139,"level":2,"options":["128","-128","-127","255"],"question":"What will be the output?","quiz_id":3,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[1],"code":"class Empty { };int main( ) {Empty foo;cout << \"Size of foo: \" << sizeof(foo);return 0;}","created":"2020-03-19 13:56:27","explanation":null,"id":140,"level":2,"options":["Size of foo: 0","Size of foo: 1","Nothing","Error: empty class not allowed"],"question":"What will be the output?","quiz_id":3,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[1],"code":"foo->bar( )(*foo).bar( )","created":"2020-03-19 13:56:27","explanation":null,"id":141,"level":1,"options":["No","Yes"],"question":"Are these two expressions equivalent?","quiz_id":3,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[2],"code":"cout << \"Result: \" << 5.0 % 2;","created":"2020-03-19 13:56:27","explanation":null,"id":142,"level":0,"options":["Result: 1","Result: 1.0","Error, because either of the operands for the modulus operator (%) is a real number","None of the above"],"question":"What will be the output?","quiz_id":3,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[1],"code":"cout << 25u - 50;","created":"2020-03-19 13:56:27","explanation":null,"id":143,"level":2,"options":["-25","4294967271","2147483647","Error"],"question":"What will be the output?","quiz_id":3,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[1],"code":"MyStruct *bar = new MyStruct( );","created":"2020-03-19 13:56:27","explanation":null,"id":144,"level":2,"options":["memset(*bar, 0, sizeof(bar));","memset(bar, 0, sizeof(*bar));","memset(*bar, 0, 0);","memset(sizeof(bar), 0, bar);"],"question":"How to initialize a pointer to a struct with zero bytes using memset?","quiz_id":3,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[2],"code":"size_t sz = buf->size( );while (--sz >= 0) {/* do something */}","created":"2020-03-19 13:56:27","explanation":null,"id":145,"level":2,"options":["size_t is not defined anywhere in C++","(--sz >= 0) will always be false","(--sz >= 0) will always be true","There is no problem"],"question":"What is the problem in the code below?","quiz_id":3,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[2],"code":"int foo[ ] = {1, 2, 3, 4, 5, 6};cout << (1 + 3)[foo] - foo[0] + (foo + 1)[2];","created":"2020-03-19 13:56:27","explanation":null,"id":146,"level":2,"options":["9","6","8","0"],"question":"What will be the output?","quiz_id":3,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[0],"code":"","created":"2020-03-19 13:56:27","explanation":null,"id":147,"level":0,"options":["--foo","-foo","foo--","-foo-","foo-"],"question":"What is the correct pre-decrement operator?","quiz_id":3,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[2],"code":"*foo.bar( )","created":"2020-03-19 13:56:27","explanation":null,"id":148,"level":1,"options":["Yes, because foo is a pointer","No, because foo is a pointer","No, because Dot (.) operator is evaluated first","Yes, because bar( ) is a function"],"question":"Does it work and why?","quiz_id":3,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[3],"code":"","created":"2020-03-19 13:56:27","explanation":null,"id":149,"level":0,"options":["-32768 to 32767","-128 to 127 or 0 to 255","0 to 4294967295","-2147483648 to 2147483647"],"question":"What is the range of signed int data type in 32-bit systems (ILP32)?","quiz_id":3,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[3],"code":"int foo[ ] = {1, 2, 3, 4, 5, 6};cout << ((1 + 3)[foo] == foo[1 + 3]);","created":"2020-03-19 13:56:27","explanation":null,"id":150,"level":2,"options":["true","false","0","1"],"question":"What will be the output?","quiz_id":3,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[4],"code":"unsigned char half_limit = 150;for (unsigned char i = 0; i < 2 * half_limit; ++i) {/* do something */}","created":"2020-03-19 13:56:27","explanation":null,"id":151,"level":2,"options":["300","150","255","299","It is infinite loop"],"question":"How many times will this loop execute?","quiz_id":3,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[2],"code":"","created":"2020-03-19 13:56:27","explanation":null,"id":152,"level":0,"options":["--foo","-foo","foo--","-foo-","foo-"],"question":"What is the correct post-decrement operator?","quiz_id":3,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[1],"code":"#include // …int foo = 1;foo |= 1 << 1;cout << bitset<8>(foo);","created":"2020-03-19 13:56:27","explanation":null,"id":153,"level":2,"options":["00000001","00000011","01000001","00000000"],"question":"What will be the output?","quiz_id":3,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[0],"code":"#include // …int foo = 1;foo |= 1 << 1;foo &= ~(1 << 1);cout << bitset<8>(foo);","created":"2020-03-19 13:56:27","explanation":null,"id":154,"level":2,"options":["00000001","00000011","01000001","00000000"],"question":"What will be the output?","quiz_id":3,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[3],"code":"#include // …int foo = 1;foo &= ~(1 << 0);cout << bitset<8>(foo);","created":"2020-03-19 13:56:27","explanation":null,"id":155,"level":2,"options":["00000001","00000011","01000001","00000000"],"question":"What will be the output?","quiz_id":3,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[3],"code":"#include // …int foo = 1;foo ^= 1 << 0;cout << bitset<8>(foo);","created":"2020-03-19 13:56:27","explanation":null,"id":156,"level":2,"options":["00000001","00000011","01000001","00000000"],"question":"What will be the output?","quiz_id":3,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[2],"code":"int foo = 1;foo |= 1 << 1;foo = (foo >> 1) & 1;cout << foo;","created":"2020-03-19 13:56:27","explanation":null,"id":157,"level":2,"options":["00000001","00000011","1","0"],"question":"What will be the output?","quiz_id":3,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[3],"code":"int foo = 1;foo = (foo >> 1) & 1;cout << foo;","created":"2020-03-19 13:56:27","explanation":null,"id":158,"level":2,"options":["00000001","00000011","1","0"],"question":"What will be the output?","quiz_id":3,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[1],"code":"#include // …int foo = 1;foo ^= (-1 ^ foo) & (1 << 7);cout << bitset<8>(foo);","created":"2020-03-19 13:56:27","explanation":null,"id":159,"level":2,"options":["00000001","10000001","00000000","10000000"],"question":"What will be the output?","quiz_id":3,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[0],"code":"#include // …int foo = 1;foo ^= (1 ^ foo) & (1 << 7);cout << bitset<8>(foo);","created":"2020-03-19 13:56:27","explanation":null,"id":160,"level":2,"options":["00000001","10000001","00000000","10000000"],"question":"What will be the output?","quiz_id":3,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[1],"code":"#include // …bitset<8> foo;foo[1] = 1;foo[2] = 0;cout << foo;","created":"2020-03-19 13:56:27","explanation":null,"id":161,"level":2,"options":["01000","00010","00000","01010"],"question":"What will be the output?","quiz_id":3,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[2],"code":"int &foo;","created":"2020-03-19 13:56:27","explanation":null,"id":162,"level":1,"options":["Yes, because it is a pointer","Yes, because it is a reference","No, because reference must be assigned at initialization","No, because pointer must be assigned at initialization"],"question":"Is the code below correct? Why?","quiz_id":3,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[3],"code":"int &foo = nullptr;cout << \"Hello World!\";","created":"2020-03-19 13:56:27","explanation":null,"id":163,"level":1,"options":["Hello World!","Nothing","nullptr","Compilation error"],"question":"What will be the output?","quiz_id":3,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[0],"code":"Object myObject;","created":"2020-03-19 13:56:27","explanation":null,"id":164,"level":1,"options":["Yes","No, you can directly deallocate memory"],"question":"Will object be destroyed automatically when it goes out of scope if it is created like below?","quiz_id":3,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[3],"code":"","created":"2020-03-19 13:56:27","explanation":null,"id":165,"level":0,"options":["-32768 to 32767","-128 to 127 or 0 to 255","0 to 4294967295","-2147483648 to 2147483647","0 to 18446744073709551615","-8147483648 to 8147483647"],"question":"What is the range of signed int data type in 64-bit systems (LP64)?","quiz_id":3,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[1],"code":"function foo = [&] { /* … */ };","created":"2020-03-19 13:56:27","explanation":null,"id":166,"level":2,"options":["Capture all variables within scope by value","Capture all variables within scope by reference","Indicates that this is a lambda expression","Do nothing"],"question":"What does [&] mean in lambda expression?","quiz_id":3,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[0],"code":"function foo = [=] { /* … */ };","created":"2020-03-19 13:56:27","explanation":null,"id":167,"level":2,"options":["Capture all variables within scope by value","Capture all variables within scope by reference","Indicates that this is a lambda expression","Do nothing"],"question":"What does [=] mean in lambda expression?","quiz_id":3,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[1],"code":"void print(bool foo) {cout << \"bool: \" << foo;}void print(std::string foo) {cout << \"std::string: \" << foo;}int main(int argc, const char *argv[ ]) {print(\"Hello world\");}","created":"2020-03-19 13:56:27","explanation":null,"id":168,"level":2,"options":["std::string: Hello world","bool: 1","Nothing"],"question":"What will be the output?","quiz_id":3,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[0],"code":"","created":"2020-03-19 13:56:27","explanation":null,"id":169,"level":1,"options":["Yes","No"],"question":"Is it possible to overload post-increment/decrement operators?","quiz_id":3,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[1],"code":"#pragma pack(push, 1)struct Foo {int bar;char baz;};#pragma pack(pop)// …cout << sizeof(Foo);","created":"2020-03-19 13:56:27","explanation":null,"id":170,"level":2,"options":["0","5","8","16"],"question":"What will be the output?","quiz_id":3,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[2],"code":"cout << sizeof(1);","created":"2020-03-19 13:56:27","explanation":null,"id":171,"level":1,"options":["0","1","4","32"],"question":"What will be the output?","quiz_id":3,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[2],"code":"#include // …cout << INT_MAX;","created":"2020-03-19 13:56:27","explanation":null,"id":172,"level":0,"options":["32767","65535","2147483647","4294967295"],"question":"What will be the output?","quiz_id":3,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[2],"code":"#include // …cout << UINT_MAX;","created":"2020-03-19 13:56:27","explanation":null,"id":173,"level":0,"options":["65535","2147483647","4294967295","8294967295"],"question":"What will be the output?","quiz_id":3,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[1],"code":"cout << sizeof('a');","created":"2020-03-19 13:56:27","explanation":null,"id":174,"level":0,"options":["0","1","4","32"],"question":"What will be the output?","quiz_id":3,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[3],"code":"char foo[15] = \"Hello \";char bar[ ] = \"world!\";cout << foo + bar;","created":"2020-03-19 13:56:27","explanation":null,"id":175,"level":1,"options":["Hello world!","Hello","Nothing","Error: invalid operands"],"question":"What will be the output?","quiz_id":3,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[2],"code":"","created":"2020-03-19 13:56:27","explanation":null,"id":176,"level":0,"options":["-32768 to 32767","0 to 65535","0 to 255","-128 to 127"],"question":"What is the range of unsigned char data type?","quiz_id":3,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[0],"code":"T* foo = new T( );T* foo = new &T;T foo = new T;T* foo = T( );","created":"2020-03-19 13:56:27","explanation":null,"id":177,"level":0,"options":["1","2","3","4","None of the above"],"question":"Choose the correct way to initialize the object on the heap.","quiz_id":3,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[1],"code":"// ptr is assigned 4 bytes in the stackint *ptr = new int;","created":"2020-03-19 13:56:27","explanation":null,"id":178,"level":0,"options":["Yes","No, in the heap"],"question":"Is the comment correct?","quiz_id":3,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[0],"code":"int x = 3;int y = 5;function foo = [x, y] { return x + y; };x = 22;y = 44;cout << foo( );","created":"2020-03-19 13:56:27","explanation":null,"id":179,"level":2,"options":["8","47","49","66"],"question":"What will be the output?","quiz_id":3,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[1],"code":"list numbers;numbers.push_back(21);const list::const_iterator result = find_if(numbers.begin( ), numbers.end( ), [ ](int n) { return (n % 2) == 0; });if (result != numbers.end( )) {cout << \"True\";} else {cout << \"False\"}","created":"2020-03-19 13:56:27","explanation":null,"id":180,"level":2,"options":["True","False"],"question":"What will be the output?","quiz_id":3,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[0],"code":"list numbers;numbers.push_back(20);const list::const_iterator result = find_if(numbers.begin( ), numbers.end( ), [ ](int n) { return (n % 2) == 0; });if (result != numbers.end( )) {cout << \"True\";} else {cout << \"False\"}","created":"2020-03-19 13:56:27","explanation":null,"id":181,"level":2,"options":["True","False"],"question":"What will be the output?","quiz_id":3,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[1],"code":"int foo = [ ](int x) { return [ ](int y) { return y * 2; }(x) + 3; }(5);cout << foo;","created":"2020-03-19 13:56:27","explanation":null,"id":182,"level":2,"options":["0","13","16","Error"],"question":"What will be the output?","quiz_id":3,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[3],"code":"","created":"2020-03-19 13:56:27","explanation":null,"id":183,"level":0,"options":["-32768 to 32767","-128 to 127 or 0 to 255","0 to 4294967295","-2147483648 to 2147483647"],"question":"What is the range of int data type in 32-bit systems (ILP32)?","quiz_id":3,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[0],"code":"{int foo;}","created":"2020-03-19 13:56:27","explanation":null,"id":184,"level":0,"options":["Local scope","File scope","Class scope","Prototype scope"],"question":"What is the scope of int foo variable?","quiz_id":3,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[3],"code":"int foo = 47;int main(int argc, char *argv) {int foo = foo;return 0;}","created":"2020-03-19 13:56:27","explanation":null,"id":185,"level":1,"options":["0","47","NULL","Undefined"],"question":"What is the value of the local variable foo (line 4) at the end of main?","quiz_id":3,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[2],"code":"int foo[5];int bar = sizeof(foo) / sizeof(int);cout << bar;","created":"2020-03-19 13:56:27","explanation":null,"id":186,"level":0,"options":["0","4","5","20"],"question":"What will be the output?","quiz_id":3,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[3],"code":"","created":"2020-03-19 13:56:27","explanation":null,"id":220,"level":0,"options":["0 to 255","-128 to 127","-2,147,483,648 to 2,147,483,647","0 to 4294967295"],"question":"Which is the range of uint data type?","quiz_id":4,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[0],"code":"const char* foo = str.c_str( );const char* foo = str.to_str( );const char* foo = str(str);const char* foo = str.s_str( );","created":"2020-03-19 13:56:27","explanation":null,"id":187,"level":0,"options":["1","2","3","4","None of the above"],"question":"How to convert std::string str to const char*?","quiz_id":3,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[1],"code":"if (bar > 0) {int foo = 1;} else {// …}","created":"2020-03-19 13:56:27","explanation":null,"id":188,"level":0,"options":["Yes","No"],"question":"Is foo variable accessible in the else clause?","quiz_id":3,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[1],"code":"#if 0cout << \"Hello\";#endifcout << \"!\";","created":"2020-03-19 13:56:27","explanation":null,"id":189,"level":1,"options":["Hello!","!","Hello","Compilation error","Nothing"],"question":"What will be the output?","quiz_id":3,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[1],"code":"","created":"2020-03-19 13:56:27","explanation":null,"id":190,"level":0,"options":["Yes","No"],"question":"Does C# support multiple inheritance (not interface implementation)?","quiz_id":4,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[0],"code":"","created":"2020-03-19 13:56:27","explanation":null,"id":191,"level":0,"options":["Yes","No, you can declare abstract method in any class"],"question":"Abstract method declarations are only permitted in abstract classes.
Is it true?","quiz_id":4,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[0],"code":"","created":"2020-03-19 13:56:27","explanation":null,"id":192,"level":0,"options":["Yes","No"],"question":"Does the List<T> accept null as a valid value for reference types?","quiz_id":4,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[2],"code":"","created":"2020-03-19 13:56:27","explanation":null,"id":193,"level":0,"options":["0 to 255","-32,768 to 32,767","0 to 65535","0 to 4294967295"],"question":"Which is the range of ushort data type?","quiz_id":4,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[3],"code":"","created":"2020-03-19 13:56:27","explanation":null,"id":194,"level":0,"options":["Yes","No, it is about the final modifier","No, it is about the sealed modifier","No, it is about the abstract modifier"],"question":"The public keyword enables you to create classes and class members that are incomplete and must be implemented in a derived class.
Is this true?","quiz_id":4,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[2],"code":"","created":"2020-03-19 13:56:27","explanation":null,"id":195,"level":0,"options":["Yes","No, it is about the final modifier","No, it is about the sealed modifier","No, it is about the delegate modifier"],"question":"The abstract keyword enables you to prevent the inheritance of a class or certain class members that were previously marked virtual.
Is this true?","quiz_id":4,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[1],"code":"","created":"2020-03-19 13:56:27","explanation":null,"id":196,"level":0,"options":["0 to 255","-128 to 127","-2,147,483,648 to 2,147,483,647","0 to 4294967295"],"question":"Which is the range of sbyte data type?","quiz_id":4,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[1],"code":"","created":"2020-03-19 13:56:27","explanation":null,"id":197,"level":1,"options":["build Hello.cs","csc Hello.cs","gcc -c Hello.cs","g++ -l Hello.cs"],"question":"How to compile the Hello.cs file into an executable (exe) file from command line?","quiz_id":4,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[0],"code":"","created":"2020-03-19 13:56:27","explanation":null,"id":198,"level":1,"options":["There is no difference, string is an alias for System.String","These are two different classes","There is no difference, String is an alias for System.string","String can be converted to char, but string cannot"],"question":"What is the difference between String and string?","quiz_id":4,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[1],"code":"","created":"2020-03-19 13:56:27","explanation":null,"id":199,"level":0,"options":["Yes","No"],"question":"Can we use the virtual modifier with the override modifier?","quiz_id":4,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[0],"code":"","created":"2020-03-19 13:56:27","explanation":null,"id":200,"level":0,"options":["Main method","Default class","Default structure","You can specify any method as entry point"],"question":"What is the entry point of a C# console or windows application?","quiz_id":4,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[2],"code":"","created":"2020-03-19 13:56:27","explanation":null,"id":201,"level":0,"options":[".cpp",".java",".cs",".c"],"question":"Which is the extension of the C# source code files?","quiz_id":4,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[0],"code":"","created":"2020-03-19 13:56:27","explanation":null,"id":202,"level":2,"options":["private","public"],"question":"Partial methods are implicitly private or public?","quiz_id":4,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[2],"code":"","created":"2020-03-19 13:56:27","explanation":null,"id":203,"level":1,"options":["The ref keyword causes an argument to be constant","The ref keyword causes an argument to be passed by value","The ref keyword causes an argument to be passed by reference","There is no ref keyword in C#"],"question":"What is the purpose of keyword ref?","quiz_id":4,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[0],"code":"","created":"2020-03-19 13:56:27","explanation":null,"id":204,"level":0,"options":["Yes","No"],"question":"Can classes and structs implement multiple interfaces?","quiz_id":4,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[3],"code":"","created":"2020-03-19 13:56:27","explanation":null,"id":205,"level":2,"options":["Available only on delegate","Available only on enumeration","Available on both","Not available on both"],"question":"Is the partial modifier available on delegate or enumeration declarations?","quiz_id":4,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[1],"code":"","created":"2020-03-19 13:56:27","explanation":null,"id":206,"level":1,"options":["Yes","No"],"question":"Can we use #define preprocessor directive to define constants in the way that is typically used in C and C++?","quiz_id":4,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[0,3],"code":"","created":"2020-03-19 13:56:27","explanation":null,"id":207,"level":0,"options":["// This is a C# comment","<!-- This is a C# comment -->","# This is a C# comment","/* This is a C# comment */"],"question":"Which of the following statements are C# comments?","quiz_id":4,"type":"multi_select","updated":"2020-03-19 13:56:27"},{"answer":[1],"code":"","created":"2020-03-19 13:56:27","explanation":null,"id":208,"level":1,"options":["Yes","No"],"question":"Does the parameter of the Main( ) method, args, include the name of the executable (exe) file?","quiz_id":4,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[2],"code":"","created":"2020-03-19 13:56:27","explanation":null,"id":209,"level":0,"options":["Yes, it is","No, it is an int array","No, it is a string array","No, it is not an array"],"question":"The parameter of the Main( ) method, args, is a char array, is not it?","quiz_id":4,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[0],"code":"","created":"2020-03-19 13:56:27","explanation":null,"id":210,"level":0,"options":["Yes, just include using System; directive","No, only System.Console.WriteLine","Yes, just include using Console; directive","Yes, it works without additional code"],"question":"Is it possible to directly call Console.WriteLine instead of System.Console.WriteLine","quiz_id":4,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[0],"code":"","created":"2020-03-19 13:56:27","explanation":null,"id":211,"level":0,"options":["Yes","No"],"question":"Can one namespace contain another?","quiz_id":4,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[0],"code":"","created":"2020-03-19 13:56:27","explanation":null,"id":212,"level":0,"options":["One","Two","More than one"],"question":"How many entry points can be in one C# program?","quiz_id":4,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[0],"code":"","created":"2020-03-19 13:56:27","explanation":null,"id":213,"level":0,"options":["0 to 255","-128 to 127","-2,147,483,648 to 2,147,483,647","0 to 4294967295"],"question":"Which is the range of byte data type?","quiz_id":4,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[1],"code":"","created":"2020-03-19 13:56:27","explanation":null,"id":214,"level":1,"options":["csc File.cs","csc /target:library File.cs","csc /out:File.exe File.cs","csc /target:lib File.cs"],"question":"How to compile File.dll from the command line?","quiz_id":4,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[1],"code":"","created":"2020-03-19 13:56:27","explanation":null,"id":215,"level":1,"options":["Yes","No"],"question":"Does the C# compiler need a linker?","quiz_id":4,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[2],"code":"","created":"2020-03-19 13:56:27","explanation":null,"id":216,"level":1,"options":["Object (.obj) files","Executable (.exe) file","There is no linker in the C# compiler; output files are created directly","Temporary .dex file"],"question":"What is the result of invoking the C# linker?","quiz_id":4,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[0],"code":"","created":"2020-03-19 13:56:27","explanation":null,"id":217,"level":1,"options":["/warn:0","/no_warn","/w:0","/warncount:0"],"question":"Which compiler option disable warnings?","quiz_id":4,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[1],"code":"","created":"2020-03-19 13:56:27","explanation":null,"id":218,"level":0,"options":["Yes","No"],"question":"Is it possible to override private methods of a base class?","quiz_id":4,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[2],"code":"","created":"2020-03-19 13:56:27","explanation":null,"id":219,"level":0,"options":["0 to 255","-128 to 127","-2,147,483,648 to 2,147,483,647","0 to 4294967295"],"question":"Which is the range of int data type?","quiz_id":4,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[0],"code":"","created":"2020-03-19 13:56:27","explanation":null,"id":221,"level":1,"options":["csc /optimize /out:Prog.exe *.cs","csc /optimization /out:Prog.exe *.cs","csc /optimize /out:Prog.exe /all","csc /optimize:on /out:Prog.exe *.cs"],"question":"How to compile all the C# files in the current directory with optimizations?","quiz_id":4,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[0],"code":"","created":"2020-03-19 13:56:27","explanation":null,"id":222,"level":0,"options":["csc *.cs","csc /all","csc -all","csc -c /*.cs"],"question":"How to compile all C# files in the current directory?","quiz_id":4,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[1],"code":"","created":"2020-03-19 13:56:27","explanation":null,"id":223,"level":1,"options":["csc prog.cs /optimization","csc prog.cs /optimize","csc prog.cs /reduce","csc prog.cs /improve"],"question":"How to compile prog.cs with optimizations?","quiz_id":4,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[0],"code":"","created":"2020-03-19 13:56:27","explanation":null,"id":224,"level":0,"options":["0","1","-1","-0"],"question":"Which is the number of the first element of an array?","quiz_id":4,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[2],"code":"","created":"2020-03-19 13:56:27","explanation":null,"id":225,"level":0,"options":["A jagged array is an array whose elements are strings","A jagged array is an array whose elements are vectors","A jagged array is an array whose elements are arrays","There is no jagged array in C#"],"question":"What is a Jagged array?","quiz_id":4,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[0],"code":"","created":"2020-03-19 13:56:27","explanation":null,"id":226,"level":0,"options":["Yes","No"],"question":"Can a class or struct be nested within another class or struct?","quiz_id":4,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[0],"code":"","created":"2020-03-19 13:56:27","explanation":null,"id":227,"level":1,"options":["The List<T>is not guaranteed to be sorted. You must sort it before performing operations","The List<T>is sorted by default","The List<T> will be sorted automatically before performing operations","There is no need for sorting"],"question":"Must you sort the List<T> before performing operations (such as BinarySearch) that require the List<T> to be sorted?","quiz_id":4,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[0],"code":"","created":"2020-03-19 13:56:27","explanation":null,"id":228,"level":1,"options":["Yes","No"],"question":"Does the List<T> allow duplicate elements?","quiz_id":4,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[0],"code":"","created":"2020-03-19 13:56:27","explanation":null,"id":229,"level":1,"options":["Yes","No"],"question":"Is it possible to define part of a class, struct or method in one code file and another part in a separate code file?","quiz_id":4,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[0],"code":"","created":"2020-03-19 13:56:27","explanation":null,"id":230,"level":0,"options":["Yes","No"],"question":"Can the Main( ) method be public?","quiz_id":4,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[3],"code":"","created":"2020-03-19 13:56:27","explanation":null,"id":231,"level":1,"options":["To pass pointer as parameters","Delegates allow multiple inheritance","To return several values from function","To pass methods as parameters"],"question":"What is the main purpose of using delegates?","quiz_id":4,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[1],"code":"","created":"2020-03-19 13:56:27","explanation":null,"id":232,"level":2,"options":["Yes","No"],"question":"Can partial methods be virtual?","quiz_id":4,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[0],"code":"","created":"2020-03-19 13:56:27","explanation":null,"id":233,"level":2,"options":["Yes","No"],"question":"Can partial methods be generic?","quiz_id":4,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[1],"code":"","created":"2020-03-19 13:56:27","explanation":null,"id":234,"level":2,"options":["Any operation with partial methods","Any operation involving pointers","Any operation with threads","Any operation with anonymous types"],"question":"What is an unsafe context?","quiz_id":4,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[2],"code":"","created":"2020-03-19 13:56:27","explanation":null,"id":235,"level":0,"options":["extern","unsafe","sealed","final"],"question":"Which modifier is used to prevent inheritance from the class?","quiz_id":4,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[2],"code":"","created":"2020-03-19 13:56:27","explanation":null,"id":236,"level":1,"options":["Yes","No, it is sealed class","No, only the system and compilers can derive explicitly from the Delegate class"],"question":"Is it possible to derive custom classes from Delegate class?","quiz_id":4,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[1],"code":"","created":"2020-03-19 13:56:27","explanation":null,"id":237,"level":0,"options":["0 to 255","-32,768 to 32,767","-2,147,483,648 to 2,147,483,647","0 to 4294967295"],"question":"Which is the range of short data type?","quiz_id":4,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[3],"code":"","created":"2020-03-19 13:56:27","explanation":null,"id":238,"level":0,"options":["0 to 255","-32,768 to 32,767","0 to 65535","There is no wchar_t data type in C#"],"question":"Which is the range of wchar_t data type?","quiz_id":4,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[2],"code":"","created":"2020-03-19 13:56:27","explanation":null,"id":239,"level":0,"options":["public","final","sealed","const"],"question":"Which modifier is used to prevent from overriding specific virtual methods or properties?","quiz_id":4,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[1],"code":"","created":"2020-03-19 13:56:27","explanation":null,"id":240,"level":0,"options":["Yes, you can use abstract modifier with all classes","No, because an abstract modifier class must be inherited by a class that provides an implementation of the abstract methods or properties","There is no abstract modifier in C#"],"question":"Is it possible to use the abstract modifier with a sealed class?","quiz_id":4,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[1],"code":"","created":"2020-03-19 13:56:27","explanation":null,"id":241,"level":1,"options":["Yes, structs are public and inheritable by default","No, structs are implicitly sealed","Yes, but if structs do not have sealed modifier","No, structs are unsafe"],"question":"Can structs be inherited? Why?","quiz_id":4,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[2],"code":"","created":"2020-03-19 13:56:27","explanation":null,"id":242,"level":2,"options":["ValidationException","InvalidDataException","AccessViolationException","OperationCanceledException"],"question":"Which exception is thrown when there is an attempt to read or write protected memory?","quiz_id":4,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[0],"code":"","created":"2020-03-19 13:56:27","explanation":null,"id":243,"level":0,"options":["Yes","No"],"question":"Partial methods can have unsafe modifier.
Is it true?","quiz_id":4,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[1],"code":"","created":"2020-03-19 13:56:27","explanation":null,"id":244,"level":0,"options":["Yes","No"],"question":"Is it possible to instantiate an abstract class?","quiz_id":4,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[1],"code":"","created":"2020-03-19 13:56:27","explanation":null,"id":245,"level":1,"options":["Yes","No"],"question":"Can a sealed class be abstract?","quiz_id":4,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[0,2,3,5,6],"code":"","created":"2020-03-19 13:56:27","explanation":null,"id":246,"level":1,"options":["classes","structs","methods","properties","interfaces","indexers","events","strings"],"question":"The abstract modifier can be used with:","quiz_id":4,"type":"multi_select","updated":"2020-03-19 13:56:27"},{"answer":[1],"code":"","created":"2020-03-19 13:56:27","explanation":null,"id":247,"level":1,"options":["Yes","No, because the two modifiers have opposite meanings"],"question":"Is it possible to modify an abstract class with the sealed modifier?","quiz_id":4,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[0],"code":"","created":"2020-03-19 13:56:27","explanation":null,"id":248,"level":0,"options":["Yes","No, it is implicitly an abstract method","No, it is implicitly a public method","No, it is implicitly a sealed"],"question":"Is an abstract method implicitly a virtual method?","quiz_id":4,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[1],"code":"","created":"2020-03-19 13:56:27","explanation":null,"id":249,"level":1,"options":["Mark them as override methods","Map them onto abstract methods","Implement them","Nothing"],"question":"What does the abstract class do with the methods of the implemented interface?","quiz_id":4,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[1],"code":"","created":"2020-03-19 13:56:27","explanation":null,"id":250,"level":0,"options":["Yes","No"],"question":"Is it possible to override a non-virtual method?","quiz_id":4,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[0],"code":"","created":"2020-03-19 13:56:27","explanation":null,"id":251,"level":0,"options":["Yes","No"],"question":"Can we use the virtual modifier with the public modifier?","quiz_id":4,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[1],"code":"","created":"2020-03-19 13:56:27","explanation":null,"id":252,"level":0,"options":["Yes","No"],"question":"Can we use the virtual modifier with the static modifier?","quiz_id":4,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[1],"code":"","created":"2020-03-19 13:56:27","explanation":null,"id":253,"level":0,"options":["Yes","No"],"question":"Can we use the virtual modifier with the abstract modifier?","quiz_id":4,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[1],"code":"","created":"2020-03-19 13:56:27","explanation":null,"id":254,"level":0,"options":["Yes","No"],"question":"Can we use the virtual modifier with the private modifier?","quiz_id":4,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[4],"code":"","created":"2020-03-19 13:56:27","explanation":null,"id":308,"level":0,"options":["$ git add <repo url>","$ git copy <repo url>","$ git commit <repo url>","$ git paste <repo url>","$ git clone <repo url>"],"question":"How to clone an existing repository?","quiz_id":12,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[2],"code":"","created":"2020-03-19 13:56:27","explanation":null,"id":255,"level":1,"options":["It instructs the compiler that the variable is a pointer","It is an alias for public modifier","It instructs the compiler to infer the type of the variable from the expression on the right side of the initialization statement.","There is no var keyword in C#"],"question":"What does the var keyword stand for?","quiz_id":4,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[0],"code":"","created":"2020-03-19 13:56:27","explanation":null,"id":256,"level":0,"options":["Yes","No","Yes, but maximum 5"],"question":"Can a class or struct implement multiple interfaces?","quiz_id":4,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[0],"code":"","created":"2020-03-19 13:56:27","explanation":null,"id":257,"level":2,"options":["Defines a method to release allocated resources","Defines a method to manage threads","Defines a method to manage unsafe context","Defines a method for preventing stack overloading"],"question":"What is the purpose of the IDisposable interface?","quiz_id":4,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[1],"code":"","created":"2020-03-19 13:56:27","explanation":null,"id":258,"level":1,"options":["Yes","No"],"question":"Can the ActivationContext class be inherited?","quiz_id":4,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[0],"code":"","created":"2020-03-19 13:56:27","explanation":null,"id":259,"level":0,"options":["Yes","No"],"question":"Should derived non abstract class of an abstract class implement all abstract methods?","quiz_id":4,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[1],"code":"","created":"2020-03-19 13:56:27","explanation":null,"id":260,"level":0,"options":["Yes","No, it is an error"],"question":"Is it possible to use the static or virtual modifiers in an abstract method declaration?","quiz_id":4,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[1],"code":"","created":"2020-03-19 13:56:27","explanation":null,"id":261,"level":0,"options":["No, it is a run-time error","No, it is a compile-time error","Yes, it's allowed"],"question":"It is possible to reference a private member outside the class or the struct in which it is declared?","quiz_id":4,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[2],"code":"","created":"2020-03-19 13:56:27","explanation":null,"id":262,"level":1,"options":["outside","unsafe","extern","external"],"question":"Which modifier is used with a method that is implemented outside the C# code?","quiz_id":4,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[0],"code":"","created":"2020-03-19 13:56:27","explanation":null,"id":263,"level":0,"options":["Stack<T>","SortedSet<T>","LinkedList<T>","Queue<T>"],"question":"Which base generic class represents a variable size last-in-first-out (LIFO) collection of instances of the same specified type?","quiz_id":4,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[1],"code":"","created":"2020-03-19 13:56:27","explanation":null,"id":264,"level":0,"options":["UObject","Object","Net","System"],"question":"What is the ultimate base class of all classes in the .NET Framework?","quiz_id":4,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[1],"code":"","created":"2020-03-19 13:56:27","explanation":null,"id":265,"level":0,"options":["^","?:","await","#"],"question":"Which of the following operators represents a conditional operation?","quiz_id":4,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[1,3,5],"code":"","created":"2020-03-19 13:56:27","explanation":null,"id":266,"level":2,"options":["object","Task","String","Task<TResult>","stringint","void"],"question":"Choose all the correct return type of an async method.","quiz_id":4,"type":"multi_select","updated":"2020-03-19 13:56:27"},{"answer":[1],"code":"","created":"2020-03-19 13:56:27","explanation":null,"id":267,"level":1,"options":["#region","#elif","#line","#cond"],"question":"Which preprocessor directive allows creating a compound conditional directive?","quiz_id":4,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[1],"code":"","created":"2020-03-19 13:56:27","explanation":null,"id":268,"level":2,"options":["Yes","No"],"question":"Is it possible to use #pragma directive to create custom preprocessing instructions?","quiz_id":4,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[0,4],"code":"","created":"2020-03-19 13:56:27","explanation":null,"id":269,"level":2,"options":["#pragma warning","#pragma error","#pragma restore","#pragma debug","#pragma checksum","#pragma disable","#pragma link"],"question":"Which of the following #pragma instructions is supported by the Microsoft C# compiler?","quiz_id":4,"type":"multi_select","updated":"2020-03-19 13:56:27"},{"answer":[1],"code":"","created":"2020-03-19 13:56:27","explanation":null,"id":270,"level":1,"options":["InternetClient","HttpClient","HttpsClient","SocketClient"],"question":"What is the base class for sending HTTP requests and receiving HTTP responses from a resource identified by a URI?","quiz_id":4,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[1],"code":"","created":"2020-03-19 13:56:27","explanation":null,"id":271,"level":1,"options":["The program name is Test","The Main method will be found in Test","There is more than one Main method","Nothing"],"question":"What does /main mean in below command?
C:\\> csc t2.cs t3.cs /main:Test","quiz_id":4,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[1],"code":"int i = 10;object o = i;Console.WriteLine(o.ToString());","created":"2020-03-19 13:56:27","explanation":null,"id":272,"level":0,"options":["0","10","null","System.Int32"],"question":"What will be the output?","quiz_id":4,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[0],"code":"public enum Color { Green, Orange, Red, Blue };","created":"2020-03-19 13:56:27","explanation":null,"id":273,"level":0,"options":["0","1","null","There is no associated integer value"],"question":"What is an associated integer value of Green?","quiz_id":4,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[0],"code":"public const int NUMBER = 9;public constant int NUMBER = 9;#define NUMBER 9public define const int NUMBER = 9;","created":"2020-03-19 13:56:27","explanation":null,"id":274,"level":0,"options":["1","2","3","4","None of the above"],"question":"Which is the correct way to define constant?","quiz_id":4,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[2],"code":"Console.Wait( );Console.Key( );Console.ReadKey( );Console.WaitKey( );","created":"2020-03-19 13:56:27","explanation":null,"id":275,"level":0,"options":["1","2","3","4","None of the above"],"question":"Which method is used to wait until a character or function key is pressed?","quiz_id":4,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[0],"code":"static int Main( ) {// …}","created":"2020-03-19 13:56:27","explanation":null,"id":276,"level":0,"options":["Yes","No"],"question":"Can the Main( ) method return an integer?","quiz_id":4,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[1],"code":"string pi = \u03a0;byte[ ] ascii = System.Text.Encoding.ASCII.GetBytes(pi);Console.WriteLine(ascii.Length);","created":"2020-03-19 13:56:27","explanation":null,"id":277,"level":2,"options":["0","1","2","Error"],"question":"What will be the output?","quiz_id":4,"type":"single_select","updated":"2020-03-19 13:56:27"},{"answer":[0,2,3],"code":"long num = Int64.Parse(str)