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. Naming convention for C++ programs






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






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






4. = & | are examples of ____________.






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






6. The elements of an array are related by the fact that they have the same name and ___________.






7. A ________ program executes before the compiler's translation phase begins.






8. Class members specified as _________ are accessible anywhere an object of the class is in scope.






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






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






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






12. newline






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






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






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






16. A filestream variable that represents the default output device






17. All ______ must be declared before they are used.






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






19. The stream insertion operator






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






21. The sign you use for references






22. Header file that contains commonly performed mathematical functions






23. A memory location with a name and data type - its content may be changed during program execution






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






25. The ________ of an identifier is the portion of the program in which the identifier can be used.






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






27. A recursive function typically has two components: One that provides a means for the recursion to terminate by testing for a(n) ________ case and one that expresses the problem as a recursive call for a slightly simpler problem than the original call






28. When a value of one data type is implicitly (automatically) changed to another data type






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






30. The sign you use for pointers






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






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






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






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






35. Preprocessor directive syntax






36. Symbol that denotes an action to be performed






37. The ________ program combines the output of the compiler with various library functions to produce an executable image.






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






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






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






41. data types that refer to numbers with decimals






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






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






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






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


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






47. Operator with only one operand






48. When the compiler sees this keyword the function call is replaced with a copy of the contents of the function itself.






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






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






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