
mini quiz

Quiz
•
Mathematics
•
10th Grade
•
Easy
Angel Jeanne
Used 2+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
{'dep2' : {'orange': 4}
Dari potongan dictionary di atas, manakah yang tergolong value?
4
'dep2'
'orange'
{'orange': 4}
2.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
sales = [["apple", 2, 5], ["banana", 3, 6], ["orange", 1, 3]]
item_names = [sale[0] for sale in sales]
Apa yang akan dihasilkan oleh kode di atas?
["apple", 2, 5]
["apple", "banana", "orange"]
[['apple', 2, 5], ['banana', 3, 6], ['orange', 1, 3]]
[2, 3, 1]
3.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
with open(instructions, 'r') as file:
actions = file.readlines()
Apa yang dilakukan kode di atas?
Menulis data ke dalam file
Membaca data dari file dan menyimpannya dalam list
Menutup file setelah membaca data
Menambahkan data baru ke dalam file
4.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Tuple dilambangkan dengan apa?
{}
()
[]
([])
5.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
fruits = ["apple", "banana", "cherry"]
Apa hasil dari fruits.index("cherry")?
0
1
2
3
6.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
COMPASS = ["N", "NE", "E", "SE", "S", "SW", "W", "NW"]
current_direction = "N"
turn_steps = -3
new_direction = COMPASS[(COMPASS.index(current_direction) + turn_steps) % 8]
Apa nilai dari new_direction?
SE
W
SW
NW
7.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
Apa perbedaan utama antara mode 'r+' dan 'w+' saat membuka file di Python?
Mode r+ membaca dan tidak menimpa data yang sudah ada dalam file ketika menulis dan file harus ada, sedangkan mode w+ membaca dan tidak mengharuskan adanya file dan menimpa data yang sudah ada dalam file ketika menulis
Mode r+ dan mode w+ tidak ada bedanya
Mode r+ membaca file lalu menulis, mode w+ menulis lalu membaca file
Mode 'r+' hanya bisa digunakan untuk menulis ke file yang sudah ada, sementara 'w+' dapat digunakan untuk membuat file baru jika file tidak ada.
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Matrices

Quiz
•
10th Grade - University
14 questions
Operations with Matrices and Determinants

Quiz
•
11th Grade - University
10 questions
Introduction to Machine Learning

Quiz
•
KG - Professional Dev...
15 questions
Marginal Frequency Two Way Table

Quiz
•
9th Grade - University
10 questions
Quiz 2 - GIS Basic Bootcamp

Quiz
•
University - Professi...
8 questions
Week 4 Review Session 0B2

Quiz
•
University
10 questions
Matrices Dimensions Elements

Quiz
•
11th Grade - University
10 questions
Matrix Vocab

Quiz
•
11th Grade - University
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade