I’m unsure if this is 100% right but if we’re on the right page it would be comments provide a label or explain action of an image or object. Please correct me if this is not programming.
Answer:
b. Limit register holds the size of a process.
Explanation:
A limit register is a form of registers used in memory management background that contains logical addresses. It is utilized to determines the size of the psychical memory range for a process. It can only be loaded only by the operating system, through a unique specific instruction.
Hence, in this case, the right answer is option B
Option A is not correct because the Base register specifies where the page table begins in memory
Option C is not correct because Base and limit registers can be only be loaded through the operating system
Option D is also not correct.
Answer:
The solution code is written in C++
- float cellPhone(int m, int tx){
- float COST_PER_MIN = 0.1;
- float COST_PER_MESSAGE = 0.2;
-
- float bill_amount = m * COST_PER_MIN + tx * COST_PER_MESSAGE;
-
- return bill_amount;
- }
Explanation:
Firstly, declare a function named cellPhone() that takes two input parameters, m and tx (Line 1).
Since the policy of the carrier company is not given in the question, I make a presumption that the cost per minutes is $0.10 and the cost per message is $0.20 (Line 2- 3).
Next, apply the formula m * COST_PER_MIN + tx * COST_PER_MESSAGE to calculate the total bill (Line 5) and return the bill_amount as function output (Line 7).