Professional Documents
Culture Documents
Page 1 2 >>>
Question No. 1 -->
void main()
{
int a=10,b=20;
char x=1,y=0;
if(a,b,x,y)
{
printf("EXAM");
}
}
What is the output?
1) XAM is printed
2) exam is printed
3) Compiler Error
4) Nothing is printed
1) 4
2) 8
3) 3
4) 0
1) Z
2) 90
3) Error
4) Garbage Value
1) 1 2 3 4 5 6 7 8 9
2) 1 2 3 10
3) 4 5 6 7 8 9 10
4) 4 5 6 7 8 9
1) 10..10
2) 10..50
3) Error
4) 0
1) k k
2) Don`t walk in front of me
3) I may not follow
4) K
2) 000
3) 333
4) 433
1) float ptr;
2) float *ptr;
3) *float ptr;
4) None of the above
1) Only a
2) Only b
3) Both a and b
4) None of these options
1) Stack
2) Queue
3) Linked list
4) All of the above
1) O(
1)
2) O(log2n)
3) O(n)
4) O(n log2n)
1) pointer-variable = malloc(sizeof(*struct-name));
2) pointer-variable = malloc(sizeof(struct struct-name));
3) pointer-variable = alloc(sizeof(struct struct-name));
4) pointer-variable = alloc(sizeof(*struct-name));
1) 7
2) 6
3) 5
4) error
See Answer(s) of Question no. 19
1) O(1)
2) O(n)
3) O(log n)
4) None of these options
1) delete a;
2) delete a[0];
3) delete []a;
4) delete [0]a;
See Answer(s) of Question no. 23
1) 14, 24
2) 11, 21
3) 10, 20
4) Error
1) A
2) B
3) C
4) D
1) Encapsulation; inheritance
2) Inheritance; polymorphism
3) Inheritance; encapsulation
4) Polymorphism; abstraction
1) Base case
2) Recursive call
3) Subtraction
4) Local variable declarations
1) is-a relationship.
2) Part-of relationship.
3) Use-a relationship.
4) All of these options.
1) It is same as encapsulation.
2) Aggregation of information.
3) Generalization and specialization.
4) All of these options.
1) extendibility
2) expansion capacity
3) virtual extension
4) scalability
1) Procedural language
2) Object oriented language
3)Object based language
4) Structural language
1) Inheritance
2) Polymorphysm
3) Encapsulation
4) None of these options
1) Encapsulation
2) Information Hiding
3) Data abstraction
4) All of these options
ANSWERS -->
1) 4
2) 8
3) 3
4) 0
1) Z <ANS>
3) 4 5 6 7 8 9 10 <ANS>
1) 10..10 <ANS>
4) K <ANS>
1) O(
1) <ANS>
1) pointer-variable = malloc(sizeof(*struct-name));
2) pointer-variable = malloc(sizeof(struct struct-name));
3) pointer-variable = alloc(sizeof(struct struct-name));
4) pointer-variable = alloc(sizeof(*struct-name));
3) 5 <ANS>
2) 0 <ANS>
1) delete a; <ANS>
4) Error <ANS>
1) Base case
2) Recursive call
3) Subtraction
4) Local variable declarations
1) is-a relationship.
2) Part-of relationship.
3) Use-a relationship.
4) All of these options.
1) It is same as encapsulation.
2) Aggregation of information.
3) Generalization and specialization.
4) All of these options.
1) extendibility
2) expansion capacity
3) virtual extension
4) scalability
1) Procedural language
2) Object oriented language
3) Object based language
4) Structural language
1) Inheritance
2) Polymorphysm
3) Encapsulation
4) None of these options
1) Encapsulation
2) Information Hiding
3) Data abstraction
4) All of these options