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. A variable declared outside any block or function is a ________ variable.






2. Operator with two operands






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






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






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






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






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






8. Operator with only one operand






9. An array that uses two subscripts is referred to as a(n) _________ array.






10. data types that refer to numbers with decimals






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






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






13. Use 2 characters to represent one






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






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






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






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






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






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






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






21. OOD also takes advantage of ________ relationships where new classes of objects are derived by absorbing characteristics of existing classes - then adding unique characteristics of their own.






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






23. Associate an identifier with a memory location






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






25. Used for function calls and local variables






26. Executable version of program






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






28. A filestream variable that represents the default output device






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






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






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






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






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






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






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






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






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






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






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






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






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






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






43. Creates a copy of a string.






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






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






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






47. Whole numbers - no decimals and no commas included






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






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






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







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