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. Classes can have relationships with other classes. These relationships are called ________.






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






3. Creates a copy of a string.






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






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






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






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






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






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






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






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






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






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






14. A constant object must be __________; it cannot be modified after it is created.






15. A function is invoked with a ________.






16. Forces the computer to display decimal point and trailing zeroes






17. * / % + -






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






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






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






21. The ________ enables access to a global variable with the same name as a variable in the current scope.






22. To allow file access in a program you must #include this header file.






23. data types that refer to numbers with decimals






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






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






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






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






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






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






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






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






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






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






34. Default name of executable file






35. You must have a ___________ for every variable you intend to use in a program






36. The keyword ________ is used in a function header to indicate that a function does not return a value or to indicate that a function contains no parameters.






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






38. Keyword public is a(n) _________






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






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






41. The conditional operator. it evaluates a line of code and returns one thing if the condition is true and a different thing if the condition is false.






42. The stream extraction operator






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






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






45. When a value of one data type is implicitly (automatically) changed to another data type






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






47. Syntax for named constant declaration






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






49. Names of things that are used in a program - can apply to variables & constants and functions






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







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