Question 1:State the values of a, b, c, d and e after the following operations are carried out:
(a) a = 26 mod 5
b) b = 142 div 7
(c) c = (7 + 3) * 4 – 1
(d) d = 15.6 / 3 + 4.8 / 2
(e) e = “4” + “56”
Question 2: The function ord (’a’) evaluates to 97, the ASCII value of the character ‘a’.
chr (97) evaluates to ‘a’.
State what is output by this algorithm:
x = ord (‘b’)
y = x + 1
z = x – 1
w = chr (y) + chr (z)
print (x, y, z, w)
Question 3: What is output by the following algorithm?
notice = “Please do not walk on the grass”
start = pos (notice, “ “)
end = pos (notice, “t”)
x = substring (0, start, notice)
stringLength = len(notice)
y = substring (end + 2, stringLength – 1, notice)
print (“x = ” x)
print (“y = “, y)
print (x + y)
PLEASE HELP ME WITH THIS QUESTIONS I DON'T KNOW HOW TO DO IT I'M LITERALLY CRYING RIGHT NOW CAN SOMEONE HELP ME THIS QUESTIONS PLEASE T-T T-T T-T