Cs201 QuizFinalTerm Most Important Repeated Mcqs Online Quiz CS201 FINALTERM MOST IMPORTANT REPEATED MCQS ONLINE QUIZ Cs201 quiz helps us to increase our knowledge 1 / 26 Every class contains _______________. Constructor Destructor Both a constructor and a destructor None of the given options 2 / 26 We can also do conditional compilation with preprocessor directives True False 3 / 26 Template class can not have static variables. True False 4 / 26 Overloaded new operator function takes parameter of type size_t and returns void (nothing) void pointer object pointer int pointer 5 / 26 The statement cin.get (); is used to, Read a string from keyboard Read a character from keyboard Read a string from file Read a character from file 6 / 26 The code is written to __________ the program. implement design analysis none of the given options 7 / 26 Assignment operator is -------------------------associative. right left binary unary 8 / 26 We can also do conditional compilation with preprocessor directives. True False 9 / 26 Structure is a collection of ______________ under a single name. Only Functions Only Variables Both Functions and Variables None of the given options 10 / 26 A template function can have different type of arguments. True False 11 / 26 The number 544.53 must be stored in _____ data type. int short float char 12 / 26 Pointer is a variable which store, Data Memory Address Data Type Values 13 / 26 The precedence of an operator can be changed through operator overloading. True False 14 / 26 Every class contains _______________. Constructor Destructor Both a constructor and a destructor None of the given options 15 / 26 The first parameter of operator function for << operator, Must be passed by value Must be passed by reference Can be passed by value or reference Must be object of class 16 / 26 Friend function of a class is ______________ . Member function Non-member function Private function Public function 17 / 26 To access the data members of structure _______ is used. dot operator (.) * operator U operator None of given. 18 / 26 width() is member function of _____________ cin object cout object Both cin and cout object None of the given option 19 / 26 Which of the following function do NOT initialize the chunk of memory to all zero? calloc() function Both malloc() and calloc() None of the above malloc() function 20 / 26 Assignment operator is -------------------------associative. right left binar unary 21 / 26 new and delete are _____ whereas malloc and free are _____. Functions, operators Classes, operators Operators, functions Operators, classes 22 / 26 _______ is used to trace the logic of the program and correct the logical errors. Compiler Editor Linker Debugger 23 / 26 C is widely known as development language of _______ operating system. Linux Windows Unix Mac OS 24 / 26 Which of the following is NOT a preprocessor directive? #error #define #line #ndefine 25 / 26 Reference Value Type Data The code is written to __________ the program. implement design analysis none of the given options 26 / 26 A Pointer is a special variable that contain Data values Memory Address Both data and values None of the given option Your score isThe average score is 34% 0% Restart quiz