my_dict = {"apple": 3, "banana": 5, "orange": 2}
count = 0
for fruit, quantity in my_dict.items():
count += quantity
print(count)
Berapakah nilai count ?

Basic Programming 2

Quiz
•
Business
•
1st - 10th Grade
•
Hard
Ulfah Khairiyah Luthfiyani
Used 1+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
3
5
10
Error
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
num = 10
while num > 0:
num -= 3
Berapakah kali iterasi yang dilakukan untuk mencapai syarat num diatas?
2
3
4
5
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
num = 7
if num % 2 == 0:
print("Even")
else:
print("Odd")
Apa hasil code diatas ?
Odd
Even
7
Error
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
num_list = [2, 3, 4, 5, 6]
total = 0
for num in num_list:
if num % 2 == 0:
total += num
print(total)
Nilai dari total adalah ......
4
6
10
12
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
my_dict = {"apple": 3, "banana": 5, "orange": 2}
fruit = "grape"
if fruit not in my_dict:
print("No")
else:
print("Yes")
Jawaban dari code diatas adalah ......
No
Yes
True
False
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
num_list = [1, 2, 3, 4, 5]
total = 0
for num in num_list:
if num == 3:
break
total += num
print(total)
Berapa nilai dari total setelah eksekusi kode diatas?
3
5
6
7
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Apa itu dictionary dalam Python dan bagaimana cara membuatnya?
Sebuah struktur data untuk menyimpan elemen-elemen dalam urutan tertentu.
Sebuah struktur data yang hanya dapat menyimpan tipe data numerik.
Sebuah fungsi bawaan dalam Python untuk mengurutkan data.
Sebuah struktur data yang berisi pasangan kunci-nilai.
Create a free account and access millions of resources
Similar Resources on Quizizz
14 questions
Administrasi Perkantoran I

Quiz
•
1st - 3rd Grade
11 questions
KOMUNIKASI BISNIS (QUIZ 3.1)

Quiz
•
10th Grade
15 questions
LIGA KANWIL 3 16 AGUSTUS 2022 BABAK 1

Quiz
•
1st - 5th Grade
12 questions
Print Advertisements Marketing Quiz

Quiz
•
9th - 12th Grade
10 questions
buku besar

Quiz
•
3rd Grade
10 questions
Creating and Managing a Presentation

Quiz
•
9th - 12th Grade
10 questions
Quis 1 Shopee

Quiz
•
1st - 3rd Grade
15 questions
Python Workshop Quiz

Quiz
•
1st Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Business
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade