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

MicroBit 1

MicroBit 1

9th Grade - University

20 Qs

Informatics

Informatics

11th Grade - University

20 Qs

Internet and App script

Internet and App script

5th Grade - University

22 Qs

KODING PYTON 1

KODING PYTON 1

11th Grade - University

20 Qs

Grade 6 - Living with AI

Grade 6 - Living with AI

6th Grade - University

15 Qs

Evaluación periodo 1 grado 10°

Evaluación periodo 1 grado 10°

10th Grade - University

18 Qs

MID Sem 1 Fase FL 2024

MID Sem 1 Fase FL 2024

12th Grade

20 Qs

Fase E. 12 TKJ 1. Jenis Layanan Hosting Spek Kebutuhan hosting

Fase E. 12 TKJ 1. Jenis Layanan Hosting Spek Kebutuhan hosting

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

Practice Problem

Easy

Created by

Dina Sharawy

Used 3+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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?