Professional Documents
Culture Documents
Com Prog Final Lab Quiz 1
Com Prog Final Lab Quiz 1
Com prog
call by reference
Choose the correct answer for following piece of C++ pseudo code
Static function
Static function
Which of the following functions are provided by compiler by default if we don’t write in
a C++ class?
Copy constructor – wrong answer
Inline functions may not work ______ . i) If function contain static variables. ii) If function contain
global and register variables. iii) If function returning value consists looping construct(i.e. for,
while). iv) If inline functions are recursive. v) If function contains const value.
Only ii,iii & v – wrong answer
3.1
What is the scope of the variable declared in the user defined function
Only inside the {} block