Chapter 9: Introduction to C++ - Online Test

Q1. How many categories of data types available in C++?
Answer : Option C
Explaination / Solution:
No Explaination.


Q2. Which of the following data types is not a fundamental type?
Answer : Option A
Explaination / Solution:
No Explaination.


Q3.

What will be the result of following statement?

char ch= ‘B’;

cout << (int) ch;
Answer : Option D
Explaination / Solution:
No Explaination.


Q4. Which of the character is used as suffix to indicate a floating point value?
Answer : Option A
Explaination / Solution:
No Explaination.


Q5. How many bytes of memory allocates for the following variable declaration if you are using Dev C++? short int x;
Answer : Option A
Explaination / Solution:
No Explaination.


Q6.

What is the output of the following snippet?

char ch = ‘A’;

ch = ch + 1;

Answer : Option A
Explaination / Solution:
No Explaination.


Q7. Which of the following is not a data type modifier?
Answer : Option B
Explaination / Solution:
No Explaination.


Q8. Which of the following operator returns the size of the data type?
Answer : Option A
Explaination / Solution:
No Explaination.


Q9. Which operator to be used to access reference of a variable?
Answer : Option C
Explaination / Solution:
No Explaination.


Q10. This can be used as alternate to endl command:
Answer : Option D
Explaination / Solution:
No Explaination.