
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)
Access all questions and much more by creating a free account
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
LATIHAN SOAL TIK KELAS IX
Quiz
•
9th Grade
52 questions
Computer Basics
Quiz
•
9th - 12th Grade
50 questions
VOIP XII
Quiz
•
1st Grade - University
50 questions
ASK PT3 LATIHAN PKP 01
Quiz
•
7th - 10th Grade
50 questions
Quiz Latihan Soal-Soal UTS Keamanan Jaringan
Quiz
•
KG - University
45 questions
GCSE Python Legends
Quiz
•
1st - 12th Grade
51 questions
Yr 8 (IT3) - Hardware & Software
Quiz
•
5th - 9th Grade
50 questions
QUIZZ KJD - SISTEM OPERASI
Quiz
•
KG - Professional Dev...
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
