The Gateway to Computer Science Excellence
+12 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
retagged by | 1.2k views

2 Answers

+16 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
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

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
52,223 questions
59,811 answers
118,087 users