logo

Crowdly

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 that x is a variable in memory,

the address of x is 02a3, mem[02a3] contains 5.

After executing lea R3,x[R0]

View this question
Suppose that x is a variable in memory,

the address of x is 02a3, and mem[02a3] contains 5.

After executing load R3,x[R0]

View this question
Which instruction would you use to put a pointer to a variable

into a register?

View this question
Which instruction would you use to put a constant into a register?
View this question
Which instruction would you use to copy a variable

from a register to memory?

View this question
Which instruction would you use to copy a variable

from memory to a register?

View this question

Suppose the following program fragment is executed:

  lea R4,2[R0]

  lea R5,7[R0]

  data $0445

Which statement is true?

0%
0%
View this question
Suppose p is a pointer to a list.

Which statement is NOT true?

View this question
A list comprises nodes with two fields:

The first field, value, is an integer

The second field, next, is a pointer to the next node

R7 contains a pointer to a node

Which instruction performs R8 := *R7.next?

View this question
A list comprises nodes with two fields:

The first field, value, is an integer

The second field, next, is a pointer to the next node

R7 contains a pointer to a node (assume that R7 is not nil)

Which instruction performs R8 := *R7.value?

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!