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






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






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






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






5. The stream extraction operator






6. Message displayed to the screen asking user for input; generated with an output statement






7. Type casting syntax






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






9. Syntax for named constant declaration






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






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






12. A member function should be declared static if it does not access __________ class members.






13. Header file that contains commonly performed mathematical functions






14. Identifier or expression that is part of the calculation to be performed






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






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






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






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






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






20. Associate an identifier with a memory location






21. Two slash marks ( // ) indicate __________ of a comment






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






23. The __________ operator reclaims memory previously allocated by new.






24. = & | are examples of ____________.






25. The stream insertion operator






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






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






28. Operator with only one operand






29. The sign you use for pointers






30. A function that calls itself






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






32. The ________ program combines the output of the compiler with various library functions to produce an executable image.






33. The_________selection statement is used to execute one action when a condition is TRue or a different action when that condition is false.






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






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






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






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






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






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






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






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






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






43. Names of things that are used in a program - can apply to variables & constants and functions






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






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






46. A filestream variable that represents the default output device






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






48. Preprocessor directive syntax






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






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







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