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. Executable version of program






2. Type casting syntax






3. All C++ Variables are_________.






4. The stream insertion operator






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






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






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






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






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






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






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






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






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






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






15. Operator with two operands






16. int namespace include using return examples of ___________






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






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






19. Used for dynamically allocated variables






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






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






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






23. Keyword public is a(n) _________






24. * / % + -






25. Meaning of the instructions in the language; compiler cannot find these errors - often called logic errors






26. Names of things that are used in a program - can apply to variables & constants and functions






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






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






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






30. When you create a ___________________in the base class and then call it using an object the function will know to look in the inherited class for the specifics of that function.






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






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






33. Syntax for named constant declaration






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






35. A________ allows the compiler to check the number & types and order of the arguments passed to a function.






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






37. The sign you use for references






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






39. All programs can be written in terms of three types of control structures:Sequence - ________and Repetition.






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






41. Used for function calls and local variables






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






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






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






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






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






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






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






49. The storage-class specifiers are mutable - auto - ________ - extern and static.






50. Sets floating-point values to a fixed decimal format






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