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






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






3. Syntax for named constant declaration






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






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






6. = & | are examples of ____________.






7. Preprocessor directive syntax






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






9. You can declare default values for a function in the ____________________.






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






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






12. Whole numbers - no decimals and no commas included






13. Most calculations are normally performed by ______ statements.






14. The symbol for the binary scope resolution operator






15. Used for function calls and local variables






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






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






18. Repeating a set of instructions a specific number of times is called_________repetition.






19. * / % + -






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






21. An expression that has operands with different data types






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






23. int namespace include using return examples of ___________






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






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






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






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






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






29. newline






30. Executable version of program






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






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


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






34. Return type _________ indicates that a function will perform a task but will not return any information when it completes its task.






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






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






37. In inheritance the ____________ is the class that supplies the inherited members.






38. The keyword __________ specifies that an object or variable is not modifiable after it is initialized.






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






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






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






42. Every C++ program begins execution at the function _________.






43. The only integer that can be assigned directly to a pointer is_____________.






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






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






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






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






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






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






50. Associate an identifier with a memory location