What is the correct syntax to declare an integer variable in C++?
12A and C version 1 Final Semester 1 Exam

Quiz
•
Information Technology (IT)
•
12th Grade
•
Easy
Dina Sharawy
Used 3+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
int num;
integer num;
var num;
num int;
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will the following code output? int x = 5, y = 10; cout << x + y;
10
15
50
Error
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following loops executes at least once, regardless of the condition?
for loop
while loop
do-while loop
None of the above
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will the following code print? int a = 8; if (a % 2 == 0) cout << "Even"; else cout << "Odd";
Even
Odd
8
Error
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of this code? for (int i = 0; i < 3; i++) cout << i << " ";
0 1 2
1 2 3
0 1 2 3
Error
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which operator is used for multiplication in C++?
/
*
%
#
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the value of x after the following code executes? int x = 5; x += 10;
5
10
15
50
Create a free account and access millions of resources
Similar Resources on Quizizz
20 questions
Quizizz SIOTICS #2

Quiz
•
10th Grade - University
15 questions
C++ Тест

Quiz
•
12th Grade
21 questions
Unit 3: Basic Python & Console Interaction

Quiz
•
9th - 12th Grade
20 questions
Introduction to C# Programming

Quiz
•
10th Grade - University
17 questions
Экзамен C++ ОП

Quiz
•
9th - 12th Grade
22 questions
ÔN TẬP CRV1

Quiz
•
6th Grade - University
20 questions
Video Game Programming and Design Questions

Quiz
•
9th - 12th Grade
20 questions
QUIZ in JAVA METHOD

Quiz
•
12th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Information Technology (IT)
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University