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. A function that calls itself either directly or indirectly - through another function) - is a ________ function.






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






3. * / % + -






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






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






6. Compares two strings and returns 0 if they are equal.






7. This manipulator causes the field to be left-justified with padding spaces printed to the right.






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






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






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






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






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






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






14. Classes can have relationships with other classes. These relationships are called ________.






15. = & | are examples of ____________.






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






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 is invoked with a ________.






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






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






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






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






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






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






25. The keyword __________ specifies that an object or variable is not modifiable after it is initialized.






26. ________ is a graphical language that allows people who design software systems to use an industry-standard notation to represent them.






27. Creates a copy of a string.






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






29. Naming convention for C++ programs






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






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






32. Whole numbers - no decimals and no commas included






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






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






35. Default name of executable file






36. Use 2 characters to represent one






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






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






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






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






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






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






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






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






45. Function ________ is used to produce random numbers.






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






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






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






49. Type casting syntax






50. The process of determining if an array contains a particular key value is called _________ the array.