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. An array that uses two subscripts is referred to as a(n) _________ array.






2. A filestream variable that represents the default input source






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






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






5. All C++ Variables are_________.






6. Executable version of program






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






8. To allow file access in a program you must #include this header file.






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






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






11. Function ________ is used to produce random numbers.






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






13. = & | are examples of ____________.






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






15. Keyword public is a(n) _________






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






17. The elements of an array are related by the fact that they have the same name and ___________.






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


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






20. You must have a ___________ for every variable you intend to use in a program






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






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






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






24. Compares two strings and returns 0 if they are equal.






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






26. The storage-class specifiers are mutable - auto - ________ - extern and static.






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






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






29. int namespace include using return examples of ___________






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






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






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






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






34. Nonexecutable statements that are included in a program to provide information about what the program does etc.






35. Syntax for named constant declaration






36. An expression that has operands with different data types






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






38. Member objects are constructed __________ their enclosing class object.






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






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






41. The escape sequence ___ when output with cout and the stream insertion operator - causes the cursor to position to the beginning of the next line on the screen.






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






43. Type casting syntax






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






45. Used for dynamically allocated variables






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






47. data types that refer to numbers with decimals






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






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






50. Most calculations are normally performed by ______ statements.