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. Associate an identifier with a memory location






2. A file must be ________ before data can be written to or read from it.






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






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






19. Preprocessor directive syntax






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






21. All C++ Variables are_________.






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


23. * / % + -






24. The conditional operator. it evaluates a line of code and returns one thing if the condition is true and a different thing if the condition is false.






25. Single letters or digits or special symbols; enclose value in single quotes ('a' '?' '8')






26. Symbol that denotes an action to be performed






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






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






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






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






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






32. A nonmember function must be declared as a(n) __________ of a class to have access to that class's private data members.






33. Naming convention for C++ programs






34. Type casting syntax






35. The stream extraction operator






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






37. Use 2 characters to represent one






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






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






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






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






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






43. An object's non-static member functions have access to a "self pointer" to the object called the __________ pointer.






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






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






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






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






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






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






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