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






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






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






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






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






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






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






8. Default name of executable file






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






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






11. A function is invoked with a ________.






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






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






14. The conditional operator. it evaluates a line of code and returns one thing if the condition is true and a different thing if the condition is false.






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






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






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






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






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






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






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






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






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






24. * / % + -






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






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






27. The ________ qualifier is used to declare read-only variables.






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






29. Naming convention for C++ programs






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






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






32. A ________ program executes before the compiler's translation phase begins.






33. When you create a ___________________in the base class and then call it using an object the function will know to look in the inherited class for the specifics of that function.






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






35. Use 2 characters to represent one






36. newline






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






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






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






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






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






42. The new operator dynamically allocates memory for an object of a specified type and returns a __________ to that type.






43. The stream insertion operator






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






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






46. Manipulator that causes the insertion point (cursor) to move to the beginning of the next line

Warning: Invalid argument supplied for foreach() in /var/www/html/basicversity.com/show_quiz.php on line 183


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






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






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






50. OOD also takes advantage of ________ relationships where new classes of objects are derived by absorbing characteristics of existing classes - then adding unique characteristics of their own.