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






2. data types that refer to numbers with decimals






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






4. A function is invoked with a ________.






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






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






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






8. Type casting syntax






9. The sign you use for references






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






11. Whole numbers - no decimals and no commas included






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






13. tab






14. = & | are examples of ____________.






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






16. Variables declared in a block or in the parameter list of a function are assumed to be of storage class ________ unless specified otherwise.






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






18. Header file that contains commonly performed mathematical functions






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






20. A nonmember function must be declared as a(n) __________ of a class to have access to that class's private data members.






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






22. Naming convention for C++ programs






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






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






25. Identifier or expression that is part of the calculation to be performed






26. To explicitly indicate that a value is to be converted to another type






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






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






29. newline






30. Executable version of program






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






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






33. Most calculations are normally performed by ______ statements.






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






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






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






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






38. The process of determining if an array contains a particular key value is called _________ the array.






39. A __________ data member represents class-wide information.






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






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






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






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






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






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






46. An expression that has operands with different data types






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






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






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






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