Search Header Logo

C++ Quiz 4

Authored by Mohammad Harry Khomas Saputra

Computers

University

Used 1+ times

C++ Quiz 4
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Apa tipe data yang digunakan untuk menyimpan bilangan bulat di C++?

float

double

int

char

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Apa hasil dari ekspresi berikut? int x = 5 + 3 * 2;

10

16

11

26

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Apa hasil dari ekspresi berikut? 12 % 5

2

3

4

0

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Mana dari berikut ini adalah operator penugasan di C++?

+

=

*

==

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Apa yang akan dicetak oleh program berikut? int x = 5; if (x > 3) { cout << "x lebih besar dari 3"; } else { cout << "x tidak lebih besar dari 3"; }

x lebih besar dari 3

x tidak lebih besar dari 3

Tidak ada yang dicetak

x sama dengan 3

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Apa output dari program berikut? int nilai = 75; if (nilai >= 90) { cout << "A"; } else if (nilai >= 80) { cout << "B"; } else if (nilai >= 70) { cout << "C"; } else { cout << "D"; }

A

B

C

D

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Berapa kali perulangan berikut akan dijalankan? for (int i = 0; i < 5; i++) { // kode }

4

5

6

7

Access all questions and much more by creating a free account

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

Already have an account?