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. The four areas that a program uses memory on are: the codes area - the _______ area - the stack and the heap.






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






3. A member function should be declared static if it does not access __________ class members.






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






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






6. The __________ operator reclaims memory previously allocated by new.






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






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






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






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






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






12. Function ________ is used to produce random numbers.






13. The sign you use for pointers






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






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






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






17. data types that refer to numbers with decimals






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






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






20. A filestream variable that represents the default input source






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






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






23. * / % + -






24. Used for function calls and local variables






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






26. Naming convention for C++ programs






27. Use 2 characters to represent one






28. Creates a copy of a string.






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


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






31. Preprocessor directive syntax






32. Most calculations are normally performed by ______ statements.






33. Compares two strings and returns 0 if they are equal.






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






35. newline






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






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






38. The sign you use for references






39. Names of things that are used in a program - can apply to variables & constants and functions






40. Lists and tables of values can be stored in arrays or __________.






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






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






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






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






45. Symbol that denotes an action to be performed






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






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






48. Whole numbers - no decimals and no commas included






49. When it is not known in advance how many times a set of statements will be repeated a _________value can be used to terminate the repetition.






50. A function that calls itself