PYTHON REVISION TOUR

PYTHON REVISION TOUR

12th Grade

22 Qs

quiz-placeholder

Similar activities

PYTHON PROGRAMMING

PYTHON PROGRAMMING

9th - 12th Grade

20 Qs

Python String

Python String

12th Grade

20 Qs

Python Basics Review (TSK)

Python Basics Review (TSK)

9th - 12th Grade

20 Qs

Programowanie - napisy, szyfrowanie, proste algorytmy

Programowanie - napisy, szyfrowanie, proste algorytmy

12th Grade

21 Qs

คำสั่งพื้นฐานในภาษา Python (เก็บคะแนนครั้งที่ 2)

คำสั่งพื้นฐานในภาษา Python (เก็บคะแนนครั้งที่ 2)

12th Grade

20 Qs

Unit 3 Python TEST

Unit 3 Python TEST

11th - 12th Grade

20 Qs

Introduction to Python

Introduction to Python

KG - University

25 Qs

Dictionary in Python

Dictionary in Python

10th - 12th Grade

20 Qs

PYTHON REVISION TOUR

PYTHON REVISION TOUR

Assessment

Quiz

Computers

12th Grade

Medium

Created by

Geethanjali BK

Used 2+ times

FREE Resource

22 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What will be the output of the following statement:

print(3-2**2**3+99/11)

a. 244

b. 244.0

-244.0

d. Error

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following will delete key-value pair for key = “Red” from a dictionary D1?

a. delete D1("Red")

b. del D1["Red"]

c. del.D1["Red"]

d. D1.del["Red"]

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following statement(s) would give an error during execution of the following code?

tup = (20,30,40,50,80,79)

print(tup) #Statement 1

print(tup[3]+50) #Statement 2

print(max(tup)) #Statement 3

tup[4]=80 #Statement 4

a. Statement 1

b. Statement 2

c. Statement 3

d. Statement 4

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Assertion(A): List is an immutable data type

Reasoning(R): When an attempt is made to update the value of an immutable variable, the old variable is destroyed and a new variable is created by the same name in memory.

(a) Both A and R are true and R is the correct explanation for A

(b)Both A and R are true and R is not the correct explanation for A

(c) A is True but R is False

(d)A is false but R is True

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is an invalid datatype in Python?

(a) Set

(b) None

(c)Integer

(d)Real

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Given the following dictionaries

dict_exam={"Exam":"AISSCE", "Year":2023}

dict_result={"Total":500, "Pass_Marks":165}

Which statement will merge the contents of both dictionaries?

a. dict_exam.update (dict_result)

b. dict_exam + dict_result

c. dict_exam.add (dict_result)

d. dict_exam.merge (dict_result)

7.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Consider the given expression: not True and False or True

Which of the following will be correct output if the given expression is evaluated?

(a) True

(b) False

(c) NONE

(d) NULL

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?