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. Operator with two operands






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






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






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






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






6. The escape sequence n represents the _________ character which causes the cursor to position to the beginning of the next line on the screen.






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






8. Whole numbers - no decimals and no commas included






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






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






11. The address-of operator. it is used to assign pointers and to print the address of variables.






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






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






14. Creates a copy of a string.






15. Preprocessor directive syntax






16. Keyword public is a(n) _________






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






18. A C++ statement that makes a decision is ______.






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






20. Naming convention for C++ programs






21. A function is invoked with a ________.






22. A function ________ enables a single function to be defined to perform a task on many different data types.






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






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






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


26. Syntax for named constant declaration






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






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






29. The stream insertion operator






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






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






32. Grammar rules of the language; compiler will try to identify and locate syntax errors






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






34. A filestream variable that represents the default input source






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






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






37. An expression that has operands with different data types






38. The four areas that a program uses memory on are: the codes area - the _______ area - the stack and the heap.






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






40. Used for dynamically allocated variables






41. A filestream variable that represents the default output device






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






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






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






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






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






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






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






49. All C++ Variables are_________.






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







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