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
What is the correct syntax to declare an integer variable in C++?
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 Wayground
25 questions
3 Tri C# 2

Quiz
•
12th Grade
15 questions
тест 1 алгоритм

Quiz
•
12th Grade
20 questions
Mastering C: Control Structures and More

Quiz
•
12th Grade
25 questions
3 Tri C# 3

Quiz
•
12th Grade
25 questions
C Programming Concepts Assessment

Quiz
•
12th Grade
15 questions
MakeCode Arcade Questions

Quiz
•
10th Grade - University
15 questions
Quiz Pemrograman Arduino

Quiz
•
10th Grade - University
15 questions
แข่งขันcodingม.ต้น

Quiz
•
12th Grade - University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Information Technology (IT)
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
10 questions
Video Games

Quiz
•
6th - 12th Grade
28 questions
Ser vs estar

Quiz
•
9th - 12th Grade
13 questions
BizInnovator Startup - Experience and Overview

Quiz
•
9th - 12th Grade
16 questions
AP Biology: Unit 1 Review (CED)

Quiz
•
9th - 12th Grade
20 questions
Parallel lines and transversals

Quiz
•
9th - 12th Grade
9 questions
Geometry and Trigonometry Concepts

Interactive video
•
9th - 12th Grade
10 questions
Angle Relationships with Parallel Lines and a Transversal

Quiz
•
9th - 12th Grade