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. For every opening brace in a C++ program there must be a ______________.






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






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






4. Default name of executable file






5. Member objects are constructed __________ their enclosing class object.






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






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. ________ is a graphical language that allows people who design software systems to use an industry-standard notation to represent them.






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






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






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






12. Used for function calls and local variables






13. tab






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






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






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






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






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






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






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






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






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






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






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






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






26. Single letters or digits or special symbols; enclose value in single quotes ('a' '?' '8')






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






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






29. int namespace include using return examples of ___________






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






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






32. Syntax for reading char type variables by extracting one nonwhitespace character extracted at a time






33. newline






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






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






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






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






38. A function that calls itself either directly or indirectly - through another function) - is a ________ function.






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






40. The storage-class specifiers are mutable - auto - ________ - extern and static.






41. A function that calls itself






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






43. The escape sequence ___ when output with cout and the stream insertion operator - causes the cursor to position to the beginning of the next line on the screen.






44. A function that can be used to read character data including whitespace






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






46. Type casting syntax






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






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






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






50. This is used to mark the end of a complete C++ programming statement.







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