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. Sets floating-point values to a fixed decimal format






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






3. A function that can be used to read character data including whitespace






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






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






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






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






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






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






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






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






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






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






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






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






16. Keyword public is a(n) _________






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






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






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






20. A ________ program executes before the compiler's translation phase begins.






21. Class members specified as _________ are accessible only to member functions of the class and friends of the class.






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






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






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






25. The only integer that can be assigned directly to a pointer is_____________.






26. The elements of an array are related by the fact that they have the same name and ___________.






27. A function that calls itself






28. Naming convention for C++ programs






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






30. = & | are examples of ____________.






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






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






33. Names of things that are used in a program - can apply to variables & constants and functions






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






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






36. The new operator dynamically allocates memory for an object of a specified type and returns a __________ to that type.






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






39. Used for dynamically allocated variables






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






41. Identifier or expression that is part of the calculation to be performed






42. All C++ Variables are_________.






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






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






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






46. The sign you use for pointers






47. Function ________ is used to produce random numbers.






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






49. A memory location with a name and data type - its content may be changed during program execution






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







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