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. Most calculations are normally performed by ______ statements.






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






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






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






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






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






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






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






9. Use 2 characters to represent one






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






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






12. int namespace include using return examples of ___________






13. Naming convention for C++ programs






14. The conditional operator. it evaluates a line of code and returns one thing if the condition is true and a different thing if the condition is false.






15. The keyword __________ specifies that an object or variable is not modifiable after it is initialized.






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






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






18. Default name of executable file






19. = & | are examples of ____________.






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






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






22. A filestream variable that represents the default output device






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






24. This happens when too much memory is pushed onto the stack and overflows to other areas of memory.






25. Associate an identifier with a memory location






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






27. Preprocessor directive syntax






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






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






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






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


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






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






34. A filestream variable that represents the default input source






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






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






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






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






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






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






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






42. newline






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






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






45. The sign you use for pointers






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






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






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






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






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







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