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. Compares two strings and returns 0 if they are equal.






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






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






4. Most calculations are normally performed by ______ statements.






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






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






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






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






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






10. Keyword public is a(n) _________






11. Used for dynamically allocated variables






12. Associate an identifier with a memory location






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






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






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






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






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






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






19. The sign you use for references






20. To explicitly indicate that a value is to be converted to another type






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






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






23. The six possible scopes of an identifier are ________ - file scope - block scope - function-prototype scope - class scope - namespace scope .






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






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






26. int namespace include using return examples of ___________






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






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






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






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






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






32. __________ can be used to assign an object of a class to another object of the same class.






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






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






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






36. Function ________ is used to set the random number seed to randomize a program.






37. For every opening brace in a C++ program there must be a ______________.






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






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






40. Return type _________ indicates that a function will perform a task but will not return any information when it completes its task.






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






42. Default name of executable file






43. Symbol that denotes an action to be performed






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






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






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






47. Naming convention for C++ programs






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






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






50. Header file that contains commonly performed mathematical functions







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