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 storage-class specifiers are mutable - auto - ________ - extern and static.






2. The sign you use for pointers






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






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






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






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






7. A filestream variable that represents the default output device






8. The escape sequence n represents the _________ character which causes the cursor to position to the beginning of the next line on the screen.






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






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






11. The three values that can be used to initialize a pointer are 0 - __________ and an address.






12. Naming convention for C++ programs






13. A memory location with a name and data type and a value - its content (value) cannot be changed during program execution






14. The process of determining if an array contains a particular key value is called _________ the array.






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






16. Symbol that denotes an action to be performed






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






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






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






20. The symbol for the binary scope resolution operator






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






22. Function ________ is used to produce random numbers.






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






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






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






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






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






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






29. Variables declared in a block or in the parameter list of a function are assumed to be of storage class ________ unless specified otherwise.






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


31. Type casting syntax






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






33. A nonmember function must be declared as a(n) __________ of a class to have access to that class's private data members.






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






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






36. Use 2 characters to represent one






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






38. A variable that holds the address of another variable.






39. Executable version of program






40. A function that calls itself






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






42. In inheritance the ____________ is the class that supplies the inherited members.






43. Creates a copy of a string.






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






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






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






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






48. All programs can be written in terms of three types of control structures:Sequence - ________and Repetition.






49. Used for dynamically allocated variables






50. The __________ operator reclaims memory previously allocated by new.