Geometrics Previous Years Solved Sample Placement Papers
-
Which of the following statement is correct?
A: Overloaded functions can have at most one default argument.
B: An overloaded function cannot have default argument.
C: All arguments of an overloaded function can be default.
D: A function if overloaded more than once cannot have default argument.
Ans: C -
Which of the following statement is correct?
A: Constructors can have default parameters.
B: Constructors cannot have default parameters.
C: Constructors cannot have more than one default parameter.
D: Constructors can have at most five default parameters.
Ans: A -
Which of the following function declaration is/are incorrect?
A: int Sum(int a, int b = 2, int c = 3);
B: int Sum(int a = 5, int b);
C: int Sum(int a = 0, int b, int c = 3);
D: Both B and C are incorrect.
E: All are correct.
Ans: E -
You can use C++ as a procedural, as well as an object-oriented, language
A: TRUE
B: FALSE
Ans: A -
The address of a variable temp of type float is
A: *temp
B: &temp
C: float& temp
D: float temp&
Ans: B -
What is the output of the following code
char symbol[3]={�a",�b",�c"};
for (int index=0; index<3; index++)
cout << symbol [index];A: a b c
B: �abc�
C: abc
D: �abc"
Ans: C -
The process of building new classes from existing one is called ______.
A: Polymorphism
B: Structure
C: Inheritance
D: Cascading
Ans: C -
If a class C is derived from class B, which is derived from class A, all through public inheritance, then a class C member function can access
A: protected and public data only in C and B.
B: protected and public data only in C.
C: private data in A and B.
D: protected data in A and B.
Ans: D