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. Function ________ is used to produce random numbers.






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






4. The number used to refer to a particular element of an array is called its ________.






5. Identifier or expression that is part of the calculation to be performed






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






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






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






9. Used for dynamically allocated variables






10. Meaning of the instructions in the language; compiler cannot find these errors - often called logic errors






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






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






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






14. Type casting syntax






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






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


17. To explicitly indicate that a value is to be converted to another type






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






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






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






21. The ________ statement in a called function passes the value of an expression back to the calling function.






22. Operator with only one operand






23. The ________ enables access to a global variable with the same name as a variable in the current scope.






24. A sequence of operands and operators that describe a calculation to be performed






25. newline






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






27. A C++ statement that makes a decision is ______.






28. A filestream variable that represents the default output device






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






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






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






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






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






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






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






36. The stream extraction operator






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






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






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






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






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






42. A ________ program executes before the compiler's translation phase begins.






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






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






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






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






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






48. Syntax for named constant declaration






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






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