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






2. The symbol for the binary scope resolution operator






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






4. Header file that contains commonly performed mathematical functions






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






6. Causes the program exits the loop - skipping over the rest of the commands and starts executing again with the next thing outside the loop.






7. Preprocessor directive syntax






8. The ________ of an identifier is the portion of the program in which the identifier can be used.






9. Operator with only one operand






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






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






12. Naming convention for C++ programs






13. All ______ must be declared before they are used.






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






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






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






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






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






19. Associate an identifier with a memory location






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






21. Syntax for named constant declaration






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






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






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






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






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






27. A________ allows the compiler to check the number & types and order of the arguments passed to a function.






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






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. Meaning of the instructions in the language; compiler cannot find these errors - often called logic errors






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






32. A filestream variable that represents the default input source






33. The stream insertion operator






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






35. data types that refer to numbers with decimals






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






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






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






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






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






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






42. Used for dynamically allocated variables






43. The process of placing the elements of an array in order is called ________ the array.






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






45. The sign you use for pointers






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






47. Whole numbers - no decimals and no commas included






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






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






50. A filestream variable that represents the default output device






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