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. To allow file access in a program you must #include this header file.






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






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






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






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






6. A type of pointer that can point at objects of any data type.






7. Function _________ from the <string> library reads characters until a newline character is encountered - then copies those characters into the specified string.






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






9. Return type _________ indicates that a function will perform a task but will not return any information when it completes its task.






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






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






12. A C++ statement that makes a decision is ______.






13. An expression in which all operands have the same data type - result will have the same data type as operands






14. Used for function calls and local variables






15. The _____ causes the contents of another file to be inserted into a program.






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






17. Keyword public is a(n) _________






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


19. Message displayed to the screen asking user for input; generated with an output statement






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






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






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






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






24. Syntax for named constant declaration






25. The symbol for the binary scope resolution operator






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






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






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






29. This is used to mark the end of a complete C++ programming statement.






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






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






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






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






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






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






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






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






38. The number used to refer to a particular element of an array is called its ________.






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






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






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






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






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






44. Whole numbers - no decimals and no commas included






45. Type casting syntax






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






47. Naming convention for C++ programs






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






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






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