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






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






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






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


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






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






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






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






9. directive A statement that starts with a # is called a ____________.






10. Used for dynamically allocated variables






11. newline






12. This allows the writer to create functions of the same name as long as they have different parameters or different quantities of parameters.






13. Initializers __________ must be used to initialize constant members of a class.






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






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






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






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






18. Whole numbers - no decimals and no commas included






19. Preprocessor directive syntax






20. The sign you use for references






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






22. Keyword public is a(n) _________






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






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






25. The sign you use for pointers






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






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






28. Naming convention for C++ programs






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






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






31. A __________ data member represents class-wide information.






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






33. The symbol for the binary scope resolution operator






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






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






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






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






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






39. Operator with only one operand






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






41. The source-code file and any other files that use a class can include the class's header file via an _________ preprocessor directive.






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






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






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






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






46. The ________ program combines the output of the compiler with various library functions to produce an executable image.






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






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






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






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






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