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