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. All ______ must be declared before they are used.






2. Preprocessor directive syntax






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






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






5. Symbol that denotes an action to be performed






6. Used for function calls and local variables






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






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






9. Objects have the property of ________although objects may know how to communicate with one another across well-defined interfaces - they normally are not allowed to know how other objects are implemented.






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






11. Used for dynamically allocated variables






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






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






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






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






16. Single letters or digits or special symbols; enclose value in single quotes ('a' '?' '8')






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






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






19. The four areas that a program uses memory on are: the codes area - the _______ area - the stack and the heap.






20. Header file that contains commonly performed mathematical functions






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






22. Associate an identifier with a memory location






23. Syntax for named constant declaration






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






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






26. A pointer is a variable that contains as its value the____________ of another variable.






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






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






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






30. * / % + -






31. You can declare default values for a function in the ____________________.






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






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






34. The stream insertion operator






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






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






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






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






39. A human readable file that contains C++ program






40. An object's non-static member functions have access to a "self pointer" to the object called the __________ pointer.






41. The symbol for the binary scope resolution operator






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






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






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






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






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






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






48. data types that refer to numbers with decimals






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






50. When it is not known in advance how many times a set of statements will be repeated a _________value can be used to terminate the repetition.







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