Search Header Logo

Python Phase 1

Authored by Data Science undefined

Engineering

University

Used 1+ times

Python Phase 1
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Which of the following variable names is invalid in Python?

data_value

3data

_data

DataValue

2.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Which of the following is NOT a keyword in Python?

  • pass

break

def

  • print

3.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

  1. What is the data type of the following variable?


<class 'int'>, <class 'int'>

  • <class 'str'>, <class 'int'>

  • <class 'str'>, <class 'str'>

  • <class 'int'>, <class 'str'>

4.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

What will be the output of the following code snippet?

3, 3

3, 3.33

  1. 3, 3.0

Error

5.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

What is the result of the following expression?

7

8

5

6

6.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

  1. What will be the result of the following operation?

2

3

4

1

7.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

What will happen when the following code is executed?
print("Hello)

Hello will be printed.

  • An error will occur.

 Nothing will be printed.

  • It will print None.

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?