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. = & | are examples of ____________.






2. Operator with only one operand






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






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






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






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






7. Operator with two operands






8. Repeating a set of instructions a specific number of times is called_________repetition.






9. If a member initializer is not provided for a member object of a class the object's __________ is called.






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






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






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






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






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






15. The six possible scopes of an identifier are ________ - file scope - block scope - function-prototype scope - class scope - namespace scope .






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






17. Words that are used for special purposes in a program






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






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






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






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






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






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






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






25. An array that uses two subscripts is referred to as a(n) _________ array.






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






27. Executable version of program






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






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






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






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






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






33. Preprocessor directive syntax






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






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






36. * / % + -






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






38. The sign you use for references






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






40. A filestream variable that represents the default output device






41. Used for function calls and local variables






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






43. Keyword public is a(n) _________






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






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






46. Default name of executable file






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






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






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






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







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