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. To explicitly indicate that a value is to be converted to another type






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






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






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






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






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






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






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






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






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






11. Type casting syntax






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






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






14. Class members specified as _________ are accessible anywhere an object of the class is in scope.






15. The stream insertion operator






16. A variable that holds the address of another variable.






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






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






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






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






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






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






23. When the compiler sees this keyword the function call is replaced with a copy of the contents of the function itself.






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






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


26. Creates a copy of a string.






27. Syntax for named constant declaration






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






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






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






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






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






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






34. Grammar rules of the language; compiler will try to identify and locate syntax errors






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






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






37. Program components in C++ are called functions and ________.






38. The symbol for the binary scope resolution operator






39. = & | are examples of ____________.






40. Associate an identifier with a memory location






41. Operator with only one operand






42. Member objects are constructed __________ their enclosing class object.






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






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






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






46. All C++ Variables are_________.






47. Used for function calls and local variables






48. Variables declared in a block or in the parameter list of a function are assumed to be of storage class ________ unless specified otherwise.






49. Classes can have relationships with other classes. These relationships are called ________.






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







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