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






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






4. Executable version of program






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






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






7. This manipulator is used to establish a field width for the value immediately following it.






8. The sign you use for references






9. * / % + -






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






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






12. Function _________ from the <string> library reads characters until a newline character is encountered - then copies those characters into the specified string.






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






14. When the compiler sees this keyword the function call is replaced with a copy of the contents of the function itself.






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






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






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






18. A function that calls itself






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






20. Default name of executable file






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






22. The stream extraction operator






23. data types that refer to numbers with decimals






24. A function is invoked with a ________.






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






26. Class members specified as _________ are accessible only to member functions of the class and friends of the class.






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






28. The new operator dynamically allocates memory for an object of a specified type and returns a __________ to that type.






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






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






31. A __________ should be used to declare the size of an array because it makes the program more scalable.






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






33. You can reassign the operator features in C++ to do things other than what they would do naturally. This is called ____________






34. Whole numbers - no decimals and no commas included






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






36. An operator that can only be used with int values. result will always be an int.






37. Lists and tables of values can be stored in arrays or __________.






38. Symbol that denotes an action to be performed






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






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






41. Syntax for named constant declaration






42. Naming convention for C++ programs






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






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






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






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






47. Header file that contains commonly performed mathematical functions






48. A memory location with a name and data type - its content may be changed during program execution






49. Use 2 characters to represent one






50. The storage-class specifiers are mutable - auto - ________ - extern and static.







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