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. Two slash marks ( // ) indicate __________ of a comment






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






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






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






5. When you create a ___________________in the base class and then call it using an object the function will know to look in the inherited class for the specifics of that function.






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






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






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






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






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






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






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






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






14. An expression that has operands with different data types






15. The stream extraction operator






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






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






18. Most calculations are normally performed by ______ statements.






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






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






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


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






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






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






25. Objects have the property of ________although objects may know how to communicate with one another across well-defined interfaces - they normally are not allowed to know how other objects are implemented.






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






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






28. Use 2 characters to represent one






29. Sets floating-point values to a fixed decimal format






30. int namespace include using return examples of ___________






31. data types that refer to numbers with decimals






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






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






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






35. It is possible to have various functions with the same name that operate on different types or numbers of arguments. This is called function ________.






36. Keyword public is a(n) _________






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






38. newline






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






40. Whole numbers - no decimals and no commas included






41. Associate an identifier with a memory location






42. Creates a copy of a string.






43. A nonmember function must be declared as a(n) __________ of a class to have access to that class's private data members.






44. The stream insertion operator






45. Operator with only one operand






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






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






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






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






50. Symbol that denotes an action to be performed