C++ General Interview Questions
Questions Answers Views Company eMail

Evaluate the following expression as C++ would do :8 * 9 + 2 * 5 a) 82 b) 79 c) 370 d) list

805

Which is not an ANSII C++ function a) sin() b) tmpnam() c) kbhit()

1265

What does getch() do according to the ANSI C++ standard a) Reads in a character b) Checks the keyboard buffer c) Nothing in particular (Its not defined there)

791

Will a C compiler always compile C++ code a) Yes b) No c) Only optimized compilers

820

What ANSI C++ function clears the screen a) clrscr() b) clear() c) Its not defined by the ANSI C++ standard

791

What number of digits that can be accuratly stored in a float (based on the IEEE Standard 754)? a) 6 b) 38 c) An unlimited number

1006

Which of the following is evaluated first: a) && b) || c) !

2063

What does 7/9*9 equal ? a) 1 b) 0.08642 c) 0

749

Which of the following is not a valid declaration for main() a) int main() b) int main(int argc, char *argv[]) c) They both work

834

Evaluate as true or false: !(1 &&0 || !1) a) True b) False c) Invalid statement

846

Which command properly allocates memory a) char *a=new char[20]; b) char a=new char[20]; c) char a=new char(20.0);

825

What operator is used to access a struct through a pointer a) >> b) -> c) *

847

True or false, if you keep incrementing a variable, it will become negative a) True b) False c) It depends

2096

What character terminates all character array strings a) b) . c) END

966

If you push the numbers (in order) 1, 3, and 5 onto a stack, which pops out first a) 1 b) 5 c) 3

1084


Post New C++ General Questions

Un-Answered Questions { C++ General }

If all is successful, what should main return a) 0 b) 1 c) void

780


How can you quickly find the number of elements stored in a static array?

845


Can I make ios apps with c++?

765


what kind of projects are suitable for c and c++

817


Can char be a number c++?

790


How can I disable the "echo" feature?

838


Describe the advantage of an external iterator.

796


What is std :: flush?

806


What is the use of endl in c++?

781


Write a program using merge () function to combine the elements of array x[ ] and y[ ] into array z[ ].

810


What flag means?

703


What apps are written in c++?

808


What is increment operator in c++?

753


What is the difference between the compiler and the preprocessor?

852


Why is c++ not purely object oriented?

764