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. Executable version of program






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






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






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






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






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






7. Compares two strings and returns 0 if they are equal.






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






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






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






11. Symbol that denotes an action to be performed






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






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






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






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






16. Lists and tables of values can be stored in arrays or __________.






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






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






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






20. The address-of operator. it is used to assign pointers and to print the address of variables.






21. Header file that contains commonly performed mathematical functions






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






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






24. An expression that has operands with different data types






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






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






27. tab






28. The sign you use for references






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






30. The stream extraction operator






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






32. data types that refer to numbers with decimals






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






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






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






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






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






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






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






40. Every C++ program begins execution at the function _________.






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


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






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






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






45. This allows the writer to create functions of the same name as long as they have different parameters or different quantities of parameters.






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






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






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






49. The symbol for the binary scope resolution operator






50. A member function should be declared static if it does not access __________ class members.