C++ Interview Questions
Questions Answers Views Company eMail

Badboy is defined who has ALL the following properties: 1. Does not have a girlfriend and is not married. 2. He is not more than 23 years old. 3. The middle name should be "Singh" 4. The last name should have more than 4 characters. 5. The character 'a' should appear in the last name at least two times. 6. The name of one of his brothers should be "Ram" Write a method: boolean isBadBoy(boolean hasGirlFriend , boolean isMarried, int age , String middleName , String lastName , String[] brotherName); isHaveGirlFriend is true if the person has a girlfriend isMarried is true if the person is married age is the age of the person middleName is the middle name of the person lastName is the last name of the person brotherName is the array of the names of his brothers

1 3426

Round up a Decimal number in c++.. example Note = 3.5 is as 4 3.3 is as 3

Accenture, Cognizant, IBM,

3 5443

what is c++

1805

Array base access faster or pointer base access is faster?

1820

Which of the following operator cannot be overloaded?

TCL,

2 4133

Consider the following code fragment: int main(void) { int m = 4; mystery ( m ); mystery ( m ); printf("%d", m); return 0; } What is the output on the monitor if mystery is defined as follows ? void mystery (int m) { m = m+3; }

CDAC, Wipro,

2 4753

Write a program to calculate the BMI of a person using the formula BMI = weight/height2.

2 12596

give me some class & objects examples?

1 3016

5. Write c++ function that would intake a string and return the number of occurrences of a given character in that sring Ex:- if the word is “Colombo” and count the occurrences of the letter “o” the function would return 3

1 4595

what is the C++

Wipro,

1 3244

1234554321 1234 4321 123 321 12 21 1 1 12 21 123 321 1234 4321 1234554321

2 12456

What type of question are asked in GE code writing test based on c++ data structures and pointers?

3513

which is platform independent device used in computers

2 3264

give me the defination of inheritance?

Infosys,

5 7531

The company is a fake company asking for money of RS10000 while training and not offering a job after training. My humble request to you people not to attend Astersys interview

Astersys,

1 2512


Un-Answered Questions { C++ }

What is the purpose of enum?

585


What is stream and its types in c++?

564


What is the renewal class?

2171


What are the operators in c++?

600


What is the difference between public, private, and protected access?

621






Is c++ vector a linked list?

553


Define token in c++.

718


What is c++ and its features?

578


Should I learn c++ c?

622


If a base class declares a function to be virtual, and a derived class does not use the term virtual when overriding that class, is it still virtual when inherited by a third-generation class?

612


What is constructor and destructor in c++?

624


What header file is needed for exit(); a) stdlib.h b) conio.h c) dos.h

615


What causes polymorphism?

577


Explain the use of virtual destructor?

629


Who made c++?

616