Computer System Architecture MCQ - Central Processing Unit

Consider the following program segment. Here R1, R2 and R3 are the general purpose registers.
Assume that the content of memory location 3000 is 10 and the content of the register R3 is 2000. The content of each of the memory locations from 2000 to 2010 is 100. The program is loaded from the memory location 1000. All the numbers are in decimal.
Correct AnswerOption A
Rate difficulty Rate difficulty:
Choose a difficulty.
The given program stores results from memory location 2000 to 2009.
It stores values like 110,109,108.....100.
No change at location 2010 So at 2010 value is 100
Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *

Consider the following program segment. Here R1, R2 and R3 are the general purpose registers.
Assume that the content of memory location 3000 is 10 and the content of the register R3 is 2000. The content of each of the memory locations from 2000 to 2010 is 100. The program is loaded from the memory location 1000. All the numbers are in decimal.
Correct AnswerOption C
Rate difficulty Rate difficulty:
Choose a difficulty.
Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *

Correct AnswerOption B
Rate difficulty Rate difficulty:
Choose a difficulty.
100110110 (in 2's complement ignore carry bit so ignore 1 at msb)
After carry bit is ignored the value at msb is 0 means number is positive so sign bit is 0.
Overflow flag is set only if the X-OR between the carry-into the sign bit and carry -out of the sign bit is 1.
Therefore,
carry flag = 1,
overflow flag = 0,
sign bit = 0
Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *

Correct AnswerOption B
Rate difficulty Rate difficulty:
Choose a difficulty.
Share this question
Share:
An antidependency also known as write-after-read (WAR) dependency.
S1 is False, I2 and I5 they both write R7. So, No WAR.
S2 is true, There is an anti-dependence between instructions I2 and I4.
I2 reads R3 and I4 writes it.
S3 is false.depends on how many instruction between the antidependence instructions.
Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *

Correct AnswerOption D
Rate difficulty Rate difficulty:
Choose a difficulty.
To achieve speedup we can transfer directly like the code given below.
R1 → R2
R1 → R3
R1 → M[100]
Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *

Why Practice with Avatto?
High Quality MCQsExam-focused questions with accurate answers
Detailed ExplanationsStep-by-step explanations to enhance learning
Latest Exam PatternBased on updated syllabus and pattern
Performance AnalyticsTrack performance and improve weak areas
100% Free PracticePractice unlimited questions for free
Boost Your PreparationAttempt mock tests, previous year papers and topic-wise quizzes.Explore All Tests →