{'dep2' : {'orange': 4}
Dari potongan dictionary di atas, manakah yang tergolong value?
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.
15 questions
Marginal Frequency Two Way Table
Quiz
•
9th Grade - University
15 questions
Frequency Tables and Relative Frequency Tables
Quiz
•
8th Grade - University
10 questions
Transportation and Assignment Problems
Quiz
•
University
12 questions
matrix
Quiz
•
10th Grade - University
10 questions
Matrices
Quiz
•
10th Grade - University
10 questions
Matrix Vocab
Quiz
•
11th Grade - University
14 questions
Operations with Matrices and Determinants
Quiz
•
11th Grade - University
10 questions
Quiz 2 - GIS Basic Bootcamp
Quiz
•
University - Professi...
10 questions
Chains by Laurie Halse Anderson Chapters 1-3 Quiz
Quiz
•
6th Grade
20 questions
math review
Quiz
•
4th Grade
15 questions
Character Analysis
Quiz
•
4th Grade
12 questions
Multiplying Fractions
Quiz
•
6th Grade
30 questions
Biology Regents Review #1
Quiz
•
9th Grade
20 questions
Reading Comprehension
Quiz
•
5th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
50 questions
Biology Regents Review: Structure & Function
Quiz
•
9th - 12th Grade
14 questions
Attributes of Linear Functions
Quiz
•
9th - 12th Grade
10 questions
Identifying equations
Quiz
•
KG - University
8 questions
Writing Equations from Verbal Descriptions
Quiz
•
9th - 12th Grade
20 questions
Geometry Final Review
Quiz
•
9th - 12th Grade
12 questions
Graphs of Exponential Functions Review
Quiz
•
9th - 10th Grade
18 questions
Unit 6 Part 1 Review (Exponents)
Quiz
•
9th - 12th Grade
20 questions
Unit 6 Part 2 Review (Radicals)
Quiz
•
9th - 12th Grade
34 questions
Week 1 Silver HW
Quiz
•
9th - 12th Grade