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 idea that you can call the same function and the output will depend on the type of object you're using.






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






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






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






5. A variable that holds the address of another variable.






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






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






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






9. Creates a copy of a string.






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






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






12. int namespace include using return examples of ___________






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






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






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






16. All ______ must be declared before they are used.






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






18. The_________selection statement is used to execute one action when a condition is TRue or a different action when that condition is false.






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






20. The _____ causes the contents of another file to be inserted into a program.






21. = & | are examples of ____________.






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






23. This manipulator is used to establish a field width for the value immediately following it.






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






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






26. All C++ Variables are_________.






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






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






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






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






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






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






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






34. Associate an identifier with a memory location






35. A function is invoked with a ________.






36. The three ways to return control from a called function to a caller are ________ - return expression and encounter.






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






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






39. Type casting syntax






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






41. data types that refer to numbers with decimals






42. The ________ qualifier is used to declare read-only variables.






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






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






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






46. Causes the program exits the loop - skipping over the rest of the commands and starts executing again with the next thing outside the loop.






47. Header file that contains commonly performed mathematical functions






48. A function that calls itself






49. Syntax for named constant declaration






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