set - 13

set - 13

University

10 Qs

quiz-placeholder

Similar activities

Linux: Users and Groups

Linux: Users and Groups

9th Grade - University

14 Qs

CSC1243 - Introduction to Computer Programs (Programming Langua)

CSC1243 - Introduction to Computer Programs (Programming Langua)

University

10 Qs

Nhanh tay- Nhanh trí - Bài 1-Tin9

Nhanh tay- Nhanh trí - Bài 1-Tin9

7th Grade - University

10 Qs

Tree

Tree

University

10 Qs

UNIT-1 PYTHON BASICS

UNIT-1 PYTHON BASICS

University

10 Qs

GPS

GPS

9th Grade - University

15 Qs

BÀI 14- THUẬT TOÁN TÌM KIẾM TUẦN TỰ

BÀI 14- THUẬT TOÁN TÌM KIẾM TUẦN TỰ

6th Grade - University

14 Qs

Access

Access

10th Grade - University

11 Qs

set - 13

set - 13

Assessment

Quiz

Computers

University

Practice Problem

Hard

Created by

Viswas MCV

FREE Resource

AI

Enhance your content in a minute

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

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the maximum length of a Python identifier?

32

16

128

No fixed Length

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How is a code block indicated in Python?

Brackets

Indentation

Key

None

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following code snippet?

def solve(a, b):

   return b if a == 0 else solve(b % a, a)

print(solve(20, 50))

 

10

20

50

1

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is the proper syntax to check if a particular element is present in a list?

if ele in list

if not ele not in list

Both A and B

None of the above

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What are the values of the following Python expressions?

 2**(3**2)

 (2**3)**2

 2**3**2

512, 64, 512

512, 512, 512

64, 512, 64

64, 64, 64

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following Python code?

print("abc. DEF".capitalize())

Abc. def

abc. def

Abc. Def

ABC. DEF

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the value of ‘result’ in following Python program?

list1 = [1,2,3,4]

list2 = [2,4,5,6]

list3 = [2,6,7,8]

result = list()

result.extend(i for i in list1 if i not in (list2+list3) and i not in result)

result.extend(i for i in list2 if i not in (list1+list3) and i not in result)

result.extend(i for i in list3 if i not in (list1+list2) and i not in result)

[1, 3, 5, 7, 8]

[1, 7, 8]

[1, 2, 4, 7, 8]

 error

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?