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 idea that you can call the same function and the output will depend on the type of object you're using.






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






3. Function ________ is used to produce random numbers.






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






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






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






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






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






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






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






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






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






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






14. newline






15. The stream insertion operator






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






17. int namespace include using return examples of ___________






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






19. Grammar rules of the language; compiler will try to identify and locate syntax errors






20. The elements of an array are related by the fact that they have the same name and ___________.






21. Associate an identifier with a memory location






22. Syntax for named constant declaration






23. Type casting syntax






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






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






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






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






28. Used for dynamically allocated variables






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






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






31. Words that are used for special purposes in a program






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






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






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






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






36. Single letters or digits or special symbols; enclose value in single quotes ('a' '?' '8')






37. A sequence of operands and operators that describe a calculation to be performed






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






39. A variable that holds the address of another variable.






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






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






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






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






44. Used for function calls and local variables






45. An expression that has operands with different data types






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






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






48. All ______ must be declared before they are used.






49. To allow file access in a program you must #include this header file.






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