freetests4u.com

Online knowledge sharing platform

CDAC-CCEE c++ Mock test -3 (15 questions, time 15 minutes)

1.
What is meant by garbage collection ?

Form of manual memory management
Form of automatic memory management
Used to replace the variables
None of the mentioned
Form of automatic memory management
2.
What is the output of this program ?

#include <`stdio.h`>    (Please neglect `` this signs)
using namespace std;
int main()
{
int x = 5, y = 5;
cout << ++x << --y << endl;
return 0;
}

45
54
60
64
64
3.
Which of the following is not one of the sizes of the floating point types ?

short float
float
long double
double
short float
4.
How many types are there in increment/decrement operator ?

1
2
3
4
2
5.
To which type does the numeric limits are suitable ?

Character types
Mixed type
Arithmetic types
None of the mentioned
Arithmetic types
6.
Where does the member should be defined if it is used in the program ?

Namespace scope
Character scope
Both a & b
None of the mentioned
Namespace scope
7.
What is the output of the following program ?

#include <`iostream`>    (Please neglect `` this signs)
using namespace std;
int main()
{
float i = 123.0;
cout << i << endl;
return 0;
}

1.23
12.3
123
123.0
123
8.
Pick the odd one out

array type
character type
boolean type
integer type
array type
9.
What is the use of dynamic_cast operator ?

it converts virtual base class to derived class
it converts virtual base object to derived objeccts
it will convert the operator based on precedence
None of the mentioned
it converts virtual base class to derived class
10.
How many sequence of statements are present in C++ ?

1
3
5
7
5
11.
The if else statement can be replaced by which operator ?

Bitwise operator
Conditional operator
Multiplicative operator
None of the mentioned
Conditional operator
12.
What is the output of this program ?

#include <`iostream`>    (Please neglect `` this signs)
using namespace std;
int main()
{
int a;
a = 5 + 3 * 5;
cout << a;
return 0;
}

10
20
30
40
20
13.
What will happen if a string is empty ?

It can not be created
Raises an error
It can be used
None of the mentioned
It can be used
14.
Where does the execution of the program starts ?

main function
void function
user-defined function
None of the mentioned
main function
15.
What are mandatory parts in function declaration ?

return type,function name
function name,declaration type
both a and b
none of the mentioned
return type,function name
16.
Which is more effective while calling the functions ?

call by value
call by pointer
call by reference
none of the mentioned
call by reference


CDAC CCEE Mock Tests

CDAC CCEE java mock test 1 (15 questions, 15 minutes)

CDAC CCEE java mock test 2 (15 questions, 15 minutes)

CDAC CCEE java mock test 3 (15 questions, 15 minutes)

CDAC CCEE java mock test 4 (15 questions, 15 minutes)

CDAC CCEE java mock test 5 (15 questions, 15 minutes)

CDAC CCEE c++ mock test 1 (15 questions, 15 minutes)

CDAC CCEE c++ mock test 2 (15 questions, 15 minutes)

CDAC CCEE c++ mock test 3 (15 questions, 15 minutes)

CDAC CCEE OS mock test 1 (15 questions, 15 minutes)

CDAC CCEE OS mock test 2 (15 questions, 15 minutes)

CDAC CCEE OS mock test 3 (15 questions, 15 minutes)

CDAC CCEE database systems mock test 1 (15 questions, 15 minutes)

CDAC CCEE database systems mock test 2 (15 questions, 15 minutes)