Search Header Logo

5_sem

Authored by AKSV AKSV

Information Technology (IT)

University

Used 3+ times

5_sem
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of print(2 ** 3 ** 2)?

512
64
16
None of the above

Answer explanation

Exponentiation is right-associative, so 2 ** (3**2) = 512

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is immutable?

List
Set
Dictionary
Tuple

Answer explanation

Tuple is immutable

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which module in Python supports regular expressions?

re
regex
pyregex
string

Answer explanation

Python uses 're' module

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the default recursion limit in Python?

500
1000
2000
No limit

Answer explanation

Default recursion depth is 1000

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which keyword is used for function annotations?

def
->
as
:

Answer explanation

Arrow (->) is used for return type annotation

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

a=[1,2,3]
b=a

b.append(4)
print(a,b)

[1,2,3][1,2,3,4]

[1,2,3,4],[1,2,3,4]

[1,2,3,4][1,2,3]

[1,2,3,4][1,2,3,4]

Answer explanation

Always returns string

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is Python’s built-in data type for arbitrary precision integers?

int
long
bigint
double

Answer explanation

int handles arbitrary precision

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?