Week 1 QUIZ

Quiz
•
Other
•
University
•
Medium
Vidhi Saxena
Used 3+ times
FREE Resource
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
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
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
NEW SYMPO Final round

Quiz
•
University
17 questions
WEEK ONE REVIEW

Quiz
•
University
15 questions
Deutsch quiz

Quiz
•
University - Professi...
20 questions
Round 1

Quiz
•
University
15 questions
Instrumen

Quiz
•
University
20 questions
Soal Dasar Pemrograman Dan Algoritma

Quiz
•
10th Grade - University
15 questions
Basic Dental Knowledge

Quiz
•
University
21 questions
Are you really a Lamborghini fan

Quiz
•
1st Grade - Professio...
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Other
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
15 questions
Properties of Equality

Quiz
•
8th Grade - University
38 questions
WH - Unit 3 Exam Review*

Quiz
•
10th Grade - University
21 questions
Advise vs. Advice

Quiz
•
6th Grade - University
12 questions
Reading a ruler!

Quiz
•
9th Grade - University