MVS GOVT.
ARTS & SCIENCE COLLEGE (A), MAHABUBNAGAR
SUBJECT : COMPUTER SCIENCE (Problem Solving And Python Programming)
Internal Examination - I
Course : B.Sc(MSDs) II Sem Date :
Name : Roll No :
1. Single line comment starts with ___________ character. [ ]
a. # b. @ c. / d. //
2. What is the use of % operator? [ ]
a. To find the division b. To find the remainder c. To find the power d. Nothing
3. This keyword is used to delete reference of the object. [ ]
a. try b. elif c. del d. except
4. Which of the following is not a relational operator in Python? [ ]
a. >= b. <= c. = d. !=
5. To break the infinite loop, which keyword we used? [ ]
a. continue b. break c. exit d. None of the above
6. What keyword would you use to add an alternative condition to an if statement? [ ]
a. else if b. elseif c. elif d. None of the above
7. Which of the following operators are used to assign the value of the right expression to
the left operand. [ ]
a. assignment b. relational c. arithmetic d. logical
8. For loop in Python is [ ]
a. Entry control loop b. Exit control loop c. Simple loop d None
9. Which of the following literal cannot be modified after creation [ ]
a. list b. Dictionary c. Tuple d. set
10. The variables which are declared inside the function are called [ ]
a. Global variables b. Local variables c. static variable d. automatic variable
MVS GOVT. ARTS & SCIENCE COLLEGE (A), MAHABUBNAGAR
SUBJECT : COMPUTER SCIENCE (Problem Solving And Python Programming)
Internal Examination - II
Course : B.Sc(MSDs) II Sem Date :
Name : Roll No :
1. Which keyword is used to define the function? [ ]
a. Fun b. Define c. def d. Function
2. Which of the following items are present in the function header? [ ]
a. function name b. function name and parameter list c. parameter list d. return value
3. What is a recursive function? [ ]
a. A function that calls other function. b. A function which calls itself.
c. Both A and B d. None of the above
4. What is called when a function is defined inside a class? [ ]
a class b. function c. method d. module
5. In Python, how are arguments passed? [ ]
a. pass by value b. pass by reference c. It gives options to user to choose d. Both a and b
6. If return statement is not used inside the function, the function will return: [ ]
a. None b. 0 c. Null d. Arbitary value
7. What will be the output of below Python code? [ ]
str1="Information"
print(str1[2:8])
a. format b. formation c. orma d. ormat
8. A named sequence of statements is known as which of the following? [ ]
a. definition b. method c. function d.module
9. Define the variable-length argument using the __________ [ ]
a. *args b. **kwargs c. Required arguments d. default arguments
10. What will following Python code return? [ ]
str1="Stack of books"
print(len(str1))
a. 13 b. 14 c. 15 d. 16