You are on page 1of 2

VELAMMAL MATRICULATION HIGHER SECONDARY SCHOOL

COMPUTER SCIENCE
UNIT TEST -I
Class: 12std MARK: 50
I.CHOOSE THE BEST ANSWER 10*1 =10
1. Which of the following is a distinct syntactic block?
a) Subroutines b) Function c)Definition d)Modules
2. All functions are ______ definitions.
a) Single b) dynamic c) static d) dual
3. A sequence of immutable objects is called
a)Built in b) List c)Tuple d) Derived data
4. A rational number typically written as ____________
a) <numerator>/<denominator> b) <numerator>/<divider>
c) <regulator>/<denominator> d) <numerator>/<decimal>
5. Containers for mapping names of variables to objects is called
a) Scope b) Mapping (c) Binding d) Namespaces
6. By default all the members in python class are
a)public b)private c)protected d)modifier
7. The complexity of linear search algorithm is
a) O(n) b) O(log n) c) O(n2) d) O(n log n)
8. In dynamic programming, the technique of storing the previously
calculated values is called ?
a)Saving value property b) Storing value property
c) Memoization d) Mapping
9. This symbol is used to print more than one item on a single line.
a) Semicolon(;) b) Dollor($) c) comma(,) d) Colon(:)
10. The Python prompt indicates that Interpreter is ready to accept instruction.
a) >>> b) <<< c) # d) <<

II. ANSWER ANY FIVE QUESTIONS 5 * 2 =10

11. What is mapping?


12. What is wishful thinking?
13. Write the inference you get from a:=(58).
14. Define Pseudo code.
15. What is a Pair? Give an example.
16. How to comment in Python?
17. Write short notes on Exponent data?

III. ANSWER ANY FIVE QUESTIONS 5 * 3=15


18. Explain Ternary operator with examples.
19. What are the different ways to access elements in a list?
20. What is the side effect of impure function? Give example.
21. Why access control is required?
22. Identify Which of the following are constructor,selector, List, Tuple and
class ?
(a) a([10,20,30)
(b) x[‘a’,’b’,’c’]
(c) person[firstname,lastname,email]
(d) w=makepoint(y)
(e) m=[20,30,[50,60]]
(f) add(a+b)
23. Write a note on Asymptotic notation.
24. What are string literals? Explain.
IV. ANSWER THE FOLLOWING 3 * 5=15

25. a. How will you facilitate data abstraction. Explain it with suitable example
(OR)
b. What are called Parameters and write a note on
(i) Parameter without Type (ii) Parameter with Type
26. a. Explain the types of scopes for variable or LEGB rule with example.
(OR)
b. Explain the characteristics of an algorithm.
27. a. Discuss in detail about Tokens in Python
(OR)
b. What is Binary search? Discuss with example.

-----ALL THE BEST----

You might also like