Kuis Percabangan dan Perulangan
Quiz
•
Computers
•
10th Grade
•
Hard
Bramantya Sanjaya
Used 4+ times
FREE Resource
Enhance your content
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Apa yang merupakan tujuan dari pernyataan "if" dalam bahasa pemrograman C++?
Melakukan perulangan
Melakukan percabangan
Menyimpan data
Menampilkan output
2.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Bagaimana sintaks yang benar untuk melakukan perulangan for yang menghitung angka 1 hingga 5 dalam bahasa C++?
for (int i = 1; i < 6; i++)
for (int i = 1; i <= 5; i++)
for (int i = 1; i < 5; i++)
for (int i = 1; i = 5; i++)
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Apa fungsi dari pernyataan "else" dalam struktur percabangan if-else?
Melakukan percabangan alternatif
Menyelesaikan program
Menghentikan perulangan
Menampilkan pesan kesalahan
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Pertanyaan: Bagaimana cara menghentikan perulangan while jika kondisi tertentu terpenuhi dalam bahasa C++?
break
exit
stop
end
5.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Apa output dari program berikut?
int x = 5;
if (x > 3)
cout << "Nilai x lebih besar dari 3";
else
cout << "Nilai x tidak lebih besar dari 3";
Nilai x lebih besar dari 3
Nilai x tidak lebih besar dari 3
Nilai x sama dengan 3
Program akan error**
6.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Bagaimana sintaks yang benar untuk menginisialisasi array bilangan bulat dengan ukuran 4 dalam bahasa C++?
int numbers[4] = {1, 2, 3, 4};
int numbers(1, 2, 3, 4);
array<int> numbers = {1, 2, 3, 4};
numbers[4] = {1, 2, 3, 4};
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Apa yang dilakukan oleh fungsi "cin" dalam bahasa C++?
Menampilkan output ke layar
Menerima input dari pengguna
Menghentikan program
Menghitung hasil perhitungan
Create a free account and access millions of resources
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple

Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
15 questions
Начала программирования на языке Паскаль
Quiz
•
8th - 11th Grade
15 questions
UH
Quiz
•
10th Grade
10 questions
Fundamentals of Algorithms
Quiz
•
10th Grade
11 questions
Процедуры и функции
Quiz
•
10th Grade
10 questions
PÁGINAS WEB
Quiz
•
10th Grade
10 questions
Windows 7 Installation
Quiz
•
10th - 12th Grade
11 questions
Cascading Style Sheets
Quiz
•
8th - 12th Grade
10 questions
10 CS // Pseudocode
Quiz
•
9th - 11th Grade
Popular Resources on Wayground
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
11 questions
NEASC Extended Advisory
Lesson
•
9th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns
Quiz
•
3rd Grade
20 questions
Multiplying and Dividing Integers
Quiz
•
7th Grade