12A and C version 1 Final Semester 1 Exam

12A and C version 1 Final Semester 1 Exam

12th Grade

20 Qs

quiz-placeholder

Similar activities

Quiz 1 on Artificial Intelligence

Quiz 1 on Artificial Intelligence

12th Grade

20 Qs

Python Library Routines Quiz

Python Library Routines Quiz

10th Grade - University

18 Qs

Lesson 1: System Attacks and External Threats

Lesson 1: System Attacks and External Threats

9th - 12th Grade

15 Qs

Code Camp Quiz 2025 V1

Code Camp Quiz 2025 V1

6th Grade - University

20 Qs

12A and C version 2 Final Semester 1 Exam

12A and C version 2 Final Semester 1 Exam

12th Grade

20 Qs

CodeHS Cybersecurity-and-You-Quiz

CodeHS Cybersecurity-and-You-Quiz

9th - 12th Grade

15 Qs

Technology examination revision

Technology examination revision

8th Grade - University

20 Qs

7th Grade

7th Grade

7th Grade - University

17 Qs

12A and C version 1 Final Semester 1 Exam

12A and C version 1 Final Semester 1 Exam

Assessment

Quiz

Information Technology (IT)

12th Grade

Easy

Created by

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

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?