Questions
Which of the following variables in C++ must be initialised at the time of declaration?
- Static variable
- Reference variable
- Automatic variable
- Global variable
- Pointer variable
Which of the following is a manipulator in C++ used to format the data display?
- Malloc
- New
- Delete
- Set
- If
Which of the following data types in C++ provides a way for attaching names to numbers, thereby increasing comprehensibility of the code?
- Array
- Functions
- Enumeration
- Structure
- Union
Which of the following functions is not in the scope of the class to which it has been declared?
- Inline function
- Static function
- Friend function
- Virtual function
- Global function
Which of the following member dereferencing operators is used to access a member using a pointer to the object and a pointer to that member?
- ::*
- *
- ->*
- ==
- ++
Which of the following parts in general structure of C++ program comes first while writing a program in C++?
- Class declaration
- Class member function definition
- Preprocessor directives
- The main() function program
- The closing of the main() program
Which of the following user defined types in C++ is used to give new names to existing data type and allows the user to declare an identifier to represent an existing data type?
- Structure
- Typedef
- Enumeration
- Union
- Class
Which of the following string handling functions in C++ is used to convert a string into upper case?
- strcat()
- strlwr()
- strrev()
- strupr()
- strlen()