C++ Quiz Percabangan

C++ Quiz Percabangan

10th Grade

5 Qs

quiz-placeholder

Similar activities

pecahan

pecahan

10th Grade

1 Qs

Simple Past Grammar

Simple Past Grammar

9th - 12th Grade

10 Qs

Miss Nora's

Miss Nora's

9th - 12th Grade

10 Qs

Uji Pemahaman Pencacahan

Uji Pemahaman Pencacahan

10th Grade

10 Qs

Microsoft Excel

Microsoft Excel

9th - 12th Grade

10 Qs

TUGAS INFORMATIKA

TUGAS INFORMATIKA

10th Grade

10 Qs

sistem informasi dan komunikasi organisasi

sistem informasi dan komunikasi organisasi

10th Grade

10 Qs

Verb Tenses Challenge

Verb Tenses Challenge

10th Grade

10 Qs

C++ Quiz Percabangan

C++ Quiz Percabangan

Assessment

Quiz

Others

10th Grade

Hard

Created by

Fauzul Karomi

Used 1+ times

FREE Resource

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the 'if' statement in the code?

To output text to the console

To check if a number is even or odd

To perform a loop

To declare a variable

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be printed if the input number is 4?

Angka 4 adalah angka negatif.

Angka 4 adalah angka positif.

Angka 4 adalah angka genap.

Angka 4 adalah angka ganjil.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct way to output the variable 'angka' in the cout statement?

cout << 'angka';

cout << angka;

cout << 'Angka' << angka;

cout << 'Angka ' + angka;

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will happen if the input number is 3?

It will print that the number is odd.

It will cause a compilation error.

It will not print anything.

It will print that the number is even.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is missing in the else block of the code?

A return statement

A variable declaration

An output statement

A closing brace