subject

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

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 22:50
Which is the best minecraft server? a. mineplex b. worldonecraft c. 9b9t d. 2b2t
Answers: 2
question
Computers and Technology, 23.06.2019 08:30
Helen's credit card has an apr of 15.32% and a grace period of 17 days and helen pays her balance in the full every month. if her last billing cycle ended on september 26, 2009, and she made her payment on october 11, 2009, did she owe any interest on her last statement's balance?
Answers: 3
question
Computers and Technology, 23.06.2019 23:30
Worth 50 points answer them bc i am not sure if i am wrong
Answers: 1
question
Computers and Technology, 24.06.2019 00:30
Afiling system in which an intermediary source of reference, such as a file card, must be consulted to locate specific files is called a(n) system. a. shelf filing b. direct filing c. indirect filing d. shingling
Answers: 1
You know the right answer?
Question 1:State the values of a, b, c, d and e after the following operations are carried out: (a...
Questions
question
Mathematics, 31.03.2021 22:20
question
Mathematics, 31.03.2021 22:30
Questions on the website: 13722367