Home > C++ Programming > Quizzes > C++ Programming Basics
C++ Programming Basics
Fast practice, instant feedback. Timer auto-submits when time’s up.
Avg score: 78% Most missed: “Symbol that denotes an action to be performed”
C++ Programming Basics
Time left 00:00
25 Questions

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

2. Preprocessor directive syntax

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

4. Whole numbers - no decimals and no commas included

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

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

7. Syntax for named constant declaration

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

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

10. A recursive function typically has two components: One that provides a means for the recursion to terminate by testing for a(n) ________ case and one that expresses the problem as a recursive call for a slightly simpler problem than the original call

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

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

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

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

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

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

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

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

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

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

21. Used for function calls and local variables

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

23. The sign you use for pointers

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

25. An expression that has operands with different data types