WK 4 (1) - 02032024 - 120151
WK 4 (1) - 02032024 - 120151
WK 4 (1) - 02032024 - 120151
Nagercoil
Worksheet-4
Subject - Computer Science(Python functions)
GRADE:XII Date:04/03/2024
36.
a)
Hello World!
Hello World!
b)
‘Hello World!’
‘Hello World!’
c)
Hello
Hello
d) None of the mentioned
38.What is the output of the below program ?
x = 50
def func(x):
#print(‘x is’, x)
x=2
#print(‘Changed local x to’, x)
func(x)
print(‘x is now’, x)
a) x is now 50
b) x is now 2
c) x is now 100
d) None of the mentioned
a)
a is 7 and b is 3 and c is 10
a is 25 and b is 5 and c is 24
a is 5 and b is 100 and c is 50
b)
a is 3 and b is 7 and c is 10
a is 5 and b is 25 and c is 24
a is 50 and b is 100 and c is 5
c)
a is 3 and b is 7 and c is 10
a is 25 and b is 5 and c is 24
a is 100 and b is 5 and c is 50
d) None of the mentioned
40.What is the output of the below program?
a) 212
32
b) 9
27
c) 567
98
d) None of the mentioned
43.What is the output of the below program?
a) 6
15
b) 6
100
c) 123
12345
d) None of the mentioned
44.What is the output of the following piece of code?
57.Write a function LShift(Arr,n) in Python, which accepts a list Arr of numbers and n is a
numeric value by which all elements of the list are shifted to left. Sample Input Data of the
list Arr= [ 10,20,30,40,12,11], n=2 Output Arr = [30,40,12,11,10,20]