5_sem

5_sem

University

30 Qs

quiz-placeholder

Similar activities

Web Design Basics Quiz

Web Design Basics Quiz

6th Grade - University

30 Qs

XI 090425 Analisis Data

XI 090425 Analisis Data

10th Grade - University

35 Qs

FOS  QUIZ 7

FOS QUIZ 7

University

25 Qs

Week 7-8

Week 7-8

University

30 Qs

PPL (QUIZ 4) Programming Control Structures

PPL (QUIZ 4) Programming Control Structures

University

30 Qs

Funcion print() y tipos de datos

Funcion print() y tipos de datos

University

30 Qs

Form 4 - CSEC Information Technology Quiz

Form 4 - CSEC Information Technology Quiz

10th Grade - University

30 Qs

Computer Science

Computer Science

University

30 Qs

5_sem

5_sem

Assessment

Quiz

Information Technology (IT)

University

Hard

Created by

AKSV AKSV

Used 3+ times

FREE Resource

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
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?