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 constant object must be __________; it cannot be modified after it is created.






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






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


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






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






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






7. An expression that has operands with different data types






8. Default name of executable file






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






10. The six possible scopes of an identifier are ________ - file scope - block scope - function-prototype scope - class scope - namespace scope .






11. The _____ causes the contents of another file to be inserted into a program.






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






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






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






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






16. * / % + -






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






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






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






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






21. The stream extraction operator






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






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






24. The stream insertion operator






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






26. Symbol that denotes an action to be performed






27. tab






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






29. Header file that contains commonly performed mathematical functions






30. Used for dynamically allocated variables






31. Variables declared in a block or in the parameter list of a function are assumed to be of storage class ________ unless specified otherwise.






32. The number used to refer to a particular element of an array is called its ________.






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






34. Function ________ is used to produce random numbers.






35. The source-code file and any other files that use a class can include the class's header file via an _________ preprocessor directive.






36. The _________ begins the body of every function and the _________ ends the body of every function.






37. A pointer is a variable that contains as its value the____________ of another variable.






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






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






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






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






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






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






44. Program components in C++ are called functions and ________.






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






46. Syntax for named constant declaration






47. newline






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






49. = & | are examples of ____________.






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







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