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. Use 2 characters to represent one






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






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






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






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






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






7. A set of values together with a set of operations






8. The stream insertion operator






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






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






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






12. newline






13. Symbol that denotes an action to be performed






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






15. Associate an identifier with a memory location






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






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






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






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






20. Operator with two operands






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






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






23. C++ programs are normally typed into a computer using a(n) ________ program.






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






25. In inheritance the ____________ is the class that supplies the inherited members.






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






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






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






29. Keyword public is a(n) _________






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






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






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






33. An expression that has operands with different data types






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






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






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






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






38. Type casting syntax






39. Operator with only one operand






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






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






42. The modulus operator (%) can be used only with __________.






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






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






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






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






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






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






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






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







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