C++ Interview Questions
Questions Answers Views Company eMail

What is function overriding?

1 2285

Where You Can Use Interface in your Project

KPIT,

1415

i=20;k=0; for(j=1;k-i;k+=j<10?4:3) { cout< 1409


draw a flowchart that accepts two numbers and checks if the first is divisible by the second.

Appin, NIIT,

2848

Write a c++ code that will calculate the roots of a quadratic equation a2+ bx+c=0 Hint: d = sqrt (b2-4ac), and the roots are: x1 = (€“b + d)/2a and x2 = (€“b €“ d)/2a (use sqrt function from cmath.h )?

Maxobiz,

1402

Problem 5: Hero's Formula is A method for calculating the area of a triangle when you know the lengths of all three sides. Let a, b, c be the lengths of the sides of a triangle. The area is given by:A= pp-ap-b(p-c) | wherep= a+b+c2 | | Write a C-language code to calculate area of triangle using above method. Take the three lengths of the triangle from the user and display the area that your program calculates.

Maxobiz,

1433

Problem 6: Area of a trapezoid can be calculated by the following formula: A=(b1 b2)×h2 where b1 and b2 are the parallel sides or the bases and h is length of height Write a C code of this program

Maxobiz,

1572

What are different types of JVM's? for example we use dalvik jvm for android then what about the remaining operating systems?

IBM,

1644

a program using one dimensional array that searches a number if it is found on the list of given input numbers given by the user and locate its exact location in the list.

1366

what type of question are asked in thoughtworks pair programming round ?

Thought Works,

1749

Give an example where we have to specifically use C programming language and C++ programming language cannot be used?

CAT,

1133

what are the events occur in intr activated on interrupt vector table

HGS,

1172

What is multidimensional array?

1 1430

What is the name of your birth place?

1021

how to write a java program for an output ****0 ***01 **012 *0123 01234

1 3197


Un-Answered Questions { C++ }

How will you call C functions from C ++ and vice-versa?

646


What is flush c++?

529


How do you clear a set in c++?

594


List down the guideline that should be followed while using friend function.

639


What is algorithm in c++ programming?

581






What are c++ variables?

527


Why is c++ difficult?

596


What's the value of the expression 5["abxdef"]?

1022


What is encapsulation in ict?

593


Explain encapsulation in C++.

550


What does ios :: app do in c++?

546


How const int *ourpointer differs from int const *ourpointer?

598


Can you explain polymorphism?

573


What is flag in computer?

591


What is the use of setfill in c++?

575