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
10 questions
ORIGIN OF LAKE TOBA

Quiz
•
10th Grade
6 questions
Uji Kemampuan Penjumlahan

Quiz
•
10th Grade
10 questions
kuiziiz

Quiz
•
10th Grade
10 questions
Question Tag Challenge

Quiz
•
10th Grade
10 questions
Mastering Type 1 If Clauses

Quiz
•
10th Grade
10 questions
Uji Kemampuan Bahasa Inggris Kelas 5

Quiz
•
4th Grade - University
10 questions
Understanding Simple Tenses

Quiz
•
10th Grade
10 questions
Simple Fututre Tense

Quiz
•
10th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Others
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
6 questions
Rule of Law

Quiz
•
6th - 12th Grade
15 questions
ACT Math Practice Test

Quiz
•
9th - 12th Grade
18 questions
Hispanic Heritage Month

Quiz
•
KG - 12th Grade
10 questions
Would you rather...

Quiz
•
KG - University