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. This allows the writer to create functions of the same name as long as they have different parameters or different quantities of parameters.






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






3. tab






4. All C++ Variables are_________.






5. You must have a ___________ for every variable you intend to use in a program






6. The six possible scopes of an identifier are ________ - file scope - block scope - function-prototype scope - class scope - namespace scope .






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






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






9. Header file that contains commonly performed mathematical functions






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






11. * / % + -






12. Creates a copy of a string.






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






14. Used for function calls and local variables






15. Whole numbers - no decimals and no commas included






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






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






18. Operator with only one operand






19. A function that calls itself






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






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






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






23. Naming convention for C++ programs






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






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






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






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


28. A constant object must be __________; it cannot be modified after it is created.






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






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






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






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






33. directive A statement that starts with a # is called a ____________.






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






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






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






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






38. The stream extraction operator






39. A function that calls itself either directly or indirectly - through another function) - is a ________ function.






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






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






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






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






44. Type casting syntax






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






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






47. The source-code file and any other files that use a class can include the class's header file via an _________ preprocessor directive.






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






49. A type of pointer that can point at objects of any data type.






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