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. Most calculations are normally performed by ______ statements.






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






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






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






5. Class members specified as _________ are accessible only to member functions of the class and friends of the class.






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






7. The stream extraction operator






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






9. This happens when too much memory is pushed onto the stack and overflows to other areas of memory.






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






11. Characters used to separate symbols or reserved words or identifiers and statements






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






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






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


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






16. A file must be ________ before data can be written to or read from it.






17. Allows the programmer to store a value in a variable






18. Initializers __________ must be used to initialize constant members of a class.






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






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 escape sequence n represents the _________ character which causes the cursor to position to the beginning of the next line on the screen.






22. newline






23. The symbol for the binary scope resolution operator






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






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






26. C++ programs are normally typed into a computer using a(n) ________ program.






27. Type casting syntax






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






29. The idea that you can call the same function and the output will depend on the type of object you're using.






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






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






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






33. Symbol that denotes an action to be performed






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






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






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






37. Keyword public is a(n) _________






38. Return type _________ indicates that a function will perform a task but will not return any information when it completes its task.






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






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






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






42. Preprocessor directive syntax






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






44. * / % + -






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






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






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






48. Creates a copy of a string.






49. Used for dynamically allocated variables






50. For a local variable in a function to retain its value between calls to the function it must be declared with the ________ storage-class specifier.







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