Professional Documents
Culture Documents
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) <<
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.