Programming C++ MCQs for Programming competition

Programming C++ MCQs for Programming competition

1: What is true about the loop structure…

a) body of the loop

b) condition

c) loop control variable

d) all of these

Answer - Click Here:
D

2: ……. is not a loop structure…

a) while

b) do while

c) switch

d) for

Answer - Click Here:
C

3: Statements that is executed at least once in which satructure…

a) while

b) do while

c) for

d) none of these

Answer - Click Here:
b

4: Which of the following loop inside another loop is called…

a) bounded loop

b) nested loop

c) internal loop

d) inner loop

Answer - Click Here:
B

5: Statements can only be used inside the body of loop called…

a) if

b) break

c) countinue

d) switch

Answer - Click Here:
C

6: Which of the following option is exit due to library function exit()…

a) the function in which it occurs

b) the loop in which it occurs

c) the program in which it occurs

d) al of these

Answer - Click Here:
C

7: Specifires is used to access the member of the class outside the class are…

a) protected

b) private

c) public

d) none 

Answer - Click Here:
C

8: Which of the following is true about the object of a class contains…

a) member function

b) data members

c) both a and b

d) none of these

Answer - Click Here:
C

9: Which of the following is characteristics of an object are called…

a) behaviours

b) methods 

c) attributes

d) pointer

Answer - Click Here:
C

10:Which of the following is similar to a class…

a) pointer

b) srtructure

c) array

d) functions

Answer - Click Here:
B

11: Which of the following are designed as member function…

a) public

b) protected

c) private

d) all of these

Answer - Click Here:
A

12: Function of a class that have arguments and has no return data type…

a) overriden function

b) friend function

c) constructor

d) destructor

Answer - Click Here:
B

Programming C Plus Plus MCQs Homepage

shamil memory table

Computer Science Repeated MCQs Book Download