Answer: c) Return on investment (ROI)
Explanation:
Return on investment (ROI) is defined as term that measures the performance of single investment efficiency or numerous investment plans. It evaluates and assess plan of investment in form of ratio or percentage.
- Return of investment(ROI) plan is calculated through dividing the return of investment by investment cost.
- Other options are incorrect because cash return on capital invested ,carried forward(CF) and BI (business intelligence) are not used for calculating the investment plan through cost and benefit.Thus, the correct option is option(c)
Answer:
The answer to this question is given below in the explanation section.
Explanation:
The correct answer to this question is given below:
This is a python code when you will write it into IDLE and press enter.
It will print six as a digit on the screen such as below:
>>>print(1 + 5)
6
Because, when you will give two integer parameters and a "+" operator, then the print function will add the two-parameter and print the result of the sum (5 and 1) on screen. So this code will print 6 as a result of this code on the screen.
Answer:
B. f2.i is 1 f2.s is 2
Explanation:
In Java there are two type of variables, first is static variables and second is instance variable. static variable class variable which means you can have only one variable for all instance of that class. But instance variable will only for instance/object of that class.
For this code example, i is and instance variable, for every instance of class Foo, there will be separate i variable. but s is a static variable and that will be associated with class.
So in this program the first instance incremented the s variable and changed its value to 1 as int's default value is 0 in the constructor. So for second instance, the s value changed to 2 that's why it prints f2.s as 2 and as we know i is instance variable and every instance of foo class have there own copy of i variable so it's value will remain same for every instance.
Answer:
Option (1) the is correct answer for the above question.
Explanation:
"DDos" stands for distributed denial-of-service. It is a type of attack which affects the network route. It disturbs the normal route like a traffic Jam. It operators from some hosts point and act after getting access to the system in an unauthorized way.
It attacks to disturb the service provided by the other system. It authorized the hosts' system and entered into the system to get disturb the routine of the system.
- Option 1 also suggests the same hence it is a correct option.
- While option 2 suggests that it is a software, but it is a concept that means to disturb the normal routine of the system and he can get that information access which is transmitted over the signals. hence option 2 is not fit for the question.
<span>public static String compress (String original)
{
StringBuilder compressed = new StringBuilder();
char letter = 0;
int count = 1;
for (int i = 0; i < original.length(); i++) {
if (letter == original.charAt(i)) {
count = count + 1;
}
else {
compressed = count !=1 ? compressed.append(count) : compressed;
compressed.append(letter);
letter = original.charAt(i);
count = 1;
}
}
compressed = count !=1 ? compressed.append(count) : compressed;
compressed.append(letter);
return compressed.toString();
}</span>