Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
union???
a)it is known as variant.
b)Only one data type is used at a time.
c)it holds value of a variable sized different data types.
d)the tag field determines which datatype is being currently used.
Answer : c
Answer : op 3
Answer : op 2
Amcat-Q4: Neelam wants to share her code with a colleague, who may
modify it. Thus she wants to include the date of the program creation, the
author and other information with the program. What component should she
use?
Op 1 : Header files
Op 2 : Iteration
Op 3 : Comments
Op 4 : Preprocessor directive
Answer : op 3
Answer : op 1
Amcat-Q8: parthiv has included sevral classes and their object in his
project.Now he wants to use something that will hold all these objectsof
different classes which of the following option provides best alternate?
1. store them in data base
2. Final Class
3. Genric Class
4. Anonymous Class
Amcat-Q13: A derived class may inherit from the base class which of the
following?
a.data memeber
b.member functions
c.costructor and destructors
d.both a and b
b) static dispatching
c) static binding
d) anonymous classes
Amcat-Q15: Which of the following options is true with regard to private and
protected members of a class?
(a)Both have the same properties with regard to an object of the class.
(b)Private members cannot be directly accessed, while protected members
can be directly accessed.
(c)Protected members cannot be accessed by member functions, while
private members can be accessed by member functions.
(d) Private and protected members are same in all regards
Amcat-Q18: Som writes a piece of code where a set of three lines occur
around 10 times in a diffrenet parts of your program. What programming
concept can he use to shorten program code length?
a) use for loops
b) use functions
c) use arrays
d)use classes
Answer : b
Answer : B
Amcat-Q20: What is the term given to the memory allocation that takes place
during run time rendering the resizing of an Array?
(a)Static Allocation
(b)Dynamic Allocation
(c)Automatic Allocation
(d)Executive Allocation
dynamic