Search Header Logo

Module 2 Review

Authored by Median Hardiv

Computers

Professional Development

Used 48+ times

Module 2 Review
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

Perintah agar dapat menampilkan data dari baris ke 3 sampai 10 pada kolom yang mempunyai nama "Restoran A" dan "Restoran B"

df.loc[3:11, ["Restoran A","Restoran B"]]

df[2:10][["Restoran A","Restoran B"]]

df.iloc[2:10, ["Restoran A","Restoran B"]]

df[["Restoran A","Restoran B"]]

Semua benar

2.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

Fungsi yang digunakan saat kita ingin membuat angka acak berdistribusi normal adalah

numpy.random.randint()

numpy.random.randn()

numpy.random.random()

numpy.random.random_sample()

3.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

Manakah dari syntax ini yang akan mereturn index bernama "foo" dari DataFrame "df"?

df['foo']

Tidak ada jawaban yang benar

df.loc['foo',:]

df.loc[:,'foo']

df['foo'][:]

4.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

Mana diantara pernyataan berikut yang menjadi hal paling penting di Data Science?

jawaban

data

pertanyaan

Tidak ada jawaban benar

5.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

import numpy as np

arr = np.arange(1,21)

arr = arr.reshape(-1)

print(arr)

Output dari syntax ini adalah ...


[1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20]


[[1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20]]

[[ 1] [ 2] [ 3] [ 4] [ 5] [ 6] [ 7] [ 8] [ 9] [10] [11] [12] [13] [14] [15] [16] [17] [18] [19] [20]]

[20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1]

Error

6.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

F_onewayResult(statistic=4.809836065573772, pvalue=0.0163405142361861)

Kemungkinan kesimpulan yang dapat diambil dari hasil diatas adalah

Seluruh kelompok sample memiliki perbedaan rata-rata yang signifikan

Seluruh kelompok sample memiliki rata-rata yang sama

Salah satu kelompok sample memiliki rata-rata yang berbeda dari kelompok sample yang lainnya

7.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

from scipy.stats import ttest_1samp

import numpy as np

ages = np.round(np.random.normal(30,4,40))

ttest_1samp(ages,26)

Apakah perintah untuk melakukan uji T-test 1 sample sudah tepat?

Tepat

Salah

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?