Search Header Logo

Python, NumPy, and Pandas Quiz

Authored by Wasiha Tasneem

Computers

University

Used 3+ times

Python, NumPy, and Pandas Quiz
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

30 sec • 1 pt

Which of the following is a valid Python variable name?

1variable

variable-name

_variable1

variable name

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of `print(0b10)` in Python?

0b10

10

2

1

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which Python structure is immutable?

List

Set

Dictionary

Tuple

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which data type is used to store key-value pairs in Python?

List

Tuple

Dictionary

Set

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function is used to get the shape of a NumPy array?

shape()

array.shape

getshape()

size()

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method is used to create an array filled with zeros in NumPy?

np.zero()

np.zeros()

np.null()

np.empty()

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which pandas object is one-dimensional?

DataFrame

Panel

Series

Index

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

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

Already have an account?