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. Causes the program exits the loop - skipping over the rest of the commands and starts executing again with the next thing outside the loop.






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


3. A filestream variable that represents the default input source






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






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






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






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






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






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






10. Used for function calls and local variables






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






12. C++ programmers concentrate on creating ________ which contain data members and the member functions that manipulate those data members and provide services to clients.






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






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






15. Use 2 characters to represent one






16. Naming convention for C++ programs






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






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






19. data types that refer to numbers with decimals






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






21. The stream extraction operator






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






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






24. A________ allows the compiler to check the number & types and order of the arguments passed to a function.






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






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






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






28. Used for dynamically allocated variables






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






30. Words that are used for special purposes in a program






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






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






33. tab






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






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






36. The symbol for the binary scope resolution operator






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






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






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






40. When you create a ___________________in the base class and then call it using an object the function will know to look in the inherited class for the specifics of that function.






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






42. An operator that can only be used with int values. result will always be an int.






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






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






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






46. newline






47. The process of determining if an array contains a particular key value is called _________ the array.






48. The sign you use for pointers






49. The three values that can be used to initialize a pointer are 0 - __________ and an address.






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






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