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 04:00
Which spereadsheet type will determine how well a bussiness has done over the past year
Answers: 1
question
Computers and Technology, 22.06.2019 06:00
In outlook how can cherie look at the details of an event that appears on the month view of her calendar? check all that apply. by switching to the detail view by switching to the week view by switching to the day view by right-clicking on the event by double-clicking on the event by highlighting the event
Answers: 2
question
Computers and Technology, 22.06.2019 17:30
Type the correct answer in the box. spell all words correctly. under which key category do the page up and page down keys fall? page up and page down keys fall under the keys category.
Answers: 3
question
Computers and Technology, 23.06.2019 01:30
In deadlock avoidance using banker’s algorithm, what would be the consequence(s) of: (i) a process declaring its maximum need as maximum possible for each resource. in other words, if a resource a has 5 instances, then each process declares its maximum need as 5. (ii) a process declaring its minimum needs as maximum needs. for example, a process may need 2-5 instances of resource a. but it declares its maximum need as 2.
Answers: 3
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, 09.02.2021 01:00
question
Mathematics, 09.02.2021 01:00
question
History, 09.02.2021 01:00
question
Mathematics, 09.02.2021 01:00
Questions on the website: 13722360