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. An operator that can only be used with int values. result will always be an int.






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






3. Used for dynamically allocated variables






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






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






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






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






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






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






10. This is used to mark the end of a complete C++ programming statement.






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






12. The sign you use for references






13. When it is not known in advance how many times a set of statements will be repeated a _________value can be used to terminate the repetition.






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






15. int namespace include using return examples of ___________






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






17. Member objects are constructed __________ their enclosing class object.






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






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






20. The address-of operator. it is used to assign pointers and to print the address of variables.






21. Every C++ statement ends with a(n) _________.






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






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






24. Use 2 characters to represent one






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






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






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






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






29. Creates a copy of a string.






30. The four areas that a program uses memory on are: the codes area - the _______ area - the stack and the heap.






31. The stream insertion operator






32. Causes the program exits the loop - skipping over the rest of the commands and starts executing again with the next thing outside the loop.






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






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






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






36. Header file that contains commonly performed mathematical functions






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






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






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






40. newline






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






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






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






44. The symbol for the binary scope resolution operator






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






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






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






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






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






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







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