Answer:
Explanation:
The following code is written in Java. The if() function is actually called an if statement. The following code can be copied and pasted where you need as long as it is within the scope of the mark variable in order to call it and compare it to 10
if (mark > 10){
System.out.println("you have scored good");
} else {
System.out.println("you need to improve ");
}
Y=In(x)-5
hopefully it’s right :)
Answer:
Option d) B is 1.33 times faster than A
Given:
Clock time, 

No. of cycles per instructions, 

Solution:
Let I be the no. of instructions for the program.
CPU clock cycle,
= 2.0 I
CPU clock cycle,
= 1.0 I
Now,
CPU time for each can be calculated as:
CPU time, T = 


Thus B is faster than A
Now,


Performance of B is 1.33 times that of A