Search Header Logo

Mastering Python Basics and Libraries

Authored by Manjunatha M

Professional Development

University

Used 1+ times

Mastering Python Basics and Libraries
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

50 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code: print(type([]))?

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a mutable data structure in Python?

dictionary

set

tuple

list

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of len([1, 2, 3])?

3

3.0

4

2

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you create a NumPy array from a list?

You can create a NumPy array by calling 'np.array_list(your_list)'

Convert the list to a NumPy array using 'np.list_to_array(your_list)'

Use 'np.array(your_list)' to create a NumPy array from a list.

Use 'np.create_array(your_list)' to create a NumPy array from a list.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of np.array([1, 2, 3]) + 1?

[2, 3, 4]

[0, 1, 2]

[1, 2, 3, 4]

[1, 2, 3, 1]

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function is used to read a CSV file in Pandas?

import_csv

fetch_csv

load_csv

read_csv

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the 'iloc' function in Pandas do?

The 'iloc' function allows for column name selection in Pandas.

The 'iloc' function is a method for merging DataFrames in Pandas.

The 'iloc' function is used for string-based indexing in Pandas.

The 'iloc' function allows for integer-location based indexing in Pandas.

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?