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, 23.06.2019 14:30
Select the correct answer. which step can possibly increase the severity of an incident? a. separating sensitive data from non-sensitive data b. immediately spreading the news about the incident response plan c. installing new hard disks d. increasing access controls
Answers: 2
question
Computers and Technology, 23.06.2019 20:30
If an appliance consumes 500 w of power and is left on for 5 hours, how much energy is used over this time period? a. 2.5 kwh b. 25 kwh c. 250 kwh d. 2500 kwh
Answers: 1
question
Computers and Technology, 25.06.2019 01:30
Ashort circuit locator should be periodically run along the cords used in a shop to check for shorts and open circuits. a.)true b.)false
Answers: 2
question
Computers and Technology, 25.06.2019 03:30
Which task should happen during the planning stage of a project
Answers: 2
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, 04.11.2021 20:40
question
Social Studies, 04.11.2021 20:40
question
Mathematics, 04.11.2021 20:40