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 symbol for the binary scope resolution operator






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






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






4. Function ________ is used to produce random numbers.






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






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






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






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






9. Meaning of the instructions in the language; compiler cannot find these errors - often called logic errors






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






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






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






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






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






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






16. Syntax for named constant declaration






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






18. A function is invoked with a ________.






19. Words that are used for special purposes in a program






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






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






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






23. The ________ statement in a called function passes the value of an expression back to the calling function.






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






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






26. A function that calls itself






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






28. data types that refer to numbers with decimals






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






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






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






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






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






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






35. Member objects are constructed __________ their enclosing class object.






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






37. All C++ Variables are_________.






38. Allows the programmer to store a value in a variable






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






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






41. Function ________ is used to set the random number seed to randomize a program.






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






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






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






45. Operator with two operands






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






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






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






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






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