True False Questions of C++ |C++ True False Question

1. Bjarne Stroustrup invented C++.

a. True

b. False

2. C++ is a pure object-oriented language.

a. True

b. False

3. C++ is case sensitive language?

a. True

b. False

4. C++ is a superset of C language?

a. True

b. False

5. A C++ program must have a main function.

a. True

b. False

6.  A variable can store only one value at a time.  

a.    True

b.    False

7. All data types take up the same amount of storage.

a.     True

b.    False

8. char y=’a’ is a valid statement.

a. True

b. False

9. C++ Keywords can be used as variable name.

a. True

b. False

10. It is best to use very short identifiers.

a. True

b. False

11. Comments are statements in C++.  

a. True

b. False

12. conio.h contains mathematical functions.

a. True

b. False

13. “&&” is a OR operator.

a. True

b. False

14. In C++, you use the if statement to code the if and if/else forms of the selection structure.  

a. True

b. False

15. In C++, you can have an else clause without matching the if clause.  

a.     True

b.    False

16. You can include as many case clauses as necessary in a switch statement.  

a.    True

b.    False

17. do-while loop is guaranteed to execute at-least once.

a. True

b. False

18. In C++, the switch statement ends with a square bracket ( ] ).  

a.     True

b.    False

19. Arrays can store homogeneous set of data.

a. True

b. False

20. Structure data type used to store a homogeneous set of data types.

a. True

b. False

21. Class members are public by default.

a. True

b. False

22. Data items in a class must always be private.

a. True

b. False

23. In C++, a function contained within a class is called member function.

a. True

b. False

24. An object is an instance of the class.

a. True

b. False

25. When an object of a class is declared memory is allocated.

a. True

b. False

26. A class cannot have a private member.

a. True

b. False

27. Private members of a class cannot be accessed.

a. True

b. False

28. Private members can be accessed members and objects of the class.

a. True

b. False

29. Constructors do not return any value.

a. True

b. False

30. A constructor that accepts no parameter is known as the default constructor.

a. True

b. False

9 thoughts on “True False Questions of C++ |C++ True False Question”

  1. I have been surfing online more than 3 hours today yet I never found any interesting article like yours It is pretty worth enough for me In my opinion if all web owners and bloggers made good content as you did the web will be much more useful than ever before

    Reply
  2. you are truly a just right webmaster The site loading speed is incredible It kind of feels that youre doing any distinctive trick In addition The contents are masterwork you have done a great activity in this matter

    Reply

Leave a Comment