5_sem

5_sem

University

30 Qs

quiz-placeholder

Similar activities

G9-Introduction to Python Programming

G9-Introduction to Python Programming

9th Grade - University

25 Qs

Pemahaman Struktur Data dan Algoritma

Pemahaman Struktur Data dan Algoritma

9th Grade - University

25 Qs

fundamentals of HTML

fundamentals of HTML

University

25 Qs

Fundamentals of programming Quiz

Fundamentals of programming Quiz

University

25 Qs

PPL (Quiz 5)  Procedures and Functions

PPL (Quiz 5) Procedures and Functions

University

25 Qs

SAS PJOK KELAS.7 Th.Ajar 2024/2025

SAS PJOK KELAS.7 Th.Ajar 2024/2025

7th Grade - University

25 Qs

COS 16 Quiz

COS 16 Quiz

University

25 Qs

Quiz for BBA

Quiz for BBA

University

25 Qs

5_sem

5_sem

Assessment

Quiz

Information Technology (IT)

University

Practice Problem

Hard

Created by

AKSV AKSV

Used 3+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Create a free account and access millions of resources

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?