
Kuis Pemrograman Python

Quiz
•
Computers
•
9th Grade
•
Hard
Mhd Habibi
Used 2+ times
FREE Resource
50 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 5 pts
Manakah baris kode yang benar untuk mengimpor fungsi randint saja?
import random.randint
from random import randint
import math.randint
require random.randint
using random.randint
2.
MULTIPLE CHOICE QUESTION
20 sec • 5 pts
Diberikan angka = random.randint(1, 50), nilai yang tidak mungkin untuk angka adalah:
1
50
25
51
49
3.
MULTIPLE CHOICE QUESTION
20 sec • 5 pts
Apa yang terjadi jika kode int("10.5") dieksekusi?
Hasilnya 10
Berjalan tanpa error
TypeError
ValueError
Hasilnya 11
4.
MULTIPLE CHOICE QUESTION
20 sec • 5 pts
Berapa kali isi loop while jumlah_tebakan angka: print("Tinggi!")
if tebakan is angka: print("Benar!")
if tebakan angka: print("Tinggi!")
if tebakan != angka: print("Salah!")
else: print("Benar!")
5.
MULTIPLE CHOICE QUESTION
20 sec • 5 pts
Apa tujuan utama blok try-except di bawah ini?
Membuat angka acak
Mencetak pesan kemenangan
Menghentikan program
Mencegah crash karena input salah
Menghitung jumlah tebakan
6.
MULTIPLE CHOICE QUESTION
20 sec • 5 pts
Jika angka_rahasia = 75 dan user menebak 80, apa output kode ini?
A
B
C
B C
Tidak ada output
7.
MULTIPLE CHOICE QUESTION
20 sec • 5 pts
Di blok kondisional mana break paling tepat ditempatkan untuk mengakhiri game?
if tebakan angka_rahasia:
if tebakan == angka_rahasia:
except ValueError:
else: (blok utama)
Create a free account and access millions of resources
Similar Resources on Wayground
50 questions
sumatif akhir semester 2 informatika kelas 9

Quiz
•
9th Grade
50 questions
Computer basics

Quiz
•
5th - 9th Grade
50 questions
ASK T1 : Kod Arahan

Quiz
•
7th - 9th Grade
50 questions
SOAL TIK KELAS 9

Quiz
•
9th - 10th Grade
50 questions
QUIZ US

Quiz
•
9th - 12th Grade
50 questions
penilaian sumatif akhir semester genap kelas 9 ruangan 1

Quiz
•
9th Grade - University
50 questions
KUIS Jaringan Komputer dan Internet

Quiz
•
7th Grade - University
46 questions
Adobe Animate 2015

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
Appointment Passes Review

Quiz
•
6th - 8th 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
20 questions
Grammar Review

Quiz
•
6th - 9th Grade