Call
whatsapp
9447387064 | 9847003556
0471-2335855 | 8089080088 | 0471-2334855
9447387064 | 9847003556
0471-2335855 | 8089080088 | 0471-2334855
Cisco Training in Trivandrum, Trinity Technologies

No.1 Training Institute in Kerala

C++ - QUESTIONS : PART 3

In OOP, a problem is considered as a collection of number of entities called ………………

class

 objects

 functions

 message
SHOW ANSWER

In C++ ………………… operator is used for Dynamic memory allocation.

Scope resolution

 Conditional

 New

Membership access
SHOW ANSWER

Operators such as …………………. cannot be overloaded.

+

 ++

 : :

 = =
SHOW ANSWER

The …………………. objects have values that can be tested for various error conditions.

osstream

 ofstream

 stream

 ifstream
SHOW ANSWER

Which function return the current position of the get or put pointer in bytes.

tellg( )

 tellp( )

 tell( )

 Both A and B
SHOW ANSWER

The first index number in an array starts with ………………………. and the index number of an array of size n will be …………

0, n-1

 1, n-1

 0, n

1, n
SHOW ANSWER

To overload an operator ………………… keyword must be used along with the operator to be overloaded.

Over

 Overload

 Void

 Operator
SHOW ANSWER

What is the output of the program
#include<iostream.h>
void main()
{
int n=1;
cout<<endl<<“The numbers are;”<<endl;
do
{
cout <<n<<“t”;
n++;
} while (n<=100);
cout <<endl;

Print natural numbers 0 to 99

 Print natural numbers 1 to 99

 Print natural numbers 0 to 100

 Print natural numbers 1 to 100
SHOW ANSWER

Everything defined at the program scope level (ie. outside functions and classes) is said to be ……………

local scope

 regional scope

 global scope

static scope
SHOW ANSWER

 Because the lifetime of a local variable is limited and determined automatically, these variables are also called ……………………….

automator

 automatic

 dynamic

 static
SHOW ANSWER

……………. allows that a section of a program is compiled only if the defined constant that is specified as the parameter has been defined, independently of its value.
 

#ifdef

 #if

#define

 #ifd
SHOW ANSWER

Which of the following is/are  the header files listed in C++ standard library.
i) <ctype.h>   ii) <float.h>   iii) <date.h>   iv) <limits.h>

i, ii and iii only

 i, ii and iv only

 ii, iii and iv only

 All i, ii, iii and iv
SHOW ANSWER

The C++ header file …………….. contains macros and information for adding diagnostics that aid program debugging.

<cctype>

 <cassert>

 <cfloat>

 <cstdio>
SHOW ANSWER

 …………… is the header file that contains functions prototypes and types for manipulating the time and date.

<ctype.h>

 <float.h>

 <time.h>

 <date.h>
SHOW ANSWER

The C++ header file ……………….. contains function prototypes for the standard input and standard output functions.

<iomanip>

 <fstream>

 <iostream>

 <cstdio>
SHOW ANSWER

 ……………. is the header file listed in C++ standard library that contains function prototypes for the stream manipulators that enable formatting of streams of data.

<iomanip>

 <fstream>

 <iostream>

 <cstdio>
SHOW ANSWER

There is a unique function in C++ program by where all C++ programs start their execution with …….

start()

 begin()

 main()

output()
SHOW ANSWER

Which of the following is not a jump statement in C++?

break

 Goto

 Exit

 Switch
SHOW ANSWER
BACK | NEXT
TRINITY SOFTWARE SOLUTIONS,IInd floor, Radheyam Towers, Gandhari Amman Kovil Road, Pulimood, Trivandrum - 1
0471-2334855 | 2335855 | 9447387064 | 9847003556 info@trinitytechnology.in