GATE 2001 Computer Science and Information Technology (CS) Questions with Solutions

GATE 2001

60 questions

MCQ 601-mark 60

Questions 26–30 of 60

Q26Cache Memory1 markMCQ−0.33 if wrong
More than one word are put in one cache block to

Q27IO Interface1 markMCQ−0.33 if wrong
A slow memory can be connected to 8085 by using

Q28Interrupt1 markMCQ−0.33 if wrong
A CPU has two modes-privileged and non-privileged. In order to change the mode from privileged to non-privileged

Q29Interrupt1 markMCQ−0.33 if wrong
A processor needs software interrupt to

Q30Function1 markMCQ−0.33 if wrong
Consider the following program
 Program P2 
    var n: int: 
     procedure W(var x: int) 
     begin 
         x=x+1; 
         print x;   
     end 

     procedure D 
     begin  
         var n: int; 
         n=3; 
         W(n);  
     end 
begin //beginP2 
  n=10; 
  D; 
end 
If the language has dynamic scooping and parameters are passed by reference, what will be printed by the program ?