Search Header Logo

Python Module-I Quiz

Authored by Sandip Sadhukhan

Information Technology (IT)

University

Used 2+ times

Python Module-I Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the correct way to declare a variable in Python?

int a = 10

declare a = 10

a = 10

var a = 10

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following is a valid Python variable name?

1name

user-name

user_name

user name

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which data type is immutable in Python?

list

tuple

dict

set

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the output of the expression: -16 // 3 in Python?

-5

-6

5

6

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which data type in Python represents unordered collection of unique elements?

list

tuple

dict

set

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which operator is used to check if a value is present in a sequence?

is

in

==

and

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

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

^

**

^^

exp()

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?