Week 1 QUIZ

Week 1 QUIZ

University

20 Qs

quiz-placeholder

Similar activities

Quiz de villanos en el cine

Quiz de villanos en el cine

KG - Professional Development

20 Qs

Magajastra

Magajastra

University

20 Qs

Mentoring Beasiswa

Mentoring Beasiswa

University

20 Qs

Tropical Disease (Giardiasis & Leismania)

Tropical Disease (Giardiasis & Leismania)

University

20 Qs

Pokok-Pokok Dasar Agama Buddha

Pokok-Pokok Dasar Agama Buddha

University

20 Qs

Chayamana Quiz Competition

Chayamana Quiz Competition

1st Grade - University

15 Qs

SAS 2021

SAS 2021

University

20 Qs

Egipcios

Egipcios

University

19 Qs

Week 1 QUIZ

Week 1 QUIZ

Assessment

Quiz

Other

University

Practice Problem

Medium

Created by

Vidhi Saxena

Used 3+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does df.groupby('Department').mean() do?

Groups rows by Department and shows row count

Filters only numeric columns

Groups data by Department and calculates mean of each group

None of the above

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

​ How do you filter rows where column Age > 30 in a DataFrame df?

df[df['Age'] > 30]

df['Age'] > 30

df.select('Age' > 30)

df.filter(Age > 30)

3.

FILL IN THE BLANK QUESTION

1 min • 1 pt

command returns the shape of an array arr

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is list comprehension equivalent of:

[i*i for i in range(5)]

[i*i if i in range(5)]

(i*i for i in range(5))

map(lambda i: i*i, range(5))

5.

FILL IN THE BLANK QUESTION

1 min • 1 pt

function returns evenly spaced numbers in given range inclusive of both.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code?

def extendList(val, lst=[]):

lst.append(val)

return lst

list1 = extendList(10)

list2 = extendList(123, [])

list3 = extendList('a')

print(list1)

print(list2)

print(list3)

[10], [123], ['a']

[10, 'a'], [123], [10, 'a']

[10, 'a'], [123], ['a']

[10], [123], [10, 'a']

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output?

a = [1, 2, 3]

b = a

a += [4, 5]

print(a)

print(b)

[1,2,3,4,5], [1,2,3]

[1,2,3,4,5], [1,2,3,4,5]

[1,2,3], [1,2,3]

Error

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?