logo

Crowdly

Browser

Додати до Chrome

Questions Bank (1229135 total)

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?

0%
0%
Переглянути це питання

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"?

0%
0%
0%
Переглянути це питання
Here are some statements about load, store and lea. Most of them

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

Переглянути це питання
Here are some statements about load and lea. One of them is correct,

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

Переглянути це питання
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?

Переглянути це питання
Suppose that x is a variable in memory,

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

After executing lea R3,x[R0]

0%
0%
0%
Переглянути це питання
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]

0%
0%
0%
Переглянути це питання
Which instruction would you use to put a pointer to a variable

into a register?

Переглянути це питання
Which instruction would you use to put a constant into a register?
Переглянути це питання
Which instruction would you use to copy a variable

from a register to memory?

0%
0%
0%
Переглянути це питання