Module 2 Quiz Preparation

Quiz
•
Computers
•
Professional Development
•
Hard
Median Hardiv
Used 19+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
Misalkan kita membuat array/list dengan nama variabel x dan berisi sesuai dengan gambar. Agar dapat mengambil array berikut:
array([[11, 14, 16],
[21, 24, 26],
[31, 34, 36]])
maka code yang tepat adalah
x[-4:-1, np.array([1, 4, 6])]
x[1:4, np.array([1, 4, 6])]
x[-4:-1, np.array([-9, -6, -4])]
x[1:4, np.array([-9, -6, -4])]
Semua jawaban benar
2.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
Jika kita ingin generate array 2-D mengandung 3 baris dan 5 kolom random integer dari 0 sampai 100, maka code yang tepat digunakan adalah
random.rand(3,5)
random.randint(100, size=(3, 5))
Tidak ada yang benar
random.randint(100, size=(5, 3))
random.randn(3,5)
3.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
Jika kita memiliki df1 (atas) dan df2 (bawah) seperti pada gambar dan ingin menampilkan data seperti data di bawah ini:
A B C D F
A0 B0 C0 D0 NaN
A1 B1 C1 D1 NaN
A2 B2 C2 D2 NaN
A3 B3 C3 D3 NaN
NaN B0 NaN D0 F0
NaN B1 NaN D1 F1
NaN B3 NaN D3 F3
NaN B4 NaN D4 F4
maka code yang tepat digunakan adalah
join = pd.concat([df1, df2], axis=0, join='outer')
join = pd.concat([df1, df2], axis=1, join='inner')
join = pd.concat([df1, df2], axis=0, join='inner')
Tidak ada yang benar.
join = pd.concat([df1, df2], axis=1, join='outer')
4.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
Jika kita ingin mengetahui jumlah data `clarity` yang unik pada data `diamonds`, code yang tepat digunakan adalah
df['clarity'].nunique()
Semua pilihan benar.
len(pd.unique(df['clarity']))
len(df['clarity'].unique())
len(df['clarity'].value_counts())
5.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
Manakah cara yang tepat untuk mencari median harga berlian dengan jumlah carat lebih dari 0.1?
df[df['carat']>=0.1]['price'].median()
df[df['carat']==0.1]['price'].sum()/len(df[df['carat']==0.1])
df[df['carat']>0.1]['price'].median()
df.loc[df['carat']>0.1, 'price'].mean()
Semua jawaban benar
6.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
Interpretasi manakah yang tepat untuk menggambarkan output dari kode berikut berdasarkan gambar tersebut:
df.groupby('cut').mean().sort_values('depth', ascending=True)['depth'].iloc[:3]
3 `cut` dengan rata-rata `depth` terendah
3 `cut` dan `depth` dengan rata-rata `depth` tertinggi
3 `cut` dan `depth` dengan rata-rata `depth` terendah
3 `cut` dengan rata-rata `depth` tertinggi
Rata-rata `depth` berdasarkan `cut`nya
7.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
Berdasarkan gambar berikut, mana cara yang paling tepat untuk melakukan uji korelasi antara `depth` dan `table`?
df[['depth','table']].corr()
df.corr()[['depth','table']]
df['depth'].corr(df['table'])
df['depth'].corr(df['table'], method = 'pearson')
df['depth'].corr(df['table'], method = 'spearman')
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
Konten Kreator PBK

Quiz
•
Professional Development
17 questions
pengenalan dasar cara mengetik

Quiz
•
Professional Development
15 questions
Foundations II. Challenge I

Quiz
•
Professional Development
16 questions
Fundamentals II. Final de módulo

Quiz
•
Professional Development
25 questions
Quiz J&T Hari 4

Quiz
•
Professional Development
20 questions
Module 2 Review

Quiz
•
Professional Development
18 questions
Machine Learning (1)

Quiz
•
Professional Development
21 questions
LITERASI DIGITAL

Quiz
•
Professional Development
Popular Resources on Wayground
10 questions
SR&R 2025-2026 Practice Quiz

Quiz
•
6th - 8th Grade
30 questions
Review of Grade Level Rules WJH

Quiz
•
6th - 8th Grade
6 questions
PRIDE in the Hallways and Bathrooms

Lesson
•
12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
15 questions
Subtracting Integers

Quiz
•
7th Grade
Discover more resources for Computers
11 questions
All about me

Quiz
•
Professional Development
10 questions
How to Email your Teacher

Quiz
•
Professional Development
5 questions
Setting goals for the year

Quiz
•
Professional Development
14 questions
2019 Logos

Quiz
•
Professional Development
6 questions
GUM Chart Scavenger Hunt

Quiz
•
Professional Development
10 questions
How to Email your Teacher

Quiz
•
Professional Development
20 questions
Employability Skills

Quiz
•
Professional Development