C++ Interview Questions
Questions Answers Views Company eMail

Write a C program to calculate the salary of each employee in your company. You need to input the hours worked and the hourly rate. The company pays 1.5 times the hourly rate for all hours worked in excess of 48 hours. Use the formulas below to calculate the salary: if employee worked less than 48 hours salary = hours * rate; if employee worked more than 48 hours salary = 48.0 * rate + ( hours − 48.0 ) * rate * 1.5; You are required to use a loop to produce the sample output as given below.

1 12245

There are 2 classes defined as below public class A { class B b; } public class B { class A a; } compiler gives error. How to fix it?

Microsoft,

3 6125

where is memory for struct allocated? where is memory for class-object allocated? I replied for struct in stack and for class-object in heap. THen he asked if class has struct member variable what happens.class on heap and what about struct in that class? couldnt ans :( :-?

Infosys, Microsoft,

2 9729

How connect plc and pc through software

1924

what is runtime polymorphism? For the 5 marks.

3 4694

What are the access specifiers avaible in c++?

4 6005

1. Define a class.

6 5638

2. Give the different notations for the class.\

1594

3. Differentiate verification and validation.

1 3956

4. What do you mean by a prototype? Define analysis prototype

1 3969

Hi friends I have experience of 6 months in website design and maintanence. Now i am looking for other IT jobs.. to switch platform. please post any interview you know in chennai.

1793

ambiguity regulation of multiple inheritance with example.

1 3501

write a c++ code of diagonal matrix.

2 24091

What is multiple inheritance?

TCS,

9 8158

What is function overloading?,describe it with the example.

5 5338


Un-Answered Questions { C++ }

Explain the difference between abstract class and interface in c++?

531


Why do we use classes in programming?

578


What is advantage of inheritance?

692


Explain differences between alloc() and free()?

580


What is static variable and difference between(const char *p,char const *p,const char* const p).

583






Can comments be nested?

631


Write about c++ storage classes?

757


What is vector processing?

670


Write a Program for dynamically intialize a 2 dimentional array. Eg:5x20, accept strings and check for vowels and display the no.finally free the space allocated .

684


How the memory management in vectors are being done. What happens when the heap memory is full, and how do you handle it ?

1841


What is pointer in oop?

541


How delete [] is different from delete?

601


Explain the static storage classes in c++.

709


What are references in c++?

664


hi all..i want to know oops concepts clearly can any1 explain??

1683