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. A________ allows the compiler to check the number & types and order of the arguments passed to a function.






3. The stream insertion operator






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






5. Operator with only one operand






6. Creates a copy of a string.






7. Used for dynamically allocated variables






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






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






10. tab






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






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






13. Associate an identifier with a memory location






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






15. The escape sequence n represents the _________ character which causes the cursor to position to the beginning of the next line on the screen.






16. An array that uses two subscripts is referred to as a(n) _________ array.






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






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






19. The sign you use for references






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






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






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






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






24. Executable version of program






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






26. Allows the programmer to store a value in a variable






27. In inheritance the ____________ is the class the receives the inherited members.






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






29. A filestream variable that represents the default input source






30. = & | are examples of ____________.






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






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






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






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






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






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






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






38. Header file that contains commonly performed mathematical functions






39. Type casting syntax






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






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






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






43. Most calculations are normally performed by ______ statements.






44. A C++ statement that makes a decision is ______.






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






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






47. * / % + -






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






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






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







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