Mastering Python Basics and Libraries

Mastering Python Basics and Libraries

University

50 Qs

quiz-placeholder

Similar activities

UAS KONSEP DASAR KEPERAWATAN

UAS KONSEP DASAR KEPERAWATAN

University

50 Qs

Introduction to GIS

Introduction to GIS

University

50 Qs

BI Finals

BI Finals

University

45 Qs

OmniStudio Developer question

OmniStudio Developer question

University

52 Qs

Fire 6 Ch 31-33 Quiz 2

Fire 6 Ch 31-33 Quiz 2

University

52 Qs

Computer Cyber Security RF3

Computer Cyber Security RF3

University

50 Qs

Instrumentation and Measurement

Instrumentation and Measurement

University

50 Qs

Research 2

Research 2

University

50 Qs

Mastering Python Basics and Libraries

Mastering Python Basics and Libraries

Assessment

Quiz

Professional Development

University

Hard

Created by

Manjunatha M

Used 1+ times

FREE Resource

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.

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?