Test your basic knowledge |

C++ Programming Basics

Subject : it-skills
Instructions:
  • Answer 50 questions in 15 minutes.
  • If you are not ready to take this test, you can study here.
  • Match each statement with the correct term.
  • Don't refresh. All questions and answers are randomly picked and ordered every time you load a test.

This is a study tool. The 3 wrong answers for each question are randomly chosen from answers to other questions. So, you might find at times the answers obvious, but you will see it re-enforces your understanding as you take the test each time.
1. Objects have the property of ________although objects may know how to communicate with one another across well-defined interfaces - they normally are not allowed to know how other objects are implemented.






2. If a member initializer is not provided for a member object of a class the object's __________ is called.






3. Smallest individual unit of a programming language - special symbols or word symbols or identifiers






4. The three ways to return control from a called function to a caller are ________ - return expression and encounter.






5. The storage-class specifiers are mutable - auto - ________ - extern and static.






6. The symbol for the binary scope resolution operator






7. __________ can be used to assign an object of a class to another object of the same class.






8. A file must be ________ before data can be written to or read from it.






9. data types that refer to numbers with decimals






10. The stream insertion operator






11. Causes the program to immediately goes back to the top of the loop. the remainder of the statements in the loop are ignored for this current iteration.






12. Initializers __________ must be used to initialize constant members of a class.






13. A __________ data member represents class-wide information.






14. Compares two strings and returns 0 if they are equal.






15. This manipulator is used to establish a field width for the value immediately following it.






16. Function ________ is used to set the random number seed to randomize a program.






17. The _________ begins the body of every function and the _________ ends the body of every function.






18. A function that can be used to read character data including whitespace






19. ________ is a graphical language that allows people who design software systems to use an industry-standard notation to represent them.






20. A variable that holds the address of another variable.






21. A function is invoked with a ________.






22. Two slash marks ( // ) indicate __________ of a comment






23. A filestream variable that represents the default output device






24. Member objects are constructed __________ their enclosing class object.






25. Identifier or expression that is part of the calculation to be performed






26. When it is not known in advance how many times a set of statements will be repeated a _________value can be used to terminate the repetition.






27. An object's non-static member functions have access to a "self pointer" to the object called the __________ pointer.






28. Preprocessor directive syntax






29. All ______ must be declared before they are used.






30. Most calculations are normally performed by ______ statements.






31. Grammar rules of the language; compiler will try to identify and locate syntax errors






32. This happens when too much memory is pushed onto the stack and overflows to other areas of memory.






33. The address-of operator. it is used to assign pointers and to print the address of variables.






34. C++ programs are normally typed into a computer using a(n) ________ program.






35. This manipulator causes the field to be left-justified with padding spaces printed to the right.






36. This allows the writer to create functions of the same name as long as they have different parameters or different quantities of parameters.






37. These are data items whose values do not change while the program is running






38. A filestream variable that represents the default input source






39. The source-code file and any other files that use a class can include the class's header file via an _________ preprocessor directive.






40. Keyword public is a(n) _________






41. Type casting syntax






42. Class members specified as _________ are accessible only to member functions of the class and friends of the class.






43. Class members are accessed via the ________ operator in conjunction with the name of an object (or reference to an object) of the class or via the arrow (->) operator in conjunction with a pointer to an object of the class.






44. The process of determining if an array contains a particular key value is called _________ the array.






45. Creates a copy of a string.






46. A program that finds and attaches to your program the indicated libraries for compilation






47. Operator with two operands






48. Used for dynamically allocated variables






49. Used to qualify hidden names so that they can be used.






50. A memory location with a name and data type and a value - its content (value) cannot be changed during program execution






Can you answer 50 questions in 15 minutes?



Let me suggest you:



Major Subjects



Tests & Exams


AP
CLEP
DSST
GRE
SAT
GMAT

Most popular tests