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

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

in CO and Architecture by Veteran (52.1k points)
retagged by | 780 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.

by Boss (19.9k points)
edited by
eg for 4th option is push pop instruction  does not affect flag status
Simple LOAD or STORE instructions don't need ALU cycle to execute and so they willnot affect flags like OVERFLOW,CARRY,ZERO,SIGN ...

@vickyrix draw some light on this question

0 votes
Ans: C
by Loyal (7.1k points)

Related questions

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
49,845 questions
54,764 answers
80,279 users