C++ General Interview Questions
Questions Answers Views Company eMail

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

670

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

588

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

679

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

616

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

592

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

575

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

558

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

641

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

662

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

640

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

636

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

617

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

683

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

745

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

691


Post New C++ General Questions

Un-Answered Questions { C++ General }

What is a node class in c++?

647


What is atoi?

546


When you overload member functions, in what ways must they differ?

590


What do you mean by function overriding & function overloading in c++?

604


Is overriding possible in c++?

578






What is isdigit c++?

579


What is the difference between the compiler and the preprocessor?

619


Is it possible for the objects to read and write themselves?

651


Is swift a good first language?

592


What is a NULL Macro? What is the difference between a NULL Pointer and a NULL Macro?

622


What is the function of I/O library in C++ ?

668


Where can I run c++ program?

605


What are the methods of exporting a function from a dll?

650


What is an iterator?

690


How can you specify a class in C++?

802