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. A pointer is a variable that contains as its value the____________ of another variable.






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






4. Executable version of program






5. Keyword public is a(n) _________






6. An expression that has operands with different data types






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






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






9. To write data to a file you define an object of which one of the following






10. newline






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






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






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






14. The only integer that can be assigned directly to a pointer is_____________.






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






16. directive A statement that starts with a # is called a ____________.






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






18. = & | are examples of ____________.






19. Can be used as a compound "if" statement. it includes a number of different possibilities and directions rather than a single test.






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






21. The ________ qualifier is used to declare read-only variables.






22. Sets floating-point values to a fixed decimal format






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






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






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






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






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






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






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






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






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






32. Syntax for named constant declaration






33. Two slash marks ( // ) indicate __________ of a comment






34. A function that calls itself






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






36. Use 2 characters to represent one






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






38. Comments do not cause the computer to print the text after the____ on the screen when the program is executed.






39. Operator with two operands






40. * / % + -






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






42. You can reassign the operator features in C++ to do things other than what they would do naturally. This is called ____________






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






44. Classes can have relationships with other classes. These relationships are called ________.






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






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






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






48. Used for dynamically allocated variables






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






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