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. Used for function calls and local variables






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






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






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






5. Symbol that denotes an action to be performed






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






7. All C++ Variables are_________.






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






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






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






11. newline






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






13. The stream extraction operator






14. Type casting syntax






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






16. Executable version of program






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






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


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






20. The keyword __________ specifies that an object or variable is not modifiable after it is initialized.






21. Every C++ program begins execution at the function _________.






22. Sets floating-point values to a fixed decimal format






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






24. The ________ enables access to a global variable with the same name as a variable in the current scope.






25. Operator with only one operand






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






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






28. A nonmember function must be declared as a(n) __________ of a class to have access to that class's private data members.






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






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






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






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






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






34. C++ programmers concentrate on creating ________ which contain data members and the member functions that manipulate those data members and provide services to clients.






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






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






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






38. For every opening brace in a C++ program there must be a ______________.






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






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






41. Whole numbers - no decimals and no commas included






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






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






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






45. data types that refer to numbers with decimals






46. A sequence of operands and operators that describe a calculation to be performed






47. Associate an identifier with a memory location






48. The three ways to return control from a called function to a caller are ________ - return expression and encounter.






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






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







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