Search Header Logo

Python Quiz 1

Authored by Jaspreet Kaur

Education

Professional Development

Used 26+ times

Python Quiz 1
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

24 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Python language was developed in which year

1985

1991

1920

2001

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

The following code is used to create a variable and store a value. Why will it not work?

My number=36

The equals symbol should be at the beginning of the line

A variable name cannot have any spaces

The variable can’t share a number

There variable names cannot be called my number

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following is a prominent python “statistics and econometrics library”?

Bokeh

Seaborn

Statsmodels

None of the above

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Identify the correct statement:

The standard marker for missing data in Pandas is NaN

Series acts in a way like that of an array

Both of the above

None of the above

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

A series is a one-dimensional array which is labelled and can hold any data type.

True

False

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following can be used to make a Dataframe?

Series

Dataframe

Structured ndarray

All of the above

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Suppose you are defining a tuple as:

tup = (1,2,3,4,5)

We want to update the value at the second index from 2 to 10. How would we do it?

tup(2) = 10

tup[2] = 10

tup{2} = 10

None of these

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?