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. __________ can be used to assign an object of a class to another object of the same class.






2. Executable version of program






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






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






5. Use 2 characters to represent one






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






7. Most calculations are normally performed by ______ statements.






8. The number used to refer to a particular element of an array is called its ________.






9. When the compiler sees this keyword the function call is replaced with a copy of the contents of the function itself.






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






11. Whole numbers - no decimals and no commas included






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






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






14. The stream extraction operator






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






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






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






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






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






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






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






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






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






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






25. A function that calls itself






26. tab






27. This happens when too much memory is pushed onto the stack and overflows to other areas of memory.






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






29. Message displayed to the screen asking user for input; generated with an output statement






30. The ________ of an identifier is the portion of the program in which the identifier can be used.






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






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






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






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






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






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






37. Associate an identifier with a memory location






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






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






40. The symbol for the binary scope resolution operator






41. The process of determining if an array contains a particular key value is called _________ the array.






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






43. These are data items whose values do not change while the program is running






44. ________ is a graphical language that allows people who design software systems to use an industry-standard notation to represent them.






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






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. Repeating a set of instructions a specific number of times is called_________repetition.






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






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






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