12A and C version 2 Final Semester 1 Exam

12A and C version 2 Final Semester 1 Exam

12th Grade

20 Qs

quiz-placeholder

Similar activities

Mock-Up Academy Programming Online Test

Mock-Up Academy Programming Online Test

6th Grade - University

20 Qs

2.00

2.00

9th - 12th Grade

20 Qs

C++ Тест

C++ Тест

12th Grade

15 Qs

Kuis Uji Pemahaman Python Variabel, Sintaks Dasar, Type Data

Kuis Uji Pemahaman Python Variabel, Sintaks Dasar, Type Data

11th Grade - University

16 Qs

Quiz sur le langage PHP

Quiz sur le langage PHP

12th Grade

15 Qs

C++ Quiz 1

C++ Quiz 1

12th Grade

15 Qs

Python Battle Royale: Who Will Survive in the End?❤️🤔

Python Battle Royale: Who Will Survive in the End?❤️🤔

9th - 12th Grade

15 Qs

C++: Control y Funciones

C++: Control y Funciones

12th Grade

20 Qs

12A and C version 2 Final Semester 1 Exam

12A and C version 2 Final Semester 1 Exam

Assessment

Quiz

Information Technology (IT)

12th Grade

Medium

Created by

Dina Sharawy

Used 4+ times

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which symbol is used to end a statement in C++?

:

;

,

.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will the following code output? int a = 3, b = 7; cout << a * b;

10

21

37

Error

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which loop checks the condition before executing the body?

do-while loop

for loop

infinite loop

None of the above

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will the following code print? int n = 15; if (n % 5 == 0) cout << "Divisible"; else cout << "Not Divisible";

Divisible

Not Divisible

Error

15

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How many times will this loop execute? for (int i = 1; i <= 5; i++) cout << i;

4

5

Infinite

Error

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct operator to compare two values for equality?

=

==

!=

=>

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the value of y after this code executes? int y = 8; y -= 3;

3

5

8

11

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?

Discover more resources for Information Technology (IT)