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

GATE 2003

107 questions

MCQ 1071-mark 107

Questions 46–50 of 107

Q46Number System1 markMCQ−0.33 if wrong
Consider the set {a, b, c} with binary operators + and x defined as follows :
+ a b c a b a c b a b c c a c b × a b c a a b c b b c a c c c b
For example, a + c = c, c + a = a, c x b = c and b x c = a. Given the following set of equations :

(a x x) + (a x y) = c
(b x x) + (c x y) = c
The number of solution(s) (i.e., pair(s) (x, y)) that satisfy the equations is :

Q47Number System1 markMCQ−0.33 if wrong
Assuming all numbers are in 2's complement representation, which of the following number is divisible by 11111011?

Q48Machine Instruction1 markMCQ−0.33 if wrong
Consider the following assembly language program for a hypothetical processor. A, B, and C are 8 bit registers. The meanings of various instructions are shown as comments.
      MOV B, # 0    ; B ← 0
      MOV C, # 8    ; C ← 8
Z :   CMP C, # 0    ; compare C with 0
      JZX           ; jump to X if zero flag is set
      SUB C, # 1    ; C ← C - 1
      RRC A, # 1    ; right rotate A through carry by one bit. Thus:
                    ; if the initial values of A and the carry flag are a7...a0 and
                    ; c0 respectively, their values after the execution of this
                    ; instruction will be c0a7...a1 and a0 respectively.
      JC Y          ; jump to Y if carry flag is set
      JMP Z         ; jump to Z
Y :   ADD B, # 1    ; B ← B + 1
      JMP Z         ; jump to Z
X :

Which of the following instructions when inserted at location X will ensure that the value of register A after program execution is the same as its initial value?

Q49Machine Instruction1 markMCQ−0.33 if wrong
Consider the following assembly language program for a hypothetical processor. A, B, and C are 8 bit registers. The meanings of various instructions are shown as comments.
      MOV B, # 0    ; B ← 0
      MOV C, # 8    ; C ← 8
Z :   CMP C, # 0    ; compare C with 0
      JZX           ; jump to X if zero flag is set
      SUB C, # 1    ; C ← C - 1
      RRC A, # 1    ; right rotate A through carry by one bit. Thus:
                    ; if the initial values of A and the carry flag are a7...a0 and
                    ; c0 respectively, their values after the execution of this
                    ; instruction will be c0a7...a1 and a0 respectively.
      JC Y          ; jump to Y if carry flag is set
      JMP Z         ; jump to Z
Y :   ADD B, # 1    ; B ← B + 1
      JMP Z         ; jump to Z
X :

If the initial value of register A is A0 the value of register B after the program execution will be

Q50Secondary Storage1 markMCQ−0.33 if wrong
Using a larger block size in a fixed block size file system leads to