Answer:
C. FIFO
Explanation:
The first-in, first-out (FIFO) page replacement algorithm is a low-overhead algorithm that requires work on the part of the operating system. On a page fault, the frame that has been in memory the longest is replaced.
Using FIFO algorithm implies that
a page which was brought into memory first will be removed first since variable was initialized very early. it is in the set of first in pages that will be removed.
It is the simplest page replacement algorithm. The operating system keeps track of all pages in the memory in a queue, the oldest page is in the front of the queue. When a page needs to be replaced page in the front of the queue is selected for removal that is first in first out.
A memory page containing a heavily used variable that was initialized very early and is in constant use is removed, then the page replacement algorithm used is called First In First Out.
Answer:
The answer to this question is given below in the explanation section.
Explanation:
I consider myself a programming object, then the following are my properties and methods.
Properties (represents the features)
- name.
- height.
- weight.
- skin color.
- eye color,
- hair style
Methods (represents the behavior)
- Walk.
- Eat,
- Listen
- Speak
- Drink
Answer:
<h2>Option B: #VALUE</h2>
is the correct answer.
Explanation:
<h3>Reasons of #VALUE error:</h3>
- When cells are not given the expected type of value.
- If cells are left blank unnoticeable or for giving a null value.
- For entering dates and other numerical data in text form.
<h3>Correcting and fixing #VALUE error:</h3>
This type of error can only be fixed by finding the cell in which there is wrong data entered and correct it.
Fixing the #VALUE error is tricky as some functions automatically ignore the data that is invalid.
<h3>EXAMPLE:</h3>
- Suppose a cell contains the value as cost of the object and in order to make it 0, NA is inserted into the cell.
- While making total of all the costs, that particular cell might cause #VALUE error.
- Following image attach will help you clear the concept.
I hope it will help you!
Answer:
Please find the detailed answer as follows:
Explanation:
Long-term average cell rate is also called as sustained cell rate(SCR). It can be defined as the maximum average cell rate in a log time period(T).
The relation among the SCR, Average cell rate and Peak cell rate is as follows:
Avg.cell rate ≤ SCR ≤ PCR
If the source producing fixed-length cells at constant rate, then the long-term average cell rate will be same as peak cell rate(PCR).
Answer:
class TestPerson : public Person {
private:
string test_name;
int test_age;
char test_gender;
float test_height;
public:
TestPerson (string name, int age, char gender, float height) : Person(name, age, gender, height) {
this -> test_name = name;
this -> test_age = age;
this -> test_gender = gender;
this -> test_height = height;
}
void testSetName() {
test_name = "qwerty";
setName(test_name);
if (name.compare(test_name) == 0)
cout << "Test passed";
else
cout << "Test failed";
}
void testSetAge() {
test_age = 999;
setAge(test_age);
if (age == test_age)
cout << "Test passed";
else
cout << "Test failed";
}
void testSetGender() {
test_gender = 'X';
setGender(test_gender);
if (gender == test_gender)
cout << "Test passed";
else
cout << "Test failed";
}
void testSetHeight() {
test_height = 100.563f;
setHeight(test_height);
if (height == test_height)
cout << "Test passed";
else
cout << "Test failed";
}
void testGetName() {
if (getName().compare(test_name) == 0)
cout << "Test passed";
else
cout << "Test failed";
}
void testGetAge() {
if (getAge() == test_age)
cout << "Test passed";
else
cout << "Test failed";
}
void testGetGender() {
if (getGender() == test_gender)
cout << "Test passed";
else
cout << "Test failed";
}
void testGetHeight() {
if (getHeight() == test_height)
cout << "Test passed";
else
cout << "Test failed";
}
}