STL (140)
OOPS (873)
C++ General (2409) 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);
1059True 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
1378
What is the best ide for c++?
What do you understand by zombie objects in c++?
Explain deep copy and a shallow copy?
Mention the ways in which parameterized can be invoked.
Can I learn c++ as my first language?
If you want to share several functions or variables in several files maitaining the consistency how would you share it?
What are the syntactic rules to be avoid ambiguity in multiple inheritance?
write a program that reads in a file and counts the number of lines, words, and characters. Your program should ask the user to input a filename. Open the file and report an error if the file does not exist or cannot be opened for some other reason. Then read in the contents of the file and count the number of lines, words, and characters in the file. Also print additional information about the file, such as the longest and shortest words, and longest and shortest lines. For simplicity, we define a word to be one or more characters ending with white space (a space, tab, carriage return, etc.). Functions for checking the types of characters can be found in the ctype.h header file, so you want to include this header file in your program. For example, the sentence below could be all that is in a file. This sentence IT 104 is taught in C++. has 32 characters, one line, and six words. The shortest line is 32 characters. The longest line is 32 characters. The shortest word is 2 characters. The longest word is 6 characters
can inline function declare in private part of class?
Which sort is best for the set: 1 2 3 5 4 a) Quick Sort b) Bubble Sort c) Merge Sort
Is it possible to pass an object of the same class in place of object reference to the copy constructor?
What is lambda expression c++?
What is the difference between a pointer and a link in c ++?
What is the protected keyword used for?
How can you overcome the diamond problem in inheritance?