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 ________ of an identifier is the portion of the program in which the identifier can be used.






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






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






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






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






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






7. The stream extraction operator






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






9. Naming convention for C++ programs






10. Names of things that are used in a program - can apply to variables & constants and functions






11. The four areas that a program uses memory on are: the codes area - the _______ area - the stack and the heap.






12. A type of pointer that can point at objects of any data type.






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






14. Storage-class specifier ________ is a recommendation to the compiler to store a variable in one of the computer's registers.






15. A function is invoked with a ________.






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






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






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






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






20. Preprocessor directive syntax






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






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






23. newline






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






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






26. Executable version of program






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






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






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






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






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






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






34. Class members specified as _________ are accessible only to member functions of the class and friends of the class.






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






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






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






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






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






40. Whole numbers - no decimals and no commas included






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






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






43. Default name of executable file






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






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






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






47. data types that refer to numbers with decimals






48. The idea that you can call the same function and the output will depend on the type of object you're using.






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






50. A filestream variable that represents the default output device







Sorry!:) No result found.

Can you answer 50 questions in 15 minutes?


Let me suggest you:



Major Subjects



Tests & Exams


AP
CLEP
DSST
GRE
SAT
GMAT

Most popular tests