cs201 Solved Quiz No 1
cs201 Solved Quiz No 1
cs201 Solved Quiz No 1
com/midterm-solved-quiz/
ttp://vueducation.com/forum/index.php
CS201 online solved Quiz no2 2013
Question # 1:-
Care must be taken about the correct ______________ of operator
while overloading. (Choose the most appropriate).
1. Semantic
2. Complexity
3. Both Semantic and Complexity
4. None of the given options
Question # 2:-
In functions, that returns reference use ______________.
1. global or local variables
2. global or static variables
3. ordinary variables
Question # 3:-
In overloading the assignment (=) operator, which object(s) will call
the operator function?
1. Left object of the assignment operator
2. Right object of the assignment operator
3. Both objects will call the operator function
4. No object will call the operator function
Question # 4:-
Friend functions are _____________.
1. Unidirectional (not confirm)
2. bidirectional
3. like inline functions
4. private
Question # 5:-
We cannot increment ________________.
1. pointers
2. arrays
3. references
4. Vaiables
http://vusolvedpaper.wordpress.com/midterm-solved-quiz/
ttp://vueducation.com/forum/index.php
Question # 6:-
A pointer is _____________.
Question # 7:-
Overloaded assignment operator must be
Question # 8:-
The concept of friend function negates the concept of
_________________.
1. inheritance
2. polymorphism
3. persistence
4. encapsulation
Question # 9:-
If class A is a friend of class B, and class B is a friend of class C. If
class A wants class C to be a friend, __________________
Question # 10:-
The difference between pointers and references is that
_________________.
http://vusolvedpaper.wordpress.com/midterm-solved-quiz/
ttp://vueducation.com/forum/index.php
Question # 11:-
A reference cannot be _____________.
1. 1
2. zero
3. NULL
1. 4 integer
Question # 12:-
An address is a ____________________ , while a pointer is a
________________.
ttp://vueducation.com/forum/index.php
1. constant , variable
2. variable , constant
3. global , variable
4. non static variable , constant
Question # 13:-
The reference data types are used as __________________ variables
without any _______________ operator
1. ordinary , deference
2. global , dot
3. static , deference
4. local , &
ttp://vueducation.com/forum/index.php
Question # 14:-
The syntax of declaration of a function that returns the reference to
an integer is ___________.
http://vusolvedpaper.wordpress.com/midterm-solved-quiz/
1. reinitialize a pointer
2. reinitialize a reference
3. initialize a NULL pointer
cast a pointer
ttp://
.com/forum/index.php