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. Used for dynamically allocated variables






2. Executable version of program






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






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






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






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






7. The sign you use for references






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






9. Operator with two operands






10. A recursive function typically has two components: One that provides a means for the recursion to terminate by testing for a(n) ________ case and one that expresses the problem as a recursive call for a slightly simpler problem than the original call






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






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






13. A program that finds and attaches to your program the indicated libraries for compilation






14. newline






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






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






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






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






19. Creates a copy of a string.






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






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






22. Type casting syntax






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






24. An expression that has operands with different data types






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






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






27. This allows the writer to create functions of the same name as long as they have different parameters or different quantities of parameters.






28. Syntax for named constant declaration






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






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






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






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






33. A filestream variable that represents the default output device






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


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






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






37. Class members are accessed via the ________ operator in conjunction with the name of an object (or reference to an object) of the class or via the arrow (->) operator in conjunction with a pointer to an object of the class.






38. When a value of one data type is implicitly (automatically) changed to another data type






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






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






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






42. A filestream variable that represents the default input source






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






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






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






46. __________ can be used to assign an object of a class to another object of the same class.






47. A function that can be used to read character data including whitespace






48. An expression in which all operands have the same data type - result will have the same data type as operands






49. int namespace include using return examples of ___________






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