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 __________ operator reclaims memory previously allocated by new.






2. A filestream variable that represents the default output device






3. newline






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






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






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






7. Returns the length of a string excluding the null terminator.






8. A variable that is known only within the function in which it is defined is called a ________.






9. Use 2 characters to represent one






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






11. An expression that has operands with different data types






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






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






14. Naming convention for C++ programs






15. Smallest individual unit of a programming language - special symbols or word symbols or identifiers






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






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






18. Syntax for named constant declaration






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






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






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






22. Used for function calls and local variables






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






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






25. Keyword public is a(n) _________






26. A human readable file that contains C++ program






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






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






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






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






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






32. The stream extraction operator






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






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






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






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






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






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






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






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






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






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


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






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






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






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






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






48. * / % + -






49. Associate an identifier with a memory location






50. Whole numbers - no decimals and no commas included







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