1. | The ‘C’ language is |
Answer: (a).Context free language
|
2. | Match the following with respect to C++ data types : a. User defined type 1. Qualifier b. Built in type 2. Union c. Derived type 3. Void d. Long double 4. Pointer Code : a b c d |
Answer: (a).2 3 4 1
|
3. | Enumeration is a process of |
Answer: (c).Assigning a legal values possible for a variable
|
4. | Which of the following mode declaration is used in C++ to open a file for input ? |
Answer: (d).ios : : in
|
5. | In a Linear Programming Problem, suppose there are 3 basic variables and 2 non-basic variables, then the possible number of basic solutions are |
Answer: (c).10
|
6. | When a programming Language has the capacity to produce new datatype, it is called as, |
Answer: (b).Extensible Language
|
7. | The Default Parameter Passing Mechanism is called as |
Answer: (a).Call by Value
|
8. | Functions defined with class name are called as |
Answer: (c).Constructor
|
9. | Consider the program below in a hypothetical programming language which allows global variables and a choice of static or dynamic scoping int i; program Main( ) { i = 10; call f ( ); } procedure f( ) { int i = 20; call g ( ); } procedure g( ) { print i; } Let x be the value printed under static scoping and y be the value printed under dynamic scoping. Then x and y are |
Answer: (d).x = 10, y = 10
|
10. | What does the following declaration mean ? int (*ptr) [10]; |
Answer: (b).ptr is a pointer to an array of 10 integers
|