in Operating System recategorized by
8,334 views
27 votes
27 votes

Which one of the following statements is true?

  1. Macro definitions cannot appear within other macro definitions in assembly language programs

  2. Overlaying is used to run a program which is longer than the address space of a computer

  3. Virtual memory can be used to accommodate a program which is longer than the address space of a computer

  4. It is not possible to write interrupt service routines in a high level language

in Operating System recategorized by
8.3k views

4 Comments

Option B says Overlaying is used to run a program which is longer than the address space of a computer.

Program longer than it's logical address space doesn't make any sense. So it is false.

Option C says Virtual memory can be used to accommodate a program which is longer than the address space of a computer.  It is also false because of above reason.

Have I done correct reasoning?

6
6
@shivam
Overlay is used when virtual memory is absent. But question is indirectly asked if it work in requirement of virtual memory
But concept of overlay totally different than virtual memory
1
1

@shivam

Rightly summed up.

0
0

3 Answers

28 votes
28 votes
Best answer
  1. Is TRUE.
  2. False. Overlaying is used to increase the address space usage when physical memory is limited on systems where virtual memory is absent. But it cannot increase the address space (logical) of a computer. 
  3. False. Like above is true for physical memory but here it is specified address space which should mean logical address space. 
  4. Is false. We can write in high level language just that the performance will be bad
edited by
by

4 Comments

Can someone sum up everything here?

@Bikram Sir can you please help.

This question is really confusing everyone.

0
0
if computer address means either PA or VA then above answer correct ...if anything by default predefined computer address is like PA or VA then it will be wrong ....conclusion i don't by  is any default computer address ?
0
0

if nested macro definitions are possible than A must be false as per @Ayush Upadhyaya sir’s comment.

pls help in this !

0
0
0 votes
0 votes

Both B and C are true

B says overlay is used to

long program which is correct don’t confuse with address space here please

C says virtual memory is used to accomodate  long program which is correct

–2 votes
–2 votes
option c is correct as virtual memory provides virtual address which can be directly converted to physical address.

1 comment

I think A and B both are true.
0
0
Answer:

Related questions