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

KODING PYTON 1

KODING PYTON 1

11th Grade - University

20 Qs

Java Basics

Java Basics

12th Grade - University

22 Qs

UPN_GBD_S4

UPN_GBD_S4

12th Grade - University

22 Qs

python basics

python basics

9th - 12th Grade

20 Qs

Test 1 Review

Test 1 Review

9th - 12th Grade

21 Qs

Internet and App script

Internet and App script

5th Grade - University

22 Qs

MID Sem 1 Fase FL 2024

MID Sem 1 Fase FL 2024

12th Grade

20 Qs

Examen primera unidad  Progra 5to Baco/PC

Examen primera unidad Progra 5to Baco/PC

12th Grade

16 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?