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. Keyword public is a(n) _________






2. It is possible to have various functions with the same name that operate on different types or numbers of arguments. This is called function ________.






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






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






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






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






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






8. Can be used as a compound "if" statement. it includes a number of different possibilities and directions rather than a single test.






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






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






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






12. The stream insertion operator






13. Nonexecutable statements that are included in a program to provide information about what the program does etc.






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






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






16. Executable version of program






17. A recursive function typically has two components: One that provides a means for the recursion to terminate by testing for a(n) ________ case and one that expresses the problem as a recursive call for a slightly simpler problem than the original call






18. Used for dynamically allocated variables






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






20. The size & shape & color and weight of an object are considered






21. When the compiler sees this keyword the function call is replaced with a copy of the contents of the function itself.






22. A filestream variable that represents the default input source






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






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






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






26. The escape sequence n represents the _________ character which causes the cursor to position to the beginning of the next line on the screen.






27. The escape sequence ___ when output with cout and the stream insertion operator - causes the cursor to position to the beginning of the next line on the screen.






28. A function that calls itself either directly or indirectly - through another function) - is a ________ function.






29. Syntax for named constant declaration






30. A variable that is known only within the function in which it is defined is called a ________.






31. A set of values together with a set of operations






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






33. Whole numbers - no decimals and no commas included






34. A __________ should be used to declare the size of an array because it makes the program more scalable.






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






36. An expression that has operands with different data types






37. The six possible scopes of an identifier are ________ - file scope - block scope - function-prototype scope - class scope - namespace scope .






38. The only integer that can be assigned directly to a pointer is_____________.






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






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






41. Operator with two operands






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






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






44. When a value of one data type is implicitly (automatically) changed to another data type






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






46. The symbol for the binary scope resolution operator






47. The ________ program combines the output of the compiler with various library functions to produce an executable image.






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






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






50. Default name of executable file