Module 2 Quiz Preparation
Quiz
•
Computers
•
Professional Development
•
Practice Problem
•
Hard
Median Hardiv
Used 23+ times
FREE Resource
Enhance your content in a minute
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
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
20 questions
Excel untuk Pemula
Quiz
•
Professional Development
15 questions
KUIS ASJ KELAS XI
Quiz
•
11th Grade - Professi...
18 questions
SRIKANDI Information Security Quiz
Quiz
•
Professional Development
15 questions
Era Quiz 1
Quiz
•
Professional Development
20 questions
Soal Tentang Monitor
Quiz
•
Professional Development
18 questions
CYBER SECURITY
Quiz
•
Professional Development
18 questions
Klik Dengan Bijak(1) 2019
Quiz
•
1st Grade - Professio...
15 questions
IT Security Awareness 2023 Vol.2 - Room 1
Quiz
•
Professional Development
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade
