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. Names of things that are used in a program - can apply to variables & constants and functions






2. The symbol for the binary scope resolution operator






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






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






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






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






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






8. A __________ data member represents class-wide information.






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






10. Function ________ is used to produce random numbers.






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






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






13. A function is invoked with a ________.






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






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






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






17. A function that calls itself






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


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






20. Default name of executable file






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






22. Used for function calls and local variables






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






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






25. Executable version of program






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






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






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






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






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






31. Class members specified as _________ are accessible only to member functions of the class and friends of the class.






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






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






34. The stream extraction operator






35. Operator with two operands






36. Naming convention for C++ programs






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






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






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






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






41. The sign you use for references






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






43. An expression that has operands with different data types






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






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






46. Function _________ from the <string> library reads characters until a newline character is encountered - then copies those characters into the specified string.






47. The stream insertion operator






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






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






50. Used for dynamically allocated variables