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)
1048What ANSI C++ function clears the screen a) clrscr() b) clear() c) Its not defined by the ANSI C++ standard
1028What 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
1272Which of the following is not a valid declaration for main() a) int main() b) int main(int argc, char *argv[]) c) They both work
1075Which command properly allocates memory a) char *a=new char[20]; b) char a=new char[20]; c) char a=new char(20.0);
1053True or false, if you keep incrementing a variable, it will become negative a) True b) False c) It depends
2378If you push the numbers (in order) 1, 3, and 5 onto a stack, which pops out first a) 1 b) 5 c) 3
1376Post New C++ General Questions
What is the arrow operator in c++?
Explain differences between new() and delete()?
What happens when the extern "c" char func (char*,waste) executes?
Explain what are single and multiple inheritances in c++?
Describe the advantages of operator overloading?
Which is the best c++ software?
How a new element can be added or pushed in a stack?
Explain virtual class?
Write a C++ Program to check whether a number is prime number or not?
Is vector a class in c++?
Is c++ a difficult language?
Should you pass exceptions by value or by reference?
Reads in the size of a square from the screen; 2. Prints a hollow square of that size out of “-“, “|” and blanks on screen; 3. Prints the same hollow square onto a text file. Your program should work for squares of all side sizes between 1 and 20. --- │ │ │ │ │ │ ---
What's c++ used for?
What is the difference between containment and delegation?