Computers and Technology

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

answer
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 18:00, ladyree8721
Which of the following physical laws can make the flow of water seem more realistic? a. motion b. gravity c. fluid dynamics d. thermodynamics
Answers: 2
image
Computers and Technology, 22.06.2019 18:30, yeeet26
If an improvement creates no significant change in a product’s performance, then it is a(n) ? a0 design improvement. (there are no answer choices)
Answers: 1
image
Computers and Technology, 22.06.2019 20:00, jc624826
What side length would you specify if you were required to create a regular hexagonal plate that was composed of 33 cm(squared) of sheet metal? dimension the side length to 0.1 cm
Answers: 2
image
Computers and Technology, 22.06.2019 21:00, bryanatwin1536
Describir textbook icon_person mira los dibujos y describe lo que estΓ‘ pasando. usa los verbos de la lista.
Answers: 1
Do you know the correct answer?
Question 1:State the values of a, b, c, d and e after the following operations are carried out: (a...

Questions in other subjects:

Konu
Mathematics, 16.10.2020 23:01
Konu
Mathematics, 16.10.2020 23:01
Konu
History, 16.10.2020 23:01