NEW
Font size
WorksheetsEdublocks Python - Advanced level
Total questions: 10
Worksheet time: 5mins
The output shown here, is an outcome of the following loop used in the program?
While Loop
Forever Loop
Wait Until
For loop
What makes the function more defined?
Function inside function
Function inside loop
Function with arguments
None of the above
Which one of the following used to store data in a "LAST IN FIRST OUT" manner
Tuples
Global Variables
Local Variables
Lists
Lists are Heterogeneous type of storage?
The statement is correct
The statement is incorrect
The statement make no sense
None of the above
Guess the output for the code shown
Circle with one color
Hexagon with one color
Square with two color
Circle with two color
What kind of data, a grocery list can have ?
collection of integer number
collection of string
collection of same data type
collection of different data type
x=3, then float(x) will give?
3.1
3
0.3
3.0
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]=?
Physics, 2000, 1997 ,[2,3,4,5]
Physics,0. [2,3,4,5] ,1997
2000, 1997, physics ,0
None
How to copy one list to another in python?
List1 [] = List2 []
List1 [] = List 2[:]
Both
None
What is the output of the following program : print((1, 2) + (3, 4))
(1, 2), (3, 4)
(4, 6)
(1, 2, 3, 4)
Invalid Syntax
