C++ Language Quiz Online Test Mcqs

Gotest Instruction for Test Online

The following quiz is about the C++ language. It includes mcq’s question answers related to the usage, functions and features of the programming language which means that by attempting it, you will get familiar to all important details at once.

C++ Language Quiz Online Test Mcqs Questions with Answers

 

Question 1 of 25

Uncategorized

1. Where does the return statement returns the execution of the program?
 
 
 
 

Question 1 of 25

Question 2 of 25

2. The destination statement for the goto label is identified by what label?
 
 
 
 

Question 2 of 25

Question 3 of 25

3. What will you use if you are not intended to get a return value?
 
 
 
 

Question 3 of 25

Question 4 of 25

4. What is the use of dynamic_cast operator?
 
 
 
 

Question 4 of 25

Question 5 of 25

5. What is the output of this program?

#include < iostream >

using namespace std;

int main()

{

int a = 5, b = 6, c, d;

c = a, b;

d = (a, b);

cout << c << 't' << d;

return 0;

}
 
 
 
 

Question 5 of 25

Question 6 of 25

6. What is this operator called ?
 
 
 
 

Question 6 of 25

Question 7 of 25

7. The switch statement is also called as?
 
 
 
 

Question 7 of 25

Question 8 of 25

8. Which operator is having the highest precedence?
 
 
 
 

Question 8 of 25

Question 9 of 25

9. What punctuation ends most lines of C++ code?
 
 
 
 

Question 9 of 25

Question 10 of 25

10. Which of the following is true?
 
 
 
 
 

Question 10 of 25

Question 11 of 25

11. Evaluate !(1 && !(0 || 1))?
 
 
 

Question 11 of 25

Question 12 of 25

12. What is the correct value to return to the operating system upon the successful completion of a program?
 
 
 
 

Question 12 of 25

Question 13 of 25

13. How many sequence of statements are present in c++?
 
 
 
 

Question 13 of 25

Question 14 of 25

14. Which of the following is the boolean operator for logical-and?
 
 
 
 

Question 14 of 25

Question 15 of 25

15. Which of the following is not a correct variable type?
 
 
 
 

Question 15 of 25

Question 16 of 25

16. Which operator is having right to left associativity in the following?
 
 
 
 

Question 16 of 25

Question 17 of 25

17. How many types of returning values are present in c++?
 
 
 
 

Question 17 of 25

Question 18 of 25

18. What is the only function all C++ programs must contain?
 
 
 
 

Question 18 of 25

Question 19 of 25

19. What punctuation is used to signal the beginning and end of code blocks?
 
 
 
 

Question 19 of 25

Question 20 of 25

20. Which operator is having right to left associativity in the following?
 
 
 
 

Question 20 of 25

Question 21 of 25

21. The if..else statement can be replaced by which operator?
 
 
 
 

Question 21 of 25

Question 22 of 25

22. Which of the following is the correct operator to compare two variables?
 
 
 
 

Question 22 of 25

Question 23 of 25

23. How many types of loops are there?
 
 
 
 

Question 23 of 25

Question 24 of 25

24. Which operator is having the highest precedence?
 
 
 
 

Question 24 of 25

Question 25 of 25

25. Which of the following is a correct comment?
 
 
 
 

Question 25 of 25


 

 

.

You can Check Our Other Related Topics

No comments.

Leave a Reply