Search Header Logo

Python Practice 2

Authored by Assoc.Prof,IT Chennai

Other

Professional Development

Used 1+ times

Python Practice 2
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

11 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is not a keyword in Python language?

  1. val

  1. raise

  1. try

  1. with

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is output of print(math.pow(3, 2))?

9.0

9

6

6.0

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which one of the following has the same precedence level?

  1. Division, Power, Multiplication, Addition and Subtraction

  1. Division and Multiplication

  1. Subtraction and Division

power and Division

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which one of the following has the highest precedence in the expression?

  1. Division

  1. Subtraction

  1. Power

parentheses

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which data type in Python is used to store a sequence of characters?

Integer

Float

Boolean

String

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code snippet?

x = 3.14

print(type(x))

int

integer

float

Float

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the data type of the variable “x” in the following code snippet?

x = True

Integer

string

float

boolean

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?