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. Associate an identifier with a memory location






2. Whole numbers - no decimals and no commas included






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






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






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






6. __________ can be used to assign an object of a class to another object of the same class.






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






8. A function is invoked with a ________.






9. The escape sequence n represents the _________ character which causes the cursor to position to the beginning of the next line on the screen.






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






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






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






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






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






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






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






17. = & | are examples of ____________.






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






19. The sign you use for references






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






21. Use 2 characters to represent one






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






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






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






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






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






27. tab






28. Comments do not cause the computer to print the text after the____ on the screen when the program is executed.






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






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






31. A memory location with a name and data type and a value - its content (value) cannot be changed during program execution






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






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






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






35. All C++ Variables are_________.






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






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






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






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






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






41. int namespace include using return examples of ___________






42. Used for function calls and local variables






43. Most calculations are normally performed by ______ statements.






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






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






46. Executable version of program






47. Can be used as a compound "if" statement. it includes a number of different possibilities and directions rather than a single test.






48. The symbol for the binary scope resolution operator






49. All programs can be written in terms of three types of control structures:Sequence - ________and Repetition.






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