CS201 MIDTERM QUIZ LIVE 2023 December 22, 2022 by Dilawar 283 FINISH THE QUIZ BEFORE TIME RUN'S OUT . USE YOUR BRAIN THANK YOU FOR ATTEMPTING THE QUIZ Created on December 22, 2022 By Dilawar cs201 midterm quiz live 2023 1 / 20 For binary member operators, operands on the ___________ drives (calls) the operation. Left Right Both left and right None of the given 2 / 20 We cannot increment ____________. Pointers Arrays References Variables 3 / 20 We can ___________ pointer. Increment Decrement Reassign All of the given 4 / 20 We can _____________references. Increment Decrement Reassign None of the given 5 / 20 What will be the correct syntax for the following function call? Float add (int&); Add(int x); Add(&x); Add(x); Add(*x); 6 / 20 In C/C++ the string constant is enclosed Also Read: CS201 MIDTERM IMPORTANT MCQS AND SUBJECTIVE QUESTIONS In curly braces In small braces In single quotes In double quotes 7 / 20 The size of int data type is 1 bytes 2 bytes 3 bytes 4 bytes 8 / 20 In Flow chart process is represented by Rectangle Arrow symbol Oval Circle 9 / 20 When we are using const keyword with a variable x then initializing it at the time of declaration is, Must Optional Not necessary A syntax error 10 / 20 Which of the following is the correct way to assign an integer value 5 to element of a matrix say ‘m’ at second row and third column? m[2][3] = 5 ; m[3][2] = 5 ; m[1][2] = 5 ; m[2][3] = ‘5’; 11 / 20 How many total elements must be in two-dimensional array of 3 rows and 2 columns? Also Read: mgt101 midterm Quiz live 2023 4 5 6 7 12 / 20 The return type of a function that do not return any value must be __________ int void double float 13 / 20 Which of the following is an extension of header file? .exe .txt .h .c 14 / 20 We want to access array in random order which approach is better? Pointers Array index Both pointers and array index are better None of the given options. 15 / 20 When we declare a multidimensional array the compiler store the elements of multidimensional array in the form of, Columns Rows Contiguous memory location Matrix 16 / 20 An instance of a class is called __________. Structure Data type Object Member function 17 / 20 Also Read: CS201 midterm mcqs preparation 2022 The ________ is called automatically when an object destroys Destructor Constructor Main program Default constructor 18 / 20 The destructor is used to ____________. Allocate memory Deallocate memory Create objects Allocate static memory 19 / 20 __________data isn’t accessible by non-member functions or outside classes. Public Private Static Globally declared 20 / 20 Member functions of the class ________ main program. Are not accessible Are accessible from Are defined within the Are private to Your score is The average score is 63% LinkedIn Facebook Twitter VKontakte 0% Restart quiz Related