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

UPN_GBD_S4

UPN_GBD_S4

12th 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

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

Bài 27

Bài 27

10th Grade - University

15 Qs

programmazione fino ai cicli 3C

programmazione fino ai cicli 3C

11th Grade - University

15 Qs

C Programming MCQ Quiz

C Programming MCQ Quiz

12th Grade

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