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. Header file that contains commonly performed mathematical functions






2. This manipulator causes the field to be left-justified with padding spaces printed to the right.






3. Identifier or expression that is part of the calculation to be performed






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






5. The address-of operator. it is used to assign pointers and to print the address of variables.






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






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






8. Preprocessor directive syntax






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






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






11. The size & shape & color and weight of an object are considered






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






13. The _________ begins the body of every function and the _________ ends the body of every function.






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






15. All C++ Variables are_________.






16. Class members specified as _________ are accessible anywhere an object of the class is in scope.






17. A variable that is known only within the function in which it is defined is called a ________.






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






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






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






21. Associate an identifier with a memory location






22. An expression in which all operands have the same data type - result will have the same data type as operands






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






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






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






26. A variable declared outside any block or function is a ________ variable.






27. Allows the programmer to store a value in a variable






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






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






30. A function that calls itself






31. * / % + -






32. Creates a copy of a string.






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






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






35. A sequence of operands and operators that describe a calculation to be performed






36. All programs can be written in terms of three types of control structures:Sequence - ________and Repetition.






37. When the compiler sees this keyword the function call is replaced with a copy of the contents of the function itself.






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






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






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






41. The_________selection statement is used to execute one action when a condition is TRue or a different action when that condition is false.






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






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






44. The stream insertion operator






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






46. A human readable file that contains C++ program






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






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






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






50. Operator with two operands







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