SECTION C | MID TERM EXAMINATION 2022 | COMPUTER SCIENCE

Опубликовано: 04 Август 2026
на канале: RAW Programming
119
13

THIS VIDEO LECTURE COVER YOUR MID TERM QUESTION PAPER FROM 26 TO 30 QUESTIONS.

SECTION B(FROM Q26 TO Q30 - 02 MARKS EACH)

26. FILL IN THE BLANKS.
A). A set of instructions/operations which is a part of a program and can be executed independently to do a specific task is called__________________ .
b) The variable declared outside all the functions is called a ______________ variable
c)A function is said to be ____________________if it calls itself.

27. State whether the following statement are True/False.
a) The variable declared inside a function is called a global variable.
b) Once a function is defined, it may be called only once from many different place in
a program.
c) Built-in-Functions are created by users and are not a part of the python library.

28. What is a function? How is useful? Write an example.

29. Write the output of the following commands :
a) float(8.0-6/3)
b) float(‘8.0+’)
c) max(-8,-10,2,-9,3)

30. Identify the local and global variable in the following code. Find its output?
x=100
def myfunc(a):
k=a
print(k,a)
p=(0,1,2,3,4)
myfunc(p)
print(x)