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. A type of pointer that can point at objects of any data type.






2. The process of analyzing and designing a system from an object-oriented point of view is called ________.






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






4. The_________selection statement is used to execute one action when a condition is TRue or a different action when that condition is false.






5. Causes the program exits the loop - skipping over the rest of the commands and starts executing again with the next thing outside the loop.






6. The four areas that a program uses memory on are: the codes area - the _______ area - the stack and the heap.






7. Syntax for reading char type variables by extracting one nonwhitespace character extracted at a time






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






9. The sign you use for pointers






10. Operator with two operands






11. 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.






12. Meaning of the instructions in the language; compiler cannot find these errors - often called logic errors






13. To write data to a file you define an object of which one of the following






14. This is used to mark the end of a complete C++ programming statement.






15. The elements of an array are related by the fact that they have the same name and ___________.






16. Storage-class specifier ________ is a recommendation to the compiler to store a variable in one of the computer's registers.






17. Program components in C++ are called functions and ________.






18. The ________ statement in a called function passes the value of an expression back to the calling function.






19. To allow file access in a program you must #include this header file.






20. Every C++ program begins execution at the function _________.






21. A constant object must be __________; it cannot be modified after it is created.






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






23. Used for function calls and local variables






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






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






26. Every C++ statement ends with a(n) _________.






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






28. Class members specified as _________ are accessible anywhere an object of the class is in scope.






29. All C++ Variables are_________.






30. For every opening brace in a C++ program there must be a ______________.






31. A function is invoked with a ________.






32. The conditional operator. it evaluates a line of code and returns one thing if the condition is true and a different thing if the condition is false.






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






34. The number used to refer to a particular element of an array is called its ________.






35. You can reassign the operator features in C++ to do things other than what they would do naturally. This is called ____________






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. Grammar rules of the language; compiler will try to identify and locate syntax errors






38. A function ________ enables a single function to be defined to perform a task on many different data types.






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






40. The ________ of an identifier is the portion of the program in which the identifier can be used.






41. The stream insertion operator






42. Keyword public is a(n) _________






43. The idea that you can call the same function and the output will depend on the type of object you're using.






44. An array that uses two subscripts is referred to as a(n) _________ array.






45. Returns the length of a string excluding the null terminator.






46. Used for dynamically allocated variables






47. A pointer is a variable that contains as its value the____________ of another variable.






48. The ________ program transfers the executable image of a C++ program from disk to memory.






49. The process of placing the elements of an array in order is called ________ the array.






50. 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.