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. This manipulator causes the field to be left-justified with padding spaces printed to the right.






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






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






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






5. A variable that holds the address of another variable.






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






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






8. tab






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






10. data types that refer to numbers with decimals






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






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






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






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






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






16. * / % + -






17. The process of determining if an array contains a particular key value is called _________ the array.






18. Message displayed to the screen asking user for input; generated with an output statement






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






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






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






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






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






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






25. Executable version of program






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






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






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






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






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






31. Meaning of the instructions in the language; compiler cannot find these errors - often called logic errors






32. Use 2 characters to represent one






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






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






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






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






37. In inheritance the ____________ is the class the receives the inherited members.






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






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






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






41. Used for dynamically allocated variables






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






43. Keyword public is a(n) _________






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






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






46. OOD also takes advantage of ________ relationships where new classes of objects are derived by absorbing characteristics of existing classes - then adding unique characteristics of their own.






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






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






49. The stream insertion operator






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







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