Search Header Logo

Data Analysis using Python

Authored by Kannan Muthusamy

Computers

University

Used 6+ times

Data Analysis using Python
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

1 min • 1 pt

What is the result of 32 >> 2 ?

32

8

16

None

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What's wrong with the following program?

Second print should not be indented

First print should be indented

if age > 18 is invalid

age = 24 is invalid

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the value of X after solving the expression:

X = 10 / 2 * ( 3 >> 1 ) - 45 % 5 ?

5

10

5.0

7.5

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the throughput of the following line of code:

int ( '10.5' )

10

10.5

ValueError

10.0

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the output of the following program:

>>> list = [ 1, 2, 'Benjamin', 'studious' ]

>>> 'Benjamin is ' + list.pop( )

Benjamin is studious

Benjamin is

Benjamin is 1 2 Benjamin

Error

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Consider a dictionary named food. What food.items( ) return ?

View object containing items

Object containing items

A dictionary

None

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Spot the error in the following line:

dict = { 1: 'students', '2': 'faculties' }

Key 1 should be quoted with single quotes

Key 2 should not be quoted with single quotes

Values should not be quoted with single quotes

No Error

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?

Discover more resources for Computers