Kuis Percabangan dan Perulangan

Quiz
•
Computers
•
10th Grade
•
Hard
Bramantya Sanjaya
Used 4+ times
FREE Resource
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
Similar Resources on Wayground
10 questions
Программирование C#

Quiz
•
1st - 10th Grade
10 questions
LATIHAN 4

Quiz
•
10th Grade
10 questions
基礎題目

Quiz
•
10th Grade
10 questions
Coding C++ - X2

Quiz
•
10th Grade
10 questions
Programming with C++

Quiz
•
9th - 12th Grade
10 questions
Functions in C++

Quiz
•
9th - 12th Grade
12 questions
ПШ_C++_#1

Quiz
•
10th Grade
10 questions
Quiz C++ Grade 10

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

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

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
10 questions
1.2 OSI & TCP IP Models Quiz

Quiz
•
10th Grade
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
20 questions
Hardware vs. Software Quiz

Quiz
•
7th - 10th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade
19 questions
AP CSP Unit 1 Review (code.org)

Quiz
•
10th - 12th Grade