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. The_________selection statement is used to execute one action when a condition is TRue or a different action when that condition is false.






2. Use 2 characters to represent one






3. Used for function calls and local variables






4. An expression that has operands with different data types






5. A function that calls itself either directly or indirectly - through another function) - is a ________ function.






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






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






8. The idea that you can call the same function and the output will depend on the type of object you're using.






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






10. To write data to a file you define an object of which one of the following






11. The _____ causes the contents of another file to be inserted into a program.






12. These are data items whose values do not change while the program is running






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






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






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






16. Operator with only one operand






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






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






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






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






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






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






23. Preprocessor directive syntax






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






25. Every C++ program begins execution at the function _________.






26. Used for dynamically allocated variables






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






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






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






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






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






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






33. A pointer is a variable that contains as its value the____________ of another variable.






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






35. An object's non-static member functions have access to a "self pointer" to the object called the __________ pointer.






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






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






38. A function is invoked with a ________.






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






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






41. Default name of executable file






42. A variable declared outside any block or function is a ________ variable.






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






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






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






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






47. A filestream variable that represents the default output device






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






49. A file must be ________ before data can be written to or read from it.






50. The six possible scopes of an identifier are ________ - file scope - block scope - function-prototype scope - class scope - namespace scope .







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