Wednesday 18 June 2014

TECHNICAL INTERVIEW AND PRACTICE QUESTIONS ON C++ -- SET 1





TECHNICAL INTERVIEW AND PRACTICE QUESTIONS ON C++

SET - 1




 1. C++ Was Originally developed by

(a) clocksin and mellsih                                      (b)  Donal E.Knuth

(c) Sir Richard Hadlee                                       (d)  Bjarne Stroustrup



2. Cfront

(a) is the front end of a C compiler

(b) is the pre-processor of a C compiler

(c) is  a tool that translate  a C++ code to its equivalent C code

(d) all of these




3. The following program fragment

int i=10;
void main()
{
int i =20;
{
int i =30;
cout<<i<<::i;
}
}

(a) prints 3010                             (b) prints 3020
(c) compiler error                         (d) Run-time error 






4.Which of the following are procedural languages?

(a) Pascal                     (b) Smalltalk                (c) C++                    (d) c




5. A function abc is defined as

void  abc( int x=0, int y=0)
{
cout<<x<<y;
}

which of the following function calls is/are illegal? ( assume h,g are declared as integers.)

(a) abc();                             (b) abc(h);

(c)abc(h,h);                         (d) none of these








No comments:

Post a Comment