
C++ Syntax and Concepts Quiz

Quiz
•
Others
•
University
•
Hard
MO7MD Waled
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a correct syntax to output "Hello World" in C++?
print ("Hello World");
cout << "Hello World";
System.out.println("Hello World");
Console.WriteLine("Hello World");
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is used for comments in C++?
/* comment */
// comment
// comment
both // comment or /* comment */
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a correct identifier in C++?
VAR_1234
$var_name
7VARNAME
7var_name
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is used to terminate the function declaration in C++?
;
]
[
:
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which data type is used to create a variable that should store text?
String
string
sting
None
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you create a variable with the floating number 2.8?
byte num=2.8;
int num = 2.8;
num =2.8;
double num=2.8;
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which operator can be used to compare two values?
<>
==
=
><
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
كوكيز

Quiz
•
University
10 questions
Uji Pemahaman Pendapatan Nasional

Quiz
•
11th Grade - University
14 questions
Conscience

Quiz
•
University
20 questions
Economics products and cost

Quiz
•
University
20 questions
Economics Quiz on Production Concepts

Quiz
•
University
10 questions
Micro-organismes

Quiz
•
1st Grade - University
10 questions
Instruction Set Architecture Quiz

Quiz
•
University
18 questions
Testez vos soft skills

Quiz
•
University
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade