freetests4u.com

Online knowledge sharing platform

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

1.
C++ is a _______________ Language

Type Less
Statically Typed
Dynamically Typed
B and C both
Statically Typed
2.
What are the parts of the literal constants ?

integer numerals
floating-point numerals
Strings and Boolean values
All of the mentioned
All of the mentioned
3.
Which of the following correctly declares an array ?

int array[10];
int array;
array{10};
array array[10];
int array[10];
4.
Which of the following keyword is used to declare the header file ?

include
exclude
string
namespace
include
5.
What is the output of this program ?
#include <`iostream`>    (Please neglect `` this signs)
using namespace std;
int main()
{
int i, j;
j = 10;
i = (j++, j + 100, 999 + j);
cout << i;
return 0;
}

10
11
1010
1111
1010
6.
How many adaptors support the checked iterators ?

1
2
3
4
2
7.
What can go wrong in resource management on C++ ?

Leakage
Exhaustion
Dangling
All of the mentioned
All of the mentioned
8.
What does a default header file contain ?

prototype
implementation
declarations
None of the mentioned
declarations
9.
Pick the odd one out.

integer, character, boolean, floating
enumeration, classes
integer, enum, void
arrays, pointer, classes
integer, enum, void
10.
What is the output of this program ?

#include <`iostream`>    (Please neglect `` this signs)
using namespace std;
namespace Box1
{
int a = 4;
}
namespace Box2
{
int a = 13;
}
int main ()
{
int a = 16;
Box1::a;
Box2::a;
cout << a;
return 0;
}

4
8
16
compile time error
16
11.
How many types of loops are there ?

1
2
3
4
4
12.
What is the size of wchar_t in C++ ?

2
4
8
Based on the number of bits in the system
Based on the number of bits in the system
13.
What is the size of wchar_t in C++ ?

2
4
8
Based on the number of bits in the system
Based on the number of bits in the system
14.
In which of the following we cannot overload the function ?

return function
caller
called function
none of the mentioned
return function
15.
Which datatype is used to represent the absence of parameters ?

int
short
void
float
void


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)