Search Header Logo

Batch E420 - Python module Quiz

Authored by Dhanashree Mhase

Education

Professional Development

Used 2+ times

Batch E420 - Python module Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct extension of a Python file?

.java
.cpp
.txt
.py

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is used to define a block of code in Python?

Braces
Indentation
Parentheses
Semicolons

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of print(2 ** 3)?

9
8
4
6

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is NOT a valid variable name in Python?

variable_1

_variable

variable1

1variable

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the type() function return when executed on 10.5

int

float

string

list

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of print(5 // 2)?

3
2
1
2.5

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the pass statement in Python?

The pass statement is used to define a function in Python.
The pass statement terminates a loop in Python.
The pass statement is used to import modules in Python.
The pass statement serves as a placeholder 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?