Search Header Logo

Python Test10

Authored by PRAVEEN SHARMA

Engineering

Professional Development

Used 2+ times

Python Test10
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

27 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is not a Python keyword?

pass

eval

assert

lambda

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of print(type(10)) in Python?

<class 'int'>

<class 'float'>

<class 'number'>

<class 'decimal'>

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the following code print: print(5 // 2)?

2

2.5

3

Error

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a correct statement about Python indentation?

Indentation is optional.

Indentation is used to define blocks of code.

Indentation can be mixed (tabs and spaces).

Python ignores indentation.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is not a valid Python variable name?

my_var

_myvar

2myvar

myvar2

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following operators in Python is used for exponentiation?

^

**

*

%

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which symbol is used to start a comment in Python?

//

#

/*

;

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?