C++ Quiz Percabangan

Quiz
•
Others
•
10th Grade
•
Hard
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
Similar Resources on Wayground
5 questions
Quiz Tata Nama Senyawa

Quiz
•
10th Grade
10 questions
Quiz tentang Pelanggaran dan pengingkaran Hak dan Kewajiban Warga Negara

Quiz
•
10th Grade
8 questions
Chemical Reactions And Equations

Quiz
•
10th Grade
10 questions
Quiz Frekuensi Relatif

Quiz
•
10th Grade
5 questions
light refraction and dispersion

Quiz
•
10th Grade
10 questions
Pengolah Kata Kelas 7 SMP

Quiz
•
9th - 12th Grade
10 questions
Mastering Verb Tenses

Quiz
•
10th Grade
10 questions
Quiz Sosiologi Kelas 10 Semester 1

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World

Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
20 questions
ELA Advisory Review

Quiz
•
7th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns

Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Others
10 questions
Ice Breaker Trivia: Food from Around the World

Quiz
•
3rd - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
11 questions
NFL Football logos

Quiz
•
KG - Professional Dev...
28 questions
Ser vs estar

Quiz
•
9th - 12th Grade
29 questions
CCG 2.2.3 Area

Quiz
•
9th - 12th Grade
10 questions
SAT Focus: Geometry

Quiz
•
10th Grade
15 questions
PRESENTE CONTINUO

Quiz
•
9th - 12th Grade