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 size & shape & color and weight of an object are considered






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






3. Manipulator that causes the insertion point (cursor) to move to the beginning of the next line

Warning: Invalid argument supplied for foreach() in /var/www/html/basicversity.com/show_quiz.php on line 183


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






5. = & | are examples of ____________.






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






7. Symbol that denotes an action to be performed






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






9. A variable declared outside any block or function is a ________ variable.






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






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






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






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






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






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






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






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






18. A function is invoked with a ________.






19. Operator with two operands






20. * / % + -






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






22. Keyword public is a(n) _________






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






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






25. If a member initializer is not provided for a member object of a class the object's __________ is called.






26. To write data to a file you define an object of which one of the following






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






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






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






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






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






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






33. An operator that can only be used with int values. result will always be an int.






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






35. Header file that contains commonly performed mathematical functions






36. Comments do not cause the computer to print the text after the____ on the screen when the program is executed.






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






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






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






40. tab






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






42. All C++ Variables are_________.






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






44. Operator with only one operand






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






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






47. Initializers __________ must be used to initialize constant members of a class.






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






49. A function that calls itself






50. Every C++ statement ends with a(n) _________.