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. When the compiler sees this keyword the function call is replaced with a copy of the contents of the function itself.






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






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






4. Associate an identifier with a memory location






5. Use 2 characters to represent one






6. Executable version of program






7. Lists and tables of values can be stored in arrays or __________.






8. To explicitly indicate that a value is to be converted to another type






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






10. Keyword public is a(n) _________






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






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






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






14. The size & shape & color and weight of an object are considered






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






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






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






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






19. C++ programmers concentrate on creating ________ which contain data members and the member functions that manipulate those data members and provide services to clients.






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






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






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






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






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






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






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






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






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






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






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






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






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






33. The stream insertion operator






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






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






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






37. Symbol that denotes an action to be performed






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






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






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






41. The process of analyzing and designing a system from an object-oriented point of view is called ________.






42. * / % + -






43. Used for dynamically allocated variables






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






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






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






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






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






49. The storage-class specifiers are mutable - auto - ________ - extern and static.






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







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