C++ Quiz Percabangan

C++ Quiz Percabangan

10th Grade

5 Qs

quiz-placeholder

Similar activities

Evaluasi Bimbel kedua

Evaluasi Bimbel kedua

9th - 12th Grade

10 Qs

Quiz Excel Dasar

Quiz Excel Dasar

10th Grade

8 Qs

Digital Footprint

Digital Footprint

4th Grade - University

10 Qs

KUIS KELAS X HAK DAN KEWAJIBAN WARGANEGARA

KUIS KELAS X HAK DAN KEWAJIBAN WARGANEGARA

10th Grade

10 Qs

Asesmen Formatif

Asesmen Formatif

10th Grade

8 Qs

Eksponen

Eksponen

10th Grade

5 Qs

Maths Quiz

Maths Quiz

10th Grade

10 Qs

Soal Evaluasi Pembulatan Bilangan

Soal Evaluasi Pembulatan Bilangan

4th Grade - University

5 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