wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Edublocks Python - Advanced level

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

The output shown here, is an outcome of the following loop used in the program?

a)

While Loop

b)

Forever Loop

c)

Wait Until

d)

For loop

2.

What makes the function more defined?

a)

Function inside function

b)

Function inside loop

c)

Function with arguments

d)

None of the above

3.

Which one of the following used to store data in a "LAST IN FIRST OUT" manner

a)

Tuples

b)

Global Variables

c)

Local Variables

d)

Lists

4.

Lists are Heterogeneous type of storage?

a)

The statement is correct

b)

The statement is incorrect

c)

The statement make no sense

d)

None of the above

5.

Guess the output for the code shown

a)

Circle with one color

b)

Hexagon with one color

c)

Square with two color

d)

Circle with two color

6.

What kind of data, a grocery list can have ?

a)

collection of integer number

b)

collection of string

c)

collection of same data type

d)

collection of different data type

7.

x=3, then float(x) will give?

a)

3.1

b)

3

c)

0.3

d)

3.0

8.

list1 = ['physics', 'chemistry', 1997, 2000]

list2 = [1, 2, 3, 4, 5, 6, 7 ]


Guess the output?

print list1[0] = ?

print list1[3]=?

print list1[-2]=?

print list2[1:5]=?

a)

Physics, 2000, 1997 ,[2,3,4,5]

b)

Physics,0. [2,3,4,5] ,1997

c)

2000, 1997, physics ,0

d)

None

9.

How to copy one list to another in python?

a)

List1 [] = List2 []

b)

List1 [] = List 2[:]

c)

Both

d)

None

10.

What is the output of the following program : print((1, 2) + (3, 4))

a)

(1, 2), (3, 4)

b)

(4, 6)

c)

(1, 2, 3, 4)

d)

Invalid Syntax