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






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






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






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






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






6. newline






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






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






9. = & | are examples of ____________.






10. Associate an identifier with a memory location






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






12. An array that uses two subscripts is referred to as a(n) _________ array.






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






14. Type casting syntax






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






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






17. A function that calls itself






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






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






20. Header file that contains commonly performed mathematical functions






21. Use 2 characters to represent one






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






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






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






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






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






27. A filestream variable that represents the default input source






28. Naming convention for C++ programs






29. Used for function calls and local variables






30. Creates a copy of a string.






31. Operator with only one operand






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






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






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






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






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






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






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






39. The ________ statement in a called function passes the value of an expression back to the calling function.






40. Syntax for named constant declaration






41. Function ________ is used to produce random numbers.






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






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






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






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






46. Causes the program exits the loop - skipping over the rest of the commands and starts executing again with the next thing outside the loop.






47. The ________ of an identifier is the portion of the program in which the identifier can be used.






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






49. data types that refer to numbers with decimals






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







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