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 elements of an array are related by the fact that they have the same name and ___________.






2. The stream insertion operator






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






4. The sign you use for references






5. Forces the computer to display decimal point and trailing zeroes






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






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






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






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






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


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






12. Can be used as a compound "if" statement. it includes a number of different possibilities and directions rather than a single test.






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






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






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






16. * / % + -






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






18. Syntax for named constant declaration






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






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






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






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






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






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






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






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






27. Most calculations are normally performed by ______ statements.






28. Naming convention for C++ programs






29. A function is invoked with a ________.






30. The conditional operator. it evaluates a line of code and returns one thing if the condition is true and a different thing if the condition is false.






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






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






33. The symbol for the binary scope resolution operator






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






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






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






37. Executable version of program






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






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






40. The stream extraction operator






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






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






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






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






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






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






47. int namespace include using return examples of ___________






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






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






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