Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...

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,

1606

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


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,

1212

What is function overriding?

1 1602

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,

944

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,

872

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,

1112

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

HGS,

758

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

524

daily Routine of father

442

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

HAL, Honeywell, Zomato,

168

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

TCS,

160

Do you know about latest advancements in C++ ?

Agilent, ZS Associates,

180

Do you know about C++ 11 standard?

Agilent, ZS Associates,

181

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

MCN Solutions,

190


Post New C++ General Questions






Un-Answered Questions { C++ General }

By using c++ with an example describe linked list?

138


What is iterator in c++?

128


What do you mean by ‘void’ return type?

142


What is searching? Explain linear and binary search.

162


What is the difference between structures and unions?

145






What are the four main data types?

121


What is general format for a prototype?

142


What are features of c++?

130


What is flush programming?

123


Write a program which is required to process the time of a clock in hours and minutes, entered from the keyboard. With this program, there are two requirements for any data entered by a user: 1. The data must be of the correct type (in this case, two ints). 2. The data must be in the correct range: this means that, for the minutes, negative numbers and any number above 59 must be rejected; for the hours, negative numbers and any number above 23 must be rejected. Output error message for invalid data input. Output the time one and a half hour after the time input. i.e. Hour: 22 Min: 32 One and a half hour after 22:32 is 00:02

1067


What is low level language in simple words?

127


what do you mean by volatile variable?

136


What is the difference between method overloading and method overriding in c++?

150


Write a single instruction that will store an EVEN random integer between 54 and 212 inclusive in the variable myran. (NOTE only generate EVEN random numbers)

1077


Explain pass by value and pass by reference.

147