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. The only integer that can be assigned directly to a pointer is_____________.






2. The ________ program transfers the executable image of a C++ program from disk to memory.






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






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






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






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






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






8. Whole numbers - no decimals and no commas included






9. int namespace include using return examples of ___________






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






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






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






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






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






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






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






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






18. Header file that contains commonly performed mathematical functions






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






20. All C++ Variables are_________.






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






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






23. Grammar rules of the language; compiler will try to identify and locate syntax errors






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






25. Variables declared in a block or in the parameter list of a function are assumed to be of storage class ________ unless specified otherwise.






26. It is possible to have various functions with the same name that operate on different types or numbers of arguments. This is called function ________.






27. Most calculations are normally performed by ______ statements.






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






29. Returns the length of a string excluding the null terminator.






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






31. tab






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






33. Operator with two operands






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






35. The stream insertion operator






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






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






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






39. Naming convention for C++ programs






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






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






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






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






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






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






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






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






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






49. data types that refer to numbers with decimals






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