logo

Crowdly

Browser

Add to Chrome

COMPSCI1018 Computing Science 1S - Computing Systems - 2024-25

Looking for COMPSCI1018 Computing Science 1S - Computing Systems - 2024-25 test answers and solutions? Browse our comprehensive collection of verified answers for COMPSCI1018 Computing Science 1S - Computing Systems - 2024-25 at moodle.gla.ac.uk.

Get instant access to accurate answers and detailed explanations for your course questions. Our community-driven platform helps students succeed!

Suppose p is a pointer to a list, and we need to implement

if p=nil then goto aardvark

This is implemented by

View this question
If you declare a variable with a data statement, this variable is
View this question
Which of the following would NOT appear in a call stack?
0%
0%
0%
0%
0%
View this question
Which statement is NOT true?
View this question
Suppose a stack was initially empty, and we have performed the

following sequence of operations:

push a, push b, push c, pop, push d, push e, pop, pop, pop

What value is returned by the last pop?

View this question
If a procedure calls another other procedure, then it

needs to save the return address in memory to avoid

destroying the return address.

100%
0%
View this question
Which one of the following statements is NOT true?
0%
0%
0%
0%
0%
0%
View this question

Suppose this program fragment executes:

labela  add  R4,R5,R6

labelb  sub  R2,R8,R3

labelc  jal  R13,labelf[R0]

labeld  mul  R9,R2,R4

labele  lea  R3,a[R0]

labelf  add  R4,R7,R2

After it executes, the value in R13 is

View this question
Suppose the label x refers to address 0c3a,

and mem[0c3a] = 00d2

Consider the instruction lea R3,x[R0]

Which statement is true?

View this question
Consider the instruction load R3,14[R0]

Which statement is NOT true?

0%
0%
0%
View this question

Want instant access to all verified answers on moodle.gla.ac.uk?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome