Token Keyword Identifiers in C++
Token Keyword Identifiers in C++
C++ provides various types of …………………… tokens that include keywords, identifiers, constants, strings and
operators.
2. …………………. refer to the names of variables, functions, arrays, classes etc. created by the programmer.
3. ………………….. are explicitly reserved identifiers and cannot be used as names for the program variables or other
user-defined program elements.
4. State whether the following statements are True or False for C++ identifiers.
A) i-True, ii-True, iii-False B) i-True, ii-False, iii-True C) i-True, ii-False, iii-False D) i-True, ii-True, iii-True
5. In C++, ………………….. refer to fixed values that do not change during the execution of a program.
7. The ……………………. data type was used to specify the return type of a function when it is not returning any value.
8. A ………………….. can be assigned a pointer value of any basic data type, but it may not de-referenced.
10. Which of the following is/are the derived data types in C++.
A) i, ii and iii only B) ii, iii and iv only C) i, iii and iv only D) All i, ii, iii and iv
11. In the case of ……………………… in C++, we can not modify the address that the pointer is initialized.
12. In the case of ………………………. in C++, contents of what it points to cannot be changed.
13. Which of the following is the correct way of declaring constant pointer in C++?
A) int * const pointer1=&p; B) const * int pointer1=&p; C) int const * pointer1=&p; D) int pointer1 * const=&p
15. We can create …………………….. in C++ using the qualifier constant and defining a set of integer constant using enum
keywords.
16. The …………………… are just like variables except that their values cannot be changed.
17. ………………… are widely used in C++ for memory management and to achieve polymorphism.
18. C++ permits initialization of the variables at run time which is referred to as ………………. initialization.
19. …………………….. used in C++ provides an alias (alternative name) for a previously defined variable.
11. A) constant pointer 12. B) pointer to a constant 13. B) char * const pointer1=”OK”;
14. C) int const * pointer1=&p; 15. C) symbolic constant 16. D) named constant 17. A) Pointers