Question No: 1 && is -------------------- operator.
► An arithmetic
► Logical
► Relational
► Unary
Question No: 2 Which of the following function(s) is/are included in ctype.h header file?
► isdigit(int c)
► isxdigit(int c )
► tolower(int c)
► All of the above
Question No: 3 Disks are _______________ devices having access time of _________ milliseconds.
► Electro-physical, 6
► Electro-Mechanical, 4
► Electro-physical, 5
► Electro-Mechanical, 7
Question No: 4 All preprocessor directives are started with the symbol______.
► *
► ++
► @
► #
Question No: 5 When we use manipulators in our program then which header file should be included?
► iostream.h
► stdlib.h
► stdio.h
► iomanip.h
Question No: 6 setprecision is a parameter less manipulator.
► True
► False
Question No: 7 Which of the following is NOT a preprocessor directive?
► #error
► #define
► #line
► #ndefine
Question No: 8 We can do arithmetic with references like pointers.
► True
► False
Question No: 9 What does (*this) represents?
► The current function of the class
► The current pointer of the class
► The current object of the class
► A value of the data member
Question No: 10 Friend function of a class is ______________ .
► Member function
► Non-member function
► Private function
► Public function
Question No: 11 A function can declare itself a friend of a class.
► True
► False
Question No: 12 Overloaded delete operator function takes the same parameter as an argument returned by new operator function.
► True
► False
Question No: 13 The second parameter of operator functions for << and >> are objects of the class for which we are overloading these operators.
► True
► False
Question No: 14 A template function must have at least ---------- generic data type
► Zero
► One
► Two
► Three
Question No: 15 A template function must have only generic data types.
► True
► False
Question No: 16 We can not make a member function of a class as template function.
► True
► False
Question No: 17 Which character is inserted at the end of string to indicate the end of string?
► new line
► tab
► null
► carriage return
Question No: 18 Assignment operator is used for ___________.
► calculation
► reading
► assigning value to variables
► None of the given options.
Question No: 19 The object _______________may be used both for file input and file output
► fstream,
► ifstream,
► ofstream,
► none of the given options.
Question No: 20 Which of the following function calling mechanism is true for the function prototype given below?
float func(float &);
► Call by value
► Call by reference using pointer
► Call by reference using reference variable
► None of the given options
Question No: 21 The programs, in which we allocate static memory, run essentially on ________
► Heap
► System Cache
► None of the given options
► Stack
Question No: 22 Overloaded delete operator function takes parameter of void pointer and returns ________.
► void
► void pointer
► pointer to an object
► pointer of type int
Question No: 23 What should be the return type of the constructor?
► void pointer
► int
► same as object type
► constructors do not return any thing
Question No: 24 It is a way of reusing the code when we contain objects of our already written classes into a new class,
► True
► False
Question No: 25 Templates are not type safe.
► true
► false
Question No: 26 The functions used for dynamic memory allocation return pointer of type ______
► int
► float
► void
► double
0 comments
Post a Comment