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. Class members are accessed via the ________ operator in conjunction with the name of an object (or reference to an object) of the class or via the arrow (->) operator in conjunction with a pointer to an object of the class.






2. Initializers __________ must be used to initialize constant members of a class.






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






4. data types that refer to numbers with decimals






5. The stream insertion operator






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






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






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






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






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






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






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






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






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






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






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






17. Executable version of program






18. Type casting syntax






19. All C++ Variables are_________.






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






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






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






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






24. The symbol for the binary scope resolution operator






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






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






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






28. Symbol that denotes an action to be performed






29. Operator with only one operand






30. The source-code file and any other files that use a class can include the class's header file via an _________ preprocessor directive.






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






32. Function ________ is used to produce random numbers.






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






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






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






36. tab






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






38. A set of values together with a set of operations






39. Creates a copy of a string.






40. To write data to a file you define an object of which one of the following






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






42. C++ programmers concentrate on creating ________ which contain data members and the member functions that manipulate those data members and provide services to clients.






43. For every opening brace in a C++ program there must be a ______________.






44. Associate an identifier with a memory location






45. A filestream variable that represents the default input source






46. The sign you use for references






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






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






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






50. int namespace include using return examples of ___________







Sorry!:) No result found.

Can you answer 50 questions in 15 minutes?


Let me suggest you:



Major Subjects



Tests & Exams


AP
CLEP
DSST
GRE
SAT
GMAT

Most popular tests