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. A variable that is known only within the function in which it is defined is called a ________.






3. An expression that has operands with different data types






4. A function that can be used to read character data including whitespace






5. A function that calls itself






6. The __________ operator reclaims memory previously allocated by new.






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






8. The stream extraction operator






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






10. The _____ causes the contents of another file to be inserted into a program.






11. A pointer is a variable that contains as its value the____________ of another variable.






12. Header file that contains commonly performed mathematical functions






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






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






15. A ________ program executes before the compiler's translation phase begins.






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






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






18. The elements of an array are related by the fact that they have the same name and ___________.






19. Function ________ is used to produce random numbers.






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






21. Associate an identifier with a memory location






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






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






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






25. = & | are examples of ____________.






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






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






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






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






30. You must have a ___________ for every variable you intend to use in a program






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






32. This manipulator is used to establish a field width for the value immediately following it.






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






34. The sign you use for references






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






36. data types that refer to numbers with decimals






37. Use 2 characters to represent one






38. A memory location with a name and data type and a value - its content (value) cannot be changed during program execution






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






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






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






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






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






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






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






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






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






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






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






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







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