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)
1056What 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
1276Which 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);
1060True or false, if you keep incrementing a variable, it will become negative a) True b) False c) It depends
2389If 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 are inline functions? What is the syntax for defining an inline function?
What is the default access level?
Explain terminate() function?
Is c++ platform dependent?
What is null and void pointer?
Does c++ vector allocate memory?
Are strings immutable in c++?
Is python written in c or c++?
write asingle linked list which read from two list & the do the following 1 sort the prime & nonprime num (prime should be less tn nonprime) 2 each node has a prime num followd by nonprime 3 add a new node into its sutable plce 4 erase the most three duplicated non prime num 5 find the least duplicated prime num
What is an adaptor class or wrapper class in c++?
Should the member functions which are made public in the base class be hidden?
How would you use the functions randomize() and random()?
What is the role of copy constructor in copying of thrown objects?
Write about all the implicit member functions of a class?
What is ofstream c++?