C++ General Interview Questions
Questions Answers Views Company eMail

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

874

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

831

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

915

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

817

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

793

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

795

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

802

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

844

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

869

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

832

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

855

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

849

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

973

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

1007

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

933


Post New C++ General Questions

Un-Answered Questions { C++ General }

What is do..while loops structure?

833


Why is polymorphism useful?

806


When is dynamic checking necessary?

804


What is the purpose of the "delete" operator?

837


What is dev c++ used for?

793


What is the copy-and-swap idiom?

825


What is the difference between structures and unions?

814


What is the use of lambda in c++?

779


What are the benefits of operator overloading?

907


What is a pointer how and when is it used?

810


Do you know what are pure virtual functions?

891


Can create new c++ operators?

771


What is rvalue?

913


Why do we use structure in c++?

786


What is the difference between a baller and a reference in C++?

812