[{"id":190321,"question":"Consider the following code segment. What will be the output of following code? Int addValue (int *a){ int b = (*a) + 2; return b ; }  main () { int x =6 ; cout &lt;&lt; x &lt;&lt; “,” ; cout &lt;&lt; addValue(&amp;x) &lt;&lt; “,” ; cout &lt;&lt; x ; }.","choices":[{"text":"6,8,6","value":"A"},{"text":"6,6,8","value":"B"},{"text":"6,8,8","value":"C"},{"text":"6,6,6","value":"D"},{"value":"E"}],"correctAnswer":1},{"id":190320,"question":"Consider the following code segment. What will be the output of following code? Int addValue (int *a){ int b = (*a) + 2; return b ; }  main () { int x =6 ; cout &lt;&lt; x &lt;&lt; “,” ; cout &lt;&lt; addValue(&amp;x) &lt;&lt; “,” ; cout &lt;&lt; x ; }.","choices":[{"text":"6,8,6","value":"A"},{"text":"6,6,8","value":"B"},{"text":"6,8,8","value":"C"},{"text":"6,6,6","value":"D"},{"value":"E"}],"correctAnswer":1},{"id":190319,"question":"What will be the value of ‘a’ and ‘b’ after executing the following statements?A = 3; b = a++;","choices":[{"text":"3, 4","value":"A"},{"text":"4, 4","value":"B"},{"text":"3, 3","value":"C"},{"text":"4, 3","value":"D"},{"value":"E"}],"correctAnswer":4},{"id":190318,"question":"C is widely known as development language of _______ operating system.","choices":[{"text":"Linux","value":"A"},{"text":"Windows","value":"B"},{"text":"Unix","value":"C"},{"text":"Mac OS","value":"D"},{"value":"E"}],"correctAnswer":3},{"id":190317,"question":"The stream objects cin and cout are included in which header file?","choices":[{"text":"iostream.h","value":"A"},{"text":"fstream.h","value":"B"},{"text":"istream.h","value":"C"},{"text":"ostream.h","value":"D"},{"value":"E"}],"correctAnswer":1},{"id":190316,"question":"Which of the following is NOT a preprocessor directive?","choices":[{"text":"#error","value":"A"},{"text":"#define","value":"B"},{"text":"#line","value":"C"},{"text":"#ndefine","value":"D"},{"value":"E"}],"correctAnswer":4},{"id":190315,"question":"Which of the following function is used to increase the size of already allocated memory chunk?","choices":[{"text":"malloc","value":"A"},{"text":"calloc","value":"B"},{"text":"realloc","value":"C"},{"text":"free","value":"D"},{"value":"E"}],"correctAnswer":3},{"id":190314,"question":"When a value is referred by a normal variable then it is known as,","choices":[{"text":"Direct Reference","value":"A"},{"text":"Indirect Reference","value":"B"},{"text":"Partial Reference","value":"C"},{"text":"Proper Reference","value":"D"},{"value":"E"}],"correctAnswer":1},{"id":190313,"question":"Operator overloading can be performed through__________________.","choices":[{"text":"Classes","value":"A"},{"text":"Function","value":"B"},{"text":"Operators","value":"C"},{"text":"Reference","value":"D"},{"value":"E"}],"correctAnswer":2},{"id":190312,"question":"Reference Value Type Data The code is written to __________ the program.","choices":[{"text":"implement","value":"A"},{"text":"design","value":"B"},{"text":"analysis","value":"C"},{"text":"none of the given options","value":"D"},{"value":"E"}],"correctAnswer":1},{"id":190311,"question":"A Pointer is a special variable that contain.","choices":[{"text":"Data values","value":"A"},{"text":"Memory Address","value":"B"},{"text":"Both data and values","value":"C"},{"text":"None of the given option","value":"D"},{"value":"E"}],"correctAnswer":2},{"id":190310,"question":"Which of the following is the correct C++ syntax to allocate space dynamically for an array of 10 int?","choices":[{"text":"new int(10)","value":"A"},{"text":"new int[10] ;","value":"B"},{"text":"int new(10) ;","value":"C"},{"text":"int new[10];","value":"D"},{"value":"E"}],"correctAnswer":2},{"id":190309,"question":"How many bytes will the pointer intPtr of type int move in the following statement? intPtr += 3 ;","choices":[{"text":"3 bytes","value":"A"},{"text":"6 bytes","value":"B"},{"text":"12 bytes","value":"C"},{"text":"24 bytes","value":"D"},{"value":"E"}],"correctAnswer":3},{"id":190308,"question":"Class is a user defined___________.","choices":[{"text":"Data type","value":"A"},{"text":"Memory referee","value":"B"},{"text":"Value","value":"C"},{"text":"None of the given options","value":"D"},{"value":"E"}],"correctAnswer":1},{"id":190307,"question":"Which one of the following is the declaration of overloaded pre-increment operator implemented as member function?","choices":[{"text":"Class-name operator +()","value":"A"},{"text":"Class-name operator +(int)","value":"B"},{"text":"Class-name operator ++() ;","value":"C"},{"text":"Class-name operator ++(int) ;","value":"D"},{"value":"E"}],"correctAnswer":3},{"id":190306,"question":"Which of the following statement is best regarding declaration of friend function?","choices":[{"text":"Friend function must be declared after public keyword","value":"A"},{"text":"Friend function must be declared after private keyword","value":"B"},{"text":"Friend function must be declared at the top within class definition","value":"C"},{"text":"It can be declared anywhere in class as these are not affected by the public and private keywords","value":"D"},{"value":"E"}],"correctAnswer":4},{"id":190305,"question":"All A template function must have at least ---------- generic data type.","choices":[{"text":"Zero","value":"A"},{"text":"One","value":"B"},{"text":"Two","value":"C"},{"text":"Three","value":"D"},{"value":"E"}],"correctAnswer":2}]