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 keyword ________ is used in a function header to indicate that a function does not return a value or to indicate that a function contains no parameters.






2. When a value of one data type is implicitly (automatically) changed to another data type






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






4. The sign you use for pointers






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






6. Keyword public is a(n) _________






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






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






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






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






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






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






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






14. All C++ Variables are_________.






15. A recursive function typically has two components: One that provides a means for the recursion to terminate by testing for a(n) ________ case and one that expresses the problem as a recursive call for a slightly simpler problem than the original call






16. A filestream variable that represents the default input source






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






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






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






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






21. The sign you use for references






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






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






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






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






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






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






28. Default name of executable file






29. A function is invoked with a ________.






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






31. newline






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






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






34. Executable version of program






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






36. Forces the computer to display decimal point and trailing zeroes






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






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






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






40. Most calculations are normally performed by ______ statements.






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






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






43. Creates a copy of a string.






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






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






46. Operator with two operands






47. Preprocessor directive syntax






48. The ________ program transfers the executable image of a C++ program from disk to memory.






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






50. OOD also takes advantage of ________ relationships where new classes of objects are derived by absorbing characteristics of existing classes - then adding unique characteristics of their own.







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