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

Test de C++ pentru clasa a 10-a

Test de C++ pentru clasa a 10-a

10th Grade - University

15 Qs

Introduction to C# Programming

Introduction to C# Programming

10th Grade - University

20 Qs

Python for loop/lists

Python for loop/lists

9th Grade - University

15 Qs

Understanding Loops in C Programming

Understanding Loops in C Programming

1st Grade - University

15 Qs

Bài 26

Bài 26

10th Grade - University

15 Qs

ÔN TẬP CRV1

ÔN TẬP CRV1

6th Grade - University

22 Qs

Video Game Programming and Design Questions

Video Game Programming and Design Questions

9th - 12th Grade

20 Qs

QUIZ in JAVA METHOD

QUIZ in JAVA METHOD

12th Grade

20 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
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?