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 set of values together with a set of operations






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






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






4. For a local variable in a function to retain its value between calls to the function it must be declared with the ________ storage-class specifier.






5. Default name of executable file






6. Keyword public is a(n) _________






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






8. A function that can be used to read character data including whitespace






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






10. The __________ operator reclaims memory previously allocated by new.






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






12. C++ programmers concentrate on creating ________ which contain data members and the member functions that manipulate those data members and provide services to clients.






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






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






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






16. tab






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






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






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






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






21. The sign you use for references






22. Most calculations are normally performed by ______ statements.






23. The three ways to return control from a called function to a caller are ________ - return expression and encounter.






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






25. Sets floating-point values to a fixed decimal format






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






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






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






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






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






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






32. This manipulator causes the field to be left-justified with padding spaces printed to the right.






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






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






35. A filestream variable that represents the default input source






36. A function that calls itself






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






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






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






40. data types that refer to numbers with decimals






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






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






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






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






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






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






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






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






49. An expression that has operands with different data types






50. Use 2 characters to represent one