
Quiz Dasar Python
Quiz
•
Mathematics
•
University
•
Practice Problem
•
Hard
M. Haq
Used 2+ times
FREE Resource
Enhance your content in a minute
9 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 10 pts
Apa hasil dari kode berikut?
x = 4, y = 11
x = 5, y = 8
x = 4, y = 8
x = 5, y = 11
2.
MULTIPLE CHOICE QUESTION
30 sec • 10 pts
Mana dari ekspresi berikut yang menghasilkan True?
5 > 3 and 5 < 3
5 > 3 or 5 < 3
not 5 > 3
not 5 < 3 and 5 > 3
3.
MULTIPLE CHOICE QUESTION
30 sec • 10 pts
Berapa kali "Hello, World!" akan dicetak?
2 kali
3 kali
5 kali
Tak terbatas
4.
MULTIPLE CHOICE QUESTION
2 mins • 15 pts
Kamu membuat sebuah kelas bernama 'Account' untuk mengelola saldo ATM. Kelas ini memiliki metode deposit untuk menyetor uang ke dalam akun, metode withdraw untuk menarik uang dari akun, dan show_balance untuk menampilkan saldo saat ini. Saldo awal akun ditentukan saat objek akun dibuat. Apa output dari program tersebut?
Saldo saat ini: 1000
Saldo saat ini: 1300
Saldo saat ini: 800
Saldo saat ini: 1500
5.
MULTIPLE CHOICE QUESTION
2 mins • 15 pts
Perhatikan sistem manajemen inventaris untuk sebuah gudang menggunakan pemrograman berorientasi objek di Python pada gambar. Sistem ini dapat menambahkan item ke inventaris, mengurangi jumlah item tertentu, dan menampilkan inventaris saat ini. Jika metode my_warehouse.show_inventory() dieksekusi setelah operasi pada kode tersebut, apa yang akan ditampilkan?
Inventaris Gudang Saat Ini:
Bola: 20
Bola: 20
Inventaris Gudang Saat Ini:
Bola: -40
Inventaris Gudang Saat Ini:
Bola: -20
Inventaris Gudang Saat Ini:
Bola: 40
6.
MULTIPLE CHOICE QUESTION
2 mins • 10 pts
Berapakah nilai result setelah loop selesai?
5
10
20
8
7.
MULTIPLE CHOICE QUESTION
2 mins • 10 pts
Dalam sebuah program Python, seorang developer ingin menghitung berapa kali angka 7 muncul dalam range angka dari 1 sampai 50. Namun, jika dia menemukan angka yang merupakan kelipatan dari 9, dia akan berhenti menghitung. Berapakah jumlah kemunculan angka 7 sebelum program berhenti?
5
6
4
7
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
10 questions
Pendidikan Pancasila
Quiz
•
5th Grade - University
10 questions
Fungsi Kuadrat
Quiz
•
12th Grade - University
10 questions
Dasar Akuntansi dan Praktek
Quiz
•
1st Grade - University
10 questions
Soal cerita
Quiz
•
University - Professi...
11 questions
BILANGAN REAL KONTEKS BIOLOGI
Quiz
•
University
10 questions
Peluang Empiris dan Peluang Teoretis
Quiz
•
9th Grade - University
10 questions
Funciones, tasa de crecimiento y amortización
Quiz
•
University
10 questions
Skil Keusahawanan - Penubuhan Syarikat (Pemilikan Tunggal)
Quiz
•
University
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
