C++ Quiz
<-- Quizzes
Are you ready to start the quiz?
Start
What is a correct syntax to output "Hello World" in C++?
Cout << "Hello World";
print('hello world');
System.out.println('hello world');
Console.WriteLine('hello world');
Next
A C++ program statements can be commented using
Single Line comment
Multi Line comment
Either A or B
Both A and B
Back
Next
What is the size of ‘int’?
2
4
8
Compiler Dependent
Back
Next
Which data type is used to create a variable that should store text?
string
String
myString
Txt
Back
Next
How do you create a variable with the numeric value 5?
x = 5
double x = 5
int x = 5
num x = 5
Back
Result
Try Again
Correct Answers
↓
What is a correct syntax to output "Hello World" in C++?
Cout << "Hello World";
print('hello world');
System.out.println('hello world');
Console.WriteLine('hello world');
A C++ program statements can be commented using
Single Line comment
Multi Line comment
Either A or B
Both A and B
What is the size of ‘int’?
2
4
8
Compiler Dependent
Which data type is used to create a variable that should store text?
string
String
myString
Txt
How do you create a variable with the numeric value 5?
x = 5
double x = 5
int x = 5
num x = 5