C / C++ Interview Questions
1: C++ on Unix
What is a Make file?(Fujitsu) Make file is a utility in Unix
to help compile large programs. It helps by only compiling the portion
of the program that has been changed.What is deadlock? (Novell) Dead
2: Advanced C++ and STL Questions
Q: How do you link a C++ program to C functions?A: By using the extern "C" linkage specification around the C function declarations.
Q: Explain the scope resolution operator.A: It permi
3: C++ Coding Interview Questions
1. Design and implement a String class that satisfies the following:
Supports embedded nulls Provide the following methods (at least)
Constructor Destructor Copy constructor Assignment operator Addi
4: Basic C++ Interview Questions
1.Question: Suppose that data is an array of 1000 integers. Write
a single function call that will sort the 100 elements data [222]
through data [321]. Answer: quicksort ((data + 222), 100);
2.Questi
5: Algorithm Specific C++ Interview Questions
Q1 What are the advantages and disadvantages of B-star trees over Binary trees? (Asked by Motorola people)
A1 B-star trees have better data structure and are faster in search
than Binary trees, but it
6: C++ Networking Question
Q: What is the difference between Stack and Queue?
A: Stack is a Last In First Out (LIFO) data structure.
Queue is a First In First Out (FIFO) data structure
Q: Write a fucntion that will reverse a
7: C++ OOP Interview Questions
1. How do you write a function that can reverse a linked-list? (Cisco System)
void reverselist(void){ if(head==0) return; if(head->next==0) return; if(head->next==tail) { head->next
8: C++ Job Interview Questions
(From Microsoft) Assume I have a linked list contains all of the
alphabets from ‘A’ to ‘Z’. I want to find the letter ‘Q’ in the list,
how does you perform the search to find the ‘Q’?Answer:
In a link
9: C++ Object Oriented Interviews Questions
What is pure virtual function? A class is made abstract
by declaring one or more of its virtual functions to be pure. A pure
virtual function is one with an initializer of = 0 in its declaration
Q. W
10: C++ Interviews Question
In C++, what is the difference between method overloading and method overriding?Overloading
a method (or function) in C++ is the ability for functions of the same
name to be defined as long as these m
Page 1 of 3
[1] [2] [3]