330 views
3 votes
3 votes

Consider the following one address instruction for a hypothetical processor implementing a function:

MOVE x
MUL x
STORE z
MOVE x
MUL A
ADD z
ADD B
STORE y


Which of the following values represents the value of the function if $A = 7, B = 6$ and input value $x={10}_{16}$ (Hexadecimal)?

  1. $347_{10}$
  2. $176_{10}$
  3. $167_{10}$
  4. $374_{10}$

 

2 Answers

Best answer
6 votes
6 votes
We get the equation: $y = x^2 + Ax + B$, and $A = 7$ and $B = 6$ so, the equation become $y = x^2 + 7x + 6$
    
Input value in decimal $= 16 \implies y = 374.$
   
So, Option D
selected by
Answer:

Related questions

3 votes
3 votes
1 answer
3