ExamVeda
Login
Home
71
A translator that notes whether you have used a language correctly may be called a _____
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
72
The feature in object-oriented programming that allows the same operation to be carried out differently, depending on the object, is_____
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
73
When an argument is passed by reference,
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
74
The process of extracting the relevant attributes of an object is known as
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
75
Which of the following statements uses the computer's clock to initialize the random number generator?
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
76
A static data member is given a value
Discuss
Answer & Solution
Answer: Option B
Solution:
Static data members in C++ are special variables associated with a class, not individual objects of that class.
This means there's only one copy of the static member shared by all objects of the class.
Because of this shared nature, you can't initialize them directly within the class declaration like regular member variables.
Instead, you need to give them a value outside the class definition.
This is done typically by providing an initialization outside the class, often in the same header file or a separate source file.
Therefore, the correct answer is that a static data member is given a value outside the class definition.
77
You must provide a constructor for a derived class
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
78
If you want to override constructor default values for an object you are instantiating, you must also override
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
79
To use one of the C++ built-in mathematical functions, you must include the _____ header file in your program
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
80
Errors in a program are called
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board