C++ Quiz Percabangan

C++ Quiz Percabangan

10th Grade

5 Qs

quiz-placeholder

Similar activities

Tugas 1 Matematika - Perpangkatan

Tugas 1 Matematika - Perpangkatan

10th Grade

10 Qs

TIU

TIU

10th Grade

10 Qs

KUIS KELAS X HAK DAN KEWAJIBAN WARGANEGARA

KUIS KELAS X HAK DAN KEWAJIBAN WARGANEGARA

10th Grade

10 Qs

TUGAS INFORMATIKA

TUGAS INFORMATIKA

10th Grade

10 Qs

Verb Tenses Challenge

Verb Tenses Challenge

10th Grade

10 Qs

REDUCING ADVERB CLAUSE

REDUCING ADVERB CLAUSE

9th - 12th Grade

10 Qs

Asesmen Formatif

Asesmen Formatif

10th Grade

8 Qs

Pemahaman Nilai Tempat

Pemahaman Nilai Tempat

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