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!

Which statement about the call stack is NOT true?
View this question
Suppose we are traversing an array of records, and we

don't know how many elements are in the array, but we do

know the address of the end of the array. Which is better?

View this question
There is an array of records, and each record contains 4 elements.

Each record element is an integer, and their names are

fieldA, fieldB, fieldC, fieldD.

Suppose R5 contains a pointer to an element of the array.

Which instructions will implement *R5.fieldD := *R5.fieldC?

View this question

Suppose we perform a trap instruction to write an array of

characters. The array contains one element which is defined by

   data -1

What will happen?

View this question
Suppose you have a loop that must execute the body at least one time,

and from then on a Boolean condition determines whether it should

continue. Which looping construct would be more appropriate?

View this question
Suppose you have a loop that should not execute the body at all

if a Boolean condition is False. Which looping construct

would be more appropriate?

View this question

Suppose there is a compound Boolean conditional

i<n && x[i]>0

Which of the following is NOT a good reason for implementing

this using "short circuiting"?

View this question
Here are some statements about load, store and lea. Most of them

are correct but one is not. Which is the false statement?

View this question
Here are some statements about load and lea. One of them is correct,

but the others are all misconceptions. Which is the correct statement?

View this question
There is an array of records, and each record contains 4 elements.

Each record element is an integer.

Suppose R5 contains a pointer to an element of the array.

Which instruction will update R5 to make it point to

the next element of the array?

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!