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. Nonexecutable statements that are included in a program to provide information about what the program does etc.






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






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






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






5. The sign you use for references






6. Operator with two operands






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






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






9. A nonmember function must be declared as a(n) __________ of a class to have access to that class's private data members.






10. Storage-class specifier ________ is a recommendation to the compiler to store a variable in one of the computer's registers.






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






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






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






14. A filestream variable that represents the default output device






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






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






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






18. Function ________ is used to set the random number seed to randomize a program.






19. Most calculations are normally performed by ______ statements.






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






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






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






23. The symbol for the binary scope resolution operator






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






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






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






27. Type casting syntax






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






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






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






31. Causes the program to immediately goes back to the top of the loop. the remainder of the statements in the loop are ignored for this current iteration.






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






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






34. Manipulator that causes the insertion point (cursor) to move to the beginning of the next line

Warning: Invalid argument supplied for foreach() in /var/www/html/basicversity.com/show_quiz.php on line 183


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






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






37. A function that calls itself






38. Header file that contains commonly performed mathematical functions






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






40. __________ can be used to assign an object of a class to another object of the same class.






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






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






43. Repeating a set of instructions a specific number of times is called_________repetition.






44. Creates a copy of a string.






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






46. The stream extraction operator






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






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






49. All C++ Variables are_________.






50. Function ________ is used to produce random numbers.







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