Answer:
A: True
Explanation:
EDG2020
Answer:
The outputs of the code is
2
0
2
Explanation:
First, I'll arrange the code line by line. While arranging the code, I'll make some corrections
#include <iostream>
using namespace std;
void doSomething();
int main(){
int x = 2;
cout << x <<endl;
doSomething(x);
cout << x << endl;
return 0;
}
void doSomething(int &num)
{
num = 0;
cout << num << endl;
}
At line 6, the value of x which is 2 is printed and the line is terminated to prevent printing of value on the same line. So, the next print statement will start on the next line.
At line 7, the function doSomething () is called.
This statement will execute the instructions in the doSomething () function and print value 0. This line is also terminated.
At line 8, the value of x is printed which is also 2
b. False
The correct answer is False
Explanation:
MTTF stands for Mean Time to Failure and it refers to the average time of a system or equipment before the first failure occurs. Moreover, this term is mainly used for systems that cannot be repaired, this means, the MTTF refers to the specific time a system will work properly before it fails and its useful life ends. In this context, MTTF is not a file format or a term related to files but this is related to the failure rate of computer systems and its useful life, which makes the statement False.