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


2. You can declare default values for a function in the ____________________.






3. Type casting syntax






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






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






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






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






8. The process of determining if an array contains a particular key value is called _________ the array.






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






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






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






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






13. newline






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






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






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






17. int namespace include using return examples of ___________






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






19. Function ________ is used to set the random number seed to randomize a program.






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






21. The keyword ________ is used in a function header to indicate that a function does not return a value or to indicate that a function contains no parameters.






22. The ________ statement in a called function passes the value of an expression back to the calling function.






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






24. Syntax for named constant declaration






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






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






27. Use 2 characters to represent one






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






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






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






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






32. The modulus operator (%) can be used only with __________.






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






34. Keyword public is a(n) _________






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






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






37. A variable that is known only within the function in which it is defined is called a ________.






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






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






40. Associate an identifier with a memory location






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






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






43. Executable version of program






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






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






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






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






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






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






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







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