WorksheetsPython Quiz
Total questions: 10
Worksheet time: 10mins
What does ~~~~~~10 evaluates to?
+10
6
-10
4
_______ is simplest but incomplete version of function
Stub
Function
Lambda
The function made using Top-Down Approach
What is the Output?
{0: 1, 7:0, 1:1, 8:0}
{1:1, 7:2, 0:1,8:1}
{0:0, 7:0, 1:1, 8:1}
Key Error
What is the output?
Dictionary comprehension doesn't exist
{0:0, 1:1, 2:4, 3:9, 4:16, 5:25, 6:36}
{0:0, 1:1, 4:4, 9:9, 16:16, 25:25}
{0:0, 1:1, 2:4, 3:9, 4:16, 5:25}
What is the output?
print( 'bcd'.partition('bcd') )
('bcd')
('')
('bcd', ' ', ' ' )
(' ', 'bcd', ' ')
What Is The Output?
49
2
51
No Output
What Is The Output?
4
Error
1
2
What Is The Output?
21
12
56
12.5
What will be the content of stack2 from TOP to BOTTOM after the execution of the below function?Consider Stack With Following Elements14,35, 22, 10, 5, 20
10,20,10,70
70,10,20,10
50,20,10,70
10,70,10,70
What would be the values of the output queue from front to rear when the below input_queue is passed as input to given function? input_queue(front to rear) : 3,7,6,2,5,6,3,2
3,6,13,3
10,7,3
10,7,3,2
8,7,5
