C++ General Interview Questions
Questions Answers Views Company eMail

Evaulate: 22%5 a) 2 b) 4 c) 0

891

What data structure is fastest, on average, for retrieving data: a) Binary Tree b) Hash Table c) Stack

859

What function initalizes variables in a class: a) Destructor b) Constitutor c) Constructor

934

Is C++ case sensitive a) False b) Depends on implementation c) True

835

What is the equivalent of Pascal's Real a) unsigned int b) float c) char

816

What doescout<<(0==0) print out a) 0 b) 1 c) Compiler error: Lvalue required

807

If all is successful, what should main return a) 0 b) 1 c) void

817

C is to C++ as 1 is to a) What the heck b) 2 c) 10

866

Which sort is best for the set: 1 2 3 5 4 a) Quick Sort b) Bubble Sort c) Merge Sort

881

What does the following code do: int c=0; cout< a) Undefined *Updated* b) 01 c) 00

856

What is the maximum value of a unsigned char a) 255 b) 256 c) 128

881

In int main(int argc, char *argv[]) what is argv[0] a) The first argument passed into the program b) The program name c) You can't define main like that

876

In which header file does one find isalpha() a) conio.h b) stdio.h c) ctype.h

1001

Which is not a valid keyword a) public b) protected c) guarded

1028

What is the correct syntax for inheritance a) class aclass : public superclass b) class aclass inherit superclass c) class aclass <-superclass

955


Post New C++ General Questions

Un-Answered Questions { C++ General }

Is there any function that can skip certain number of characters present in the input stream?

823


Evaluate !(1&&1||1&&0) a) Error b) False c) True

977


Explain dangling pointer.

904


Do the names of parameters have to agree in the prototype, definition, and call to the function?

838


Define stacks. Provide an example where they are useful.

813


Explain the concept of dynamic allocation of memory?

883


What is a block in c++?

821


Write down the equivalent pointer expression for referring the same element a[i][j][k][l]?

1007


Program to check whether a word is a sub-string or not of a string typed

1842


Which is better turbo c++ or dev c++?

801


Write about the retrieval of n number of objects during the process of delete[]p?

820


Why c++ is called oop?

891


What is a constant reference?

857


Explain how functions are classified in C++ ?

1026


Is it possible to provide special behavior for one instance of a template but not for other instances?

863