C++ General Interview Questions
Questions Answers Views Company eMail

Write a program in c++ to print the numbers from n to n2 except 5 and its multiples

Cankaya University,

2012

C++ program output? Explain output of this program. #include using std::cout; using std::cin; int main() {   cout< 1 2343


Write a C++ program which will compute the volume of a sphere or a cylinder after prompting the user to type the first character for the shape name.

An-Najah National University,

1665

What is function overriding?

1 2261

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,

1385

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,

1409

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,

1556

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

HGS,

1159

Am pass the 10000 records to target in target I will take commit interval 15000 when I was stop the work flow what will happened

1046

daily Routine of father

882

What is encapsulation in C++? Give an example.

HAL, Honeywell, Zomato,

564

What is meant by entry controlled loop? What all C++ loops are exit controlled?

TCS,

544

Do you know about latest advancements in C++ ?

Agilent, ZS Associates,

637

Do you know about C++ 11 standard?

Agilent, ZS Associates,

595

Can we make any program in c++ without using any header file and what is the shortest program in c++.

MCN Solutions,

587


Post New C++ General Questions

Un-Answered Questions { C++ General }

How long does it take to get good at leetcode?

632


When the constructor of a base class calls a virtual function, why doesn't the override function of the derived class gets called?

542


What is the use of structure in c++?

533


Why is c++ still best?

535


What is ctime c++?

552






Is c++ free?

559


What is the error in the code below and how should it be corrected?

281


How much do c++ programmers make?

539


When does the c++ compiler create temporary variables?

548


Can you write a function similar to printf()?

646


Which is the best c++ software?

580


What are static and dynamic type checking?

587


Describe about storage allocation and scope of global, extern, static, local and register variables?

690


Which bit wise operator is suitable for turning off a particular bit in a number?

618


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

594