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. The elements of an array are related by the fact that they have the same name and ___________.






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






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






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






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






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






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






8. The modulus operator (%) can be used only with __________.






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






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






11. Lists and tables of values can be stored in arrays or __________.






12. The stream insertion operator






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






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






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






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






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






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






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






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






21. Repeating a set of instructions a specific number of times is called_________repetition.






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






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






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






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






26. A function is invoked with a ________.






27. The stream extraction operator






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






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






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






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






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






33. The sign you use for references






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






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






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






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






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






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






40. Preprocessor directive syntax






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






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






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






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






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






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






47. Use 2 characters to represent one






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






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






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