The Gateway to Computer Science Excellence
First time here? Checkout the FAQ!
x
+10 votes
603 views

Which of the following statements is true?

  1. ROM is a Read/Write memory

  2. PC points to the last instruction that was executed

  3. Stack works on the principle of LIFO

  4. All instructions affect the flags

asked in CO & Architecture by Veteran (59.6k points)
retagged by | 603 views

2 Answers

+13 votes
Best answer

It is (C).

Only the top of the stack can be accessed at any time. You can imagine a stack to be opened from only one side data structure. So that if we put one thing over the other, we are able to access the last thing we inserted first. That is Last in First Out (LIFO).

ROM is Read Only Memory.

PC points to the next instruction to be executed.

Not all instructions affect the flags.

answered by Boss (19.7k points)
edited by
0
eg for 4th option is push pop instruction  does not affect flag status
+3
Simple LOAD or STORE instructions don't need ALU cycle to execute and so they willnot affect flags like OVERFLOW,CARRY,ZERO,SIGN ...
0 votes
Ans: C
answered by Loyal (7.4k points)


Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true

41,063 questions
47,662 answers
147,323 comments
62,381 users