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 size & shape & color and weight of an object are considered






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






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






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






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






6. Used for dynamically allocated variables






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






8. newline






9. = & | are examples of ____________.






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






11. A filestream variable that represents the default output device






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






13. data types that refer to numbers with decimals






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






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






16. Naming convention for C++ programs






17. Used for function calls and local variables






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






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






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






21. Operator with two operands






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






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


24. A recursive function typically has two components: One that provides a means for the recursion to terminate by testing for a(n) ________ case and one that expresses the problem as a recursive call for a slightly simpler problem than the original call






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






26. Operator with only one operand






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






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






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






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






32. tab






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






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






35. Header file that contains commonly performed mathematical functions






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






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






38. Symbol that denotes an action to be performed






39. Keyword public is a(n) _________






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






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






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






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






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






45. Use 2 characters to represent one






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






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






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






49. Preprocessor directive syntax






50. Most calculations are normally performed by ______ statements.