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. Keyword public is a(n) _________






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






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






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






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






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






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






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






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






10. The sign you use for references






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






12. For every opening brace in a C++ program there must be a ______________.






13. You must have a ___________ for every variable you intend to use in a program






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






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






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






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






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






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






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






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






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






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






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






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






26. The stream insertion operator






27. newline






28. Executable version of program






29. data types that refer to numbers with decimals






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






31. Preprocessor directive syntax






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






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






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






35. An expression that has operands with different data types






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






37. A filestream variable that represents the default input source






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






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






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






41. * / % + -






42. Type casting syntax






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






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






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






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






47. The symbol for the binary scope resolution operator






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






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






50. Most calculations are normally performed by ______ statements.







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