" /> -->

#### First Mid Term Model Questions

12th Standard EM

Reg.No. :
•
•
•
•
•
•

Computer Science

Time : 01:00:00 Hrs
Total Marks : 50
10 x 1 = 10
1. The small sections of code that are used to perform a particular task is called

(a)

Subroutines

(b)

Files

(c)

Pseudo code

(d)

Modules

2. The functions which cause side effects to the arguments passed are called

(a)

impure function

(b)

Partial Functions

(c)

Dynamic Functions

(d)

Pure functions

3. In which type of function the return type is solely depends on its argument passed?

(a)

pure

(b)

impure

(c)

parameterized

(d)

monochromatize

4. A sequence of immutable objects is called

(a)

Built in

(b)

List

(c)

Tuple

(d)

Derived data

5. The____________ can be implemented using singly linked list or doubly linked list

(a)

(b)

(c)

(d)

6. From the following sorting algorithms which has the lowest worst case complexity?

(a)

Bubble sort

(b)

Quick sort

(c)

Merge sort

(d)

Selection sort

7. Which characteristics of algorithm defined the operation involving division by zero?

(a)

Finiteness

(b)

Definiteness

(c)

Input

(d)

Correctness

8. Which of the following optimization technique used in dynamic algorithms

(a)

Memorization

(b)

Composition

(c)

Specification

(d)

Decomposition

9. Which mode displays the python code result immediately?

(a)

Compiler

(b)

Interactive

(c)

Script

(d)

Program

10. Complex number is made up of two ______ values.

(a)

Integer

(b)

String

(c)

floating point

(d)

octal

11. 6 x 2 = 12
12. What is a subroutine?

13. Give an example of function definition parameter without type.

14. What is a scope?

15. Write the output of the following program
a:=10
Disp():
a:=7
print a
Disp 1():
print a

16. Write the Syntax of using print () in python.

17. Write the output for the following code.
x,y = 50,150
Z = x if x > y else y
print ("Z is", Z)

18. 6 x 3 = 18
19. Which strategy is used for program designing? Define that Strategy.

20. List the characteristics of an algorithm

21. Discuss about Algorithmic complexity and its types

22. Write a pseudo code for linear search

23. Write a pseudo code for bubble sort

24. Write a short note on comment statement.

25. 2 x 5 = 10
26. What are called Parameters and write a note on
(i) Parameter without Type
(ii) Parameter with Type

27. Write the output for the following python code..
x=10
x+=20
print ("The x + = 20 is =",x)
x-=5
print ("The x -= 5 is = ",x)
x*=5
print ("The x *= 5 is = ",x)
x/=2
print ("The x/ = 2 is = ",x)
x%=3
print ("The x %= 3 is = ",x)
x**=2
print ("The x **= 2 is = ",X)
x//=3
print ("The x//= 3 is = ",x)