Berpikir komputasi dan pemograman
Quiz
•
Information Technology (IT)
•
11th Grade
•
Practice Problem
•
Hard
Muchammad Ichwan
Used 1+ times
FREE Resource
Enhance your content in a minute
40 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Manakah pernyataan berikut yang benar tentang fungsi if–else dalam pemrograman?
If–else selalu diakhiri dengan return 0;.
If–else hanya bisa digunakan untuk tipe data int.
If–else digunakan untuk memilih tindakan berdasarkan kondisi logika.
If–else digunakan hanya untuk melakukan perulangan.
2.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Output dari program di atas adalah …
A
B
C
Tidak ada Output
3.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Dari kode berikut, bagian mana yang menunjukkan kondisi logika?
printf("Bukan sepuluh");
(x != 10)
if
{ ... }
4.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Jika nilai variabel x adalah 12, maka output program berikut adalah …
Tidak ada output
10
Dalam rentang
Di luar rentang
5.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Output program adalah …
A
B
C
D
6.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Jika sebuah kondisi if bernilai salah dan tidak ada blok else, maka …
Program akan berhenti.
Akan muncul error.
Program akan tetap menjalankan blok if.
Program akan melewati blok if dan melanjutkan baris berikutnya.
7.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Mengapa kurung kurawal {} penting digunakan dalam struktur if–else?
Agar program bisa dijalankan di IDE C.
Untuk menandai kondisi logika.
Agar if dan else bisa ditukar urutannya.
Untuk menandai awal dan akhir dari blok kode yang dieksekusi.
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
Already have an account?
Similar Resources on Wayground
45 questions
SAS GANJIL INFORMATIKA KELAS 7 TAHUN 2024-2025
Quiz
•
7th Grade - University
40 questions
xtgfrt
Quiz
•
University
40 questions
pre-test UPRAK INF G5
Quiz
•
11th Grade
35 questions
soal uji blok 1
Quiz
•
12th Grade
40 questions
Final Test preparation and recap
Quiz
•
University
45 questions
KISI-KISI CLOUD COMPUTING
Quiz
•
10th Grade - University
40 questions
Quiz tentang Prompt AI
Quiz
•
12th Grade
40 questions
Ulangan Pertama SMT 1 Kelas XI
Quiz
•
11th Grade
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
15 questions
4:3 Model Multiplication of Decimals by Whole Numbers
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
The Best Christmas Pageant Ever Chapters 1 & 2
Quiz
•
4th Grade
12 questions
Unit 4 Review Day
Quiz
•
3rd Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
Discover more resources for Information Technology (IT)
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
28 questions
Ser vs estar
Quiz
•
9th - 12th Grade
20 questions
Christmas Movie Trivia
Quiz
•
9th - 12th Grade
20 questions
Christmas Trivia
Quiz
•
5th - 12th Grade
20 questions
Stages of Meiosis
Quiz
•
9th - 12th Grade
11 questions
Solve Systems of Equations and Inequalities
Quiz
•
9th - 12th Grade
16 questions
AP Biology: Unit 2 Review (CED)
Quiz
•
9th - 12th Grade
20 questions
Winter Jokes
Quiz
•
5th - 12th Grade
