CS201 LIVE QUIZ FINAL TERM 23/24

435
Created on By Dilawar

CS201 live quiz final term 23/24

1 / 20

access the data members of structure _______ is used.

2 / 20

What does 5 ^ 6 , evaluate to in decimal where ‘^’ is Exclusive OR operator?

3 / 20

 If constructor contains a return statement in its body then compiler will give __________

4 / 20

We can use New keyword inside of Class Constructor.

5 / 20

When an operator function is define as member function for a Unary operator then the number of argument it take is/are,

6 / 20

 The declarator of Plus (+) member operator function is

8 / 20

 We can also create an array of user define data type.

 

9 / 20

What is the sequence of event(s) when deallocating memory using delete operator

10 / 20

Deleting an array of objects without specifying [] brackets may lead to memory leak

11 / 20

Which of the following data type(s) can operate on modulus operator ‘%’?

13 / 20

With template function, the compiler automatically detects the passed data and generates a new copy of function using passed data.

14 / 20

What will be the correct syntax to initialize all elements of two-dimensional array to value 0?

15 / 20

When an operator function is define as member function then operand on the left side of operator must be an object.

16 / 20

break statement can be used outside a loop or switch statement.

17 / 20

 The keyword_______ is used to return some value from a function.

19 / 20

Which of the following is true for the C++ statement given below?

 int &ref = val ;

20 / 20

Every data member or function inside the structure is ___ by default whereas everything declared inside a class is ____ by default.

Your score is

The average score is 57%

0%

Leave a Comment