Answer:
None of the mentioned options
Explanation:
- If we define a method in a derived class with same declaration type as that of base class then it is said to be overriding a function which behaves differently which will depend on the object which is calling the method.
- Option a,b and c are not any kind of methods we implement using coding.
- Option d is done when number or data types of parameters are different than the declaration of the base type.
Answer:
The output is: Your cost is 100
Explanation:
Given
The above code snippet
and

Required
Determine the output of the code
if cost < 70 or cost > 150
The above condition checks if cost is less than 70 or cost is greater than 150
This condition is false because 100 is neither less than 70 nor is it greater than 150
So, the else statement will be executed.
discount = cost
Which means
discount = 100
So, the print instruction will print: Your cost is 100
Explanation:
#include <iostream.h>
#inlcude<conion.h>
void main()
{
int count, x;
clrscr();
cout<<"Enter the count:";
cin>> count;
cout<<"Ready!\n";
for(x=count;x>0;x--)
{
cout<<x<<"\n";
}
cout<<"Start";
getche();
}
This is a simple program where the output is expected to be in reverse order. So we run a for loop starting from the count and decrements the counter by 1 every time when the loop runs and print the value. So to print the output in "new line" we include "\n".
McAfee!!! you should get it