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. Causes the program exits the loop - skipping over the rest of the commands and starts executing again with the next thing outside the loop.






2. Class members are accessed via the ________ operator in conjunction with the name of an object (or reference to an object) of the class or via the arrow (->) operator in conjunction with a pointer to an object of the class.






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






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






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






6. The stream extraction operator






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






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






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






10. Use 2 characters to represent one






11. Function ________ is used to produce random numbers.






12. Keyword public is a(n) _________






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






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






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






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






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






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






19. Most calculations are normally performed by ______ statements.






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






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






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






23. Variables declared in a block or in the parameter list of a function are assumed to be of storage class ________ unless specified otherwise.






24. Syntax for named constant declaration






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






26. This manipulator is used to establish a field width for the value immediately following it.






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






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






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






30. = & | are examples of ____________.






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






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






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






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






35. Words that are used for special purposes in a program






36. Type casting syntax






37. Whole numbers - no decimals and no commas included






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






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






40. * / % + -






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






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






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






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






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






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






47. Associate an identifier with a memory location






48. Every C++ program begins execution at the function _________.






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






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







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