freetests4u.com

Online knowledge sharing platform

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

1.
Which datatype is used to represent the absence of parameters ?

int
short
void
float
void
2.
What is the output of this program ?

#include <`iostream`>    (Please neglect `` this signs)
#include <`limits`>    (Please neglect `` this signs)
using namespace std;
int main( )
{
cout << numeric_limits :: max() << endl;
}

53723
32423
32767
53462
32767
3.
Identify the user-defined types from the following ?

enumeration
classes
both a and b
int
both a and b
4.
The value 132.54 can represented using which data type ?

double
void
int
bool
double
5.
When language has the capability to produce new data type mean, it can be called as

overloaded
extensible
encapsulated
reprehensible
extensible
6.
What are the operators available in dynamic memory allocation ?

new
delete
compare
both a and b
both a and b
7.
What is the output of this program ?

#include <`stdio.h`>    (Please neglect `` this signs)
using namespace std;
int main()
{
int a = 21;
int c ;
c = a++;
cout << c;
return 0;
}


21
22
23
24
21
8.
Which of three sizes of floating point types should be used when extended precision is required ?

float
double
long double
extended float
long double
9.
Which is correct with respect to size of the datatypes ?

char > int < float
int < char > float
char < int < float
char < int < double
char < int < double
10.
In C++, what is the sign of character data type by default ?

Signed
Unsigned
Implementation dependent
None of these
Implementation dependent
11.
What is the use of Namespace ?

To encapsulate the data
To structure a program into logical units.
Both a and b
None of the mentioned
To structure a program into logical units.
12.
What is the output of this program ?

#include <`iostream`>    (Please neglect `` this signs)
using namespace std;
int main()
{
int a = 5, b = 6, c, d;
c = a, b;
d = (a, b);
cout << c << << d;
return 0;
}

5 4
5 6
6 5
6 7
5 6
13.
Pick out the correct statement

Preincrement is faster than postincrement.
postincrement is faster than preincrement.
Both a & b
None of the mentioned
Preincrement is faster than postincrement.
14.
What is the use of checked iterators ?

Overwrite the bounds of your container
It will check the list value
Not allow you to overwrite the bounds of your container
None of the mentioned
Not allow you to overwrite the bounds of your container
15.
What will happen if the iterator is unchecked ?

Arising of compiler warnings
Unchecked behavior on program
Nothing will execute
Both a & b
Both a & b
16.
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


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)