
Kuis Pemrograman Python
Quiz
•
Computers
•
9th Grade
•
Practice Problem
•
Hard
Mhd Habibi
Used 2+ times
FREE Resource
Enhance your content in a minute
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
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
50 questions
Computer Components
Quiz
•
9th - 12th Grade
50 questions
UH1 Informatika
Quiz
•
9th Grade
50 questions
kuis Jaringan Internet
Quiz
•
9th Grade - University
50 questions
S02.2演算法与表达方式
Quiz
•
9th - 12th Grade
50 questions
USBN Bahasa Indonesia
Quiz
•
1st - 10th Grade
50 questions
UJIAN SEKOLAH TIK KELAS 9
Quiz
•
9th Grade
52 questions
Ulangkaji ASK Ting 2 Bab 3.1 Persekitaran Kod Arahan
Quiz
•
1st - 12th Grade
53 questions
Intro To Networking 123
Quiz
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade
