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. Naming convention for C++ programs






2. Forces the computer to display decimal point and trailing zeroes






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






4. A variable declared outside any block or function is a ________ variable.






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






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






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






8. Used for function calls and local variables






9. Used for dynamically allocated variables






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






11. tab






12. Names of things that are used in a program - can apply to variables & constants and functions






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






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






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






16. Most calculations are normally performed by ______ statements.






17. A________ allows the compiler to check the number & types and order of the arguments passed to a function.






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






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






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






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






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






23. The keyword __________ specifies that an object or variable is not modifiable after it is initialized.






24. The keyword ________ is used in a function header to indicate that a function does not return a value or to indicate that a function contains no parameters.






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






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






27. All programs can be written in terms of three types of control structures:Sequence - ________and Repetition.






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






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






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






31. directive A statement that starts with a # is called a ____________.






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






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






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






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






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






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






38. Use 2 characters to represent one






39. A sequence of operands and operators that describe a calculation to be performed






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






41. Comments do not cause the computer to print the text after the____ on the screen when the program is executed.






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






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






44. A member function should be declared static if it does not access __________ class members.






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






46. Whole numbers - no decimals and no commas included






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






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






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






50. The sign you use for references