குரூப் 4 -எந்தவித கட்டண பயிற்சி மையத்திற்கு செல்லாமல் படிக்கும் எனது சகோதர சகோதரிகளுக்கு மட்டும்
BREAKING NEWS
22 ஏப்., 2019
TRB-CS-VIP ONLINE COACHING CENTER (QUIZ-3) C++ Programming
TRB-CS-VIP ONLINE COACHING CENTER (QUIZ-4) C++ Programming
TRB-CS-VIP ONLINE COACHING CENTER (QUIZ-4) C++ Programming
Quiz
When a class is derived from another derived class, the newly derived class
may have more liberal access to a base class member than its immediate predecessor
may have the same type of access to a base class member as its immediate predecessor
may have more limited access to a base class member than its immediate predecessor
both (b) and (c)
If you assign a default value to any variable in a function prototype's parameter list, then _____
all other parameters in the function prototype must have default values
all parameters to the right of that variable must have default values
all parameters to the left of that variable must have default values
no other parameters in that prototype can have default values
The dot operator (or class member access operator) connects the following two entities (reading from left to right):
a class member and a class object
a class object and a class
a class and a member of that class
a class object and a member of that class
Which of the following calls a function named displayName, passing it no actual arguments?
call displayName;
call displayName ();
displayName;
displayName();
The feature that allows you to use the same function name for separate functions that have different argument lists is called _____
overriding
overloading
constructing
destructing
Which of the following are valid characters constants?
'\n'
'\\'
'\0'
All of the above
With a template class, _____ type is generic
no
exactly one
at least one
at most one
If you want to use a class to define objects in many different programs, you should define the class in a C++ _____ file
header
program
source
text
Functions that returns information about an object's state can be classified as ________
inspector functions
mutator functions
auxiliary functions
manager functions
An auxiliary function _____
return information about data members
changes the state of data members
performs an action or service
creates and destroys objects
To create and execute a C++ program, you need to have access to
a C++ compiler
a C++ translator
an object code editor
a text editor
If you omit any constructor argument when you instantiate an object, you must use default values______
for all parameters to the constructor
for all parameters to the right of the argument
for all parameters to the left of the argument
for no other parameters
Many programmers separate a class into two files: _____
one for the declarations and one for the implementations
one for the void functions and one for the other functions
one for the public data and one for the private data
one for the primary functions and one for the auxiliary functions
Files whose names end in .h are called _____ files
handy
header
helper
helping
When accessing a structure member, the identifier to the left of the dot operator is the name of
a structure member
a structure tag
a structure variable
the keyword struct
116 . Assume that a program contains a programmer-defined void function. When C++ encounters the function's closing brace (}), C++ returns to the statement _____
immediately above the statement that called the function
that called the function
immediately below the statement that called the function
a structure member
Inheritance occurs when a class adopts all the traits of _________
an object
a parent class
a variable
a function
Template classes that have already been written to perform common class tasks are called _____
container classes
receptacle classes
repository classes
alembic classes
A _____ is a single item of information about a person, place, or thing
data file
field
program file
record
Which (if any) of the following is NOT a programmer-defined type
an array
a structure
a class
All of the above are programmer-defined types
Assume a program contains a void function named displayName, which requires no formal parameters. Which of the following is a correct function prototype for this function?
displayName;
displayName(void);
void displayName;
void displayName();
You declare a function with a function _____, which is typically entered at the beginning of the program, below the #include directives
call
prototype declaration
definition
pointer
The function whose prototype is Item getData(void); returns _____
the address of a structure
a copy of a structure
a pointer to a structure
nothing
Using new may result in less _____ memory than using an array
கருத்துகள் இல்லை:
கருத்துரையிடுக