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. In inheritance the ____________ is the class the receives the inherited members.






2. Keyword public is a(n) _________






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






4. You can reassign the operator features in C++ to do things other than what they would do naturally. This is called ____________






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






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






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






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






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






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






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






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






13. The symbol for the binary scope resolution operator






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






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






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






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






18. Nonexecutable statements that are included in a program to provide information about what the program does etc.






19. Header file that contains commonly performed mathematical functions






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






21. The stream extraction operator






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






23. If a member initializer is not provided for a member object of a class the object's __________ is called.






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






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






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






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






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






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






30. data types that refer to numbers with decimals






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






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






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






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






35. = & | are examples of ____________.






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






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






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






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






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






41. Associate an identifier with a memory location






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






43. Most calculations are normally performed by ______ statements.






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






45. When a value of one data type is implicitly (automatically) changed to another data type






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






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






48. The modulus operator (%) can be used only with __________.






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






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



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