C++ Programming language McQs Test Quiz

Programming and languages are using for software coding written. All most important computer languages MCQs are here. In this post C++ and different types of programming languages and their uses are defined in the Quiz Tests. C++ is also modern computer languages type. All most advanced language MCQs are here in Quiz Test and solved MCQs.



You Scored:

Ranking:





C++ Best Software Language Questions Answers




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

Same function

Caller function (Answer)

Main function

None of them

 

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

2

3

4

5 (Answer)

 

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

. (dot)

: (colon)

; (semi-colon) (Answer)

' (single quote)

 

4. How many types of loops are there?

5

2

4 (Answer)

3

 

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

False

Unevaluatable

True (Answer)

 

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

Type cast (Answer)

Function call

Addition and subtraction

Array subscripting

 

7. What is this operator called ?

None of the mentioned

Casting operator

Conditional (Answer)

Relational

 

8. Which of the following is a Correct comment?

{ Comment }

/* Comment */ (Answer)

*/ Comments */

** Comment **

 

9. Which of the following is not a Correct variable type?

double

real (Answer)

float

int

 

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

*

@

: (Answer)

$

 

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

start()

system()

main() (Answer)

program()

 

12. Which operator is having the highest precedence?

equality

postfix (Answer)

shift

unary

 

13. 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;

}

 

6 7

None of the mentioned

5 6 (Answer)

6 5

 

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

0 (Answer)

-1

Programs do not return a value

1

 

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

|

|&

&& (Answer)

&

 

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

Type cast (Answer)

Array subscripting

Function call

Addition and subtraction