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. To write data to a file you define an object of which one of the following






2. Creates a copy of a string.






3. Objects have the property of ________although objects may know how to communicate with one another across well-defined interfaces - they normally are not allowed to know how other objects are implemented.






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






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






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






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






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






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






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


11. Repeating a set of instructions a specific number of times is called_________repetition.






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






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






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






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






16. You can declare default values for a function in the ____________________.






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






18. Every C++ statement ends with a(n) _________.






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






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






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






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






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. Function ________ is used to set the random number seed to randomize a program.






25. Associate an identifier with a memory location






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






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






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






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






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






31. The symbol for the binary scope resolution operator






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






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






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






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






36. The sign you use for pointers






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






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






39. Operator with only one operand






40. Naming convention for C++ programs






41. The stream extraction operator






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






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






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






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






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






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






48. Keyword public is a(n) _________






49. The stream insertion operator






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






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