Search Header Logo

Advanced Python MCQs

Authored by Vimala dt

Computers

University

Used 1+ times

Advanced Python MCQs
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

2var

_value

class

my-variable

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of `3 // 2` in Python?

1.5

2

1

0

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Strings in Python are:

Mutable

Immutable

Both mutable and immutable

None of the above

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function is used to get the length of a list?

count()

size()

length()

len()

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is an unordered collection in Python?

List

Tuple

Dictionary

String

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the result of `"hello".upper()`?

hello

HELLO

Hello

Error

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which operator is used for exponentiation 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?