Xii - Cs Special Test 15.5.25
Xii - Cs Special Test 15.5.25
PART – I
Choose the best answer. 15 X 01 = 15
1. Which of the following is a unit of code that is often defined within a greater code structure?
A) Subroutines B) Function C) Files D) Modules
2. Which of the following is a distinct syntactic block?
A) Subroutines B) Function C) Definition D) Modules
3. Which of the following are mandatory to write the type annotations in the function definition?
A) { } B) ( ) C) [ ] D) < >
4. Which of the following functions that build the abstract data type?
A) Constructors B) Destructors C) Recursive D) Nested
5. Which of the following functions that retrieve information from the data type?
A) Constructors B) Selectors C) Recursive D) Nested
6. A sequence of immutable objects is called.
A) Built in B) List C) Tuple D) Derived data
7. The data type whose representation is known are called?
A) Built in datatype B) Derived datatype
C) Concrete datatype D) Abstract datatype
8. Which of the following is a compound structure?
A) Pair B) Triplet C) Single D) Quadrat
9. The process of binding a variable name with an object is called.
A) Scope B) Mapping C) Late binding D) Early binding
10. The process of subdividing a computer program into separate sub-programs is called.
A) Procedural Programming B) Modular programming
C) Event Driven Programming D) Object oriented Programming
11. The members that are accessible from within the class and are also available to its subclasses is
called
A) Public members B) Protected members
C) Secured members D) Private members
12. The word comes from the name of a Persian mathematician Abu Ja’far Mohammed ibn-i Musa al
Khowarizmi is called?
A) Flowchart B) Flow C) Algorithm D) Syntax
13. Two main measures for the efficiency of an algorithm are
A) Processor and memory B) Complexity and capacity
C) Time and space D) Data and space
14. The algorithm that yields expected output for a valid input in called as.
A) Algorithmic solution B) Algorithmic outcomes
C) Algorithmic problem D) Algorithmic coding
15. 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
PART – II
Answer ALL the questions. 06 X 02 = 12
16. What is a subroutine?
17. Differentiate interface and implementation.
18. What is a Pair? Give an example.
19. What do you mean by Namespaces?
20. How Python represents the private and protected Access specifiers?
21. What is searching? Write its types.
PART – III
Answer ALL the questions. 06 X 03 = 18
22. Differentiate pure and impure function.
23. Which strategy is used for program designing? Define that Strategy.
24. Classify the following in to constructors and selectors?
(a) N1:=number () (b) accetnum(n1) (c) displaynum(n1)
(d) eval(a/b) (e) x,y:= makeslope (m), makeslope(n) (f) display()
25. Identify the scope of the variables in the following pseudo code and write its output.
color:= 'Red'
mycolor():
b:='Blue'
myfavcolor():
g:='Green'
print color, b, g
myfavcolor()
print color, b
mycolor()
print color
26. Write a note on Asymptotic notation.
27. Write any five benefits in using modular programming.
PART – IV
Answer ALL the questions. 05 X 05 = 25
28. What are called Parameters and write a note on.
(i) Parameter without Type (ii) Parameter with Type.
29. How will you access the multi-item? Explain with example.
30. Explain the types of scopes for variable or LEGB rule with example.
31. Explain the characteristics of an algorithm.
32. What is Binary search? Discuss with example.