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 address-of operator. it is used to assign pointers and to print the address of variables.






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






3. int namespace include using return examples of ___________






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






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






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






7. The stream extraction operator






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






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






10. Operator with two operands






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






12. directive A statement that starts with a # is called a ____________.






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






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






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






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






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






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






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






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






21. Preprocessor directive syntax






22. Header file that contains commonly performed mathematical functions






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






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






25. Associate an identifier with a memory location






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






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






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






29. The process of analyzing and designing a system from an object-oriented point of view is called ________.






30. Used for dynamically allocated variables






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






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






33. Naming convention for C++ programs






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






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






36. The elements of an array are related by the fact that they have the same name and ___________.






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






38. A function is invoked with a ________.






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






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






41. Comments do not cause the computer to print the text after the____ on the screen when the program is executed.






42. tab






43. A __________ data member represents class-wide information.






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






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






46. Whole numbers - no decimals and no commas included






47. A function that calls itself






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






49. Identifier or expression that is part of the calculation to be performed






50. Creates a copy of a string.