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)
1055What ANSI C++ function clears the screen a) clrscr() b) clear() c) Its not defined by the ANSI C++ standard
1034What 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
1275Which of the following is not a valid declaration for main() a) int main() b) int main(int argc, char *argv[]) c) They both work
1082Which command properly allocates memory a) char *a=new char[20]; b) char a=new char[20]; c) char a=new char(20.0);
1055True or false, if you keep incrementing a variable, it will become negative a) True b) False c) It depends
2387If you push the numbers (in order) 1, 3, and 5 onto a stack, which pops out first a) 1 b) 5 c) 3
1378Post New C++ General Questions
What is the difference between global variables and local variable
What is the difference between containment and delegation?
How do you instruct your compiler to print the contents of the intermediate file showing the effects of the preprocessor?
What is the type of 'this' pointer? When does it get created?
What is the difference between structure and class?
Write my own zero-argument manipulator that should work same as hex?
What is the role of copy constructor in copying of thrown objects?
How do I use arrays in c++?
Array base access faster or pointer base access is faster?
If dog is a friend of boy, is boy a friend of dog?
Write a program for Divide a number with 2 and Print the output ( NOTE: Check for divide by zero error).
Can we use struct in c++?
What is vector pair in c++?
Differentiate between an array and a list?
What is a constant reference?