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. Words that are used for special purposes in a program






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






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






4. The symbol for the binary scope resolution operator






5. A function that calls itself






6. When you create a ___________________in the base class and then call it using an object the function will know to look in the inherited class for the specifics of that function.






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






8. A function is invoked with a ________.






9. The stream insertion operator






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






11. Function _________ from the <string> library reads characters until a newline character is encountered - then copies those characters into the specified string.






12. OOD also takes advantage of ________ relationships where new classes of objects are derived by absorbing characteristics of existing classes - then adding unique characteristics of their own.






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






14. A human readable file that contains C++ program






15. Single letters or digits or special symbols; enclose value in single quotes ('a' '?' '8')






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






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






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






19. The ________ qualifier is used to declare read-only variables.






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






21. Header file that contains commonly performed mathematical functions






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






23. Naming convention for C++ programs






24. Operator with only one operand






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






26. Manipulator that causes the insertion point (cursor) to move to the beginning of the next line

Warning: Invalid argument supplied for foreach() in /var/www/html/basicversity.com/show_quiz.php on line 183


27. You must have a ___________ for every variable you intend to use in a program






28. The ________ enables access to a global variable with the same name as a variable in the current scope.






29. An expression that has operands with different data types






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






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






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






33. Function ________ is used to produce random numbers.






34. Most calculations are normally performed by ______ statements.






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






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






37. Classes can have relationships with other classes. These relationships are called ________.






38. Symbol that denotes an action to be performed






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






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






41. In inheritance the ____________ is the class the receives the inherited members.






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






43. All C++ Variables are_________.






44. The three values that can be used to initialize a pointer are 0 - __________ and an address.






45. Characters used to separate symbols or reserved words or identifiers and statements






46. Executable version of program






47. A memory location with a name and data type - its content may be changed during program execution






48. The _____ causes the contents of another file to be inserted into a program.






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






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