PGT Computer Science (Level-3), (HTET Practice MCQs) (Part-V)

Total Questions: 100

1. The three outputs x₁x₂x₃ from the 8 x 3 priority encoder are used to provide a vector address of the form 101 x₁x₂x₃ 00. What is the second highest priority vector address in hexadecimal if the vector addresses are starting from the one with the highest priority?

Correct Answer: B. A 4

2. What will be the output at PORTI if the following program is executed?

MVI B, 82H
MOV A, В
MOV C, А
MVI D, 37H
OUT PORTI
HLT

Correct Answer: B. 82 H

3. Which of the following 8085 microprocessor hardware interrupt has the lowest priority?

Correct Answer: D. INTR

4. A dynamic RAM has refresh cycle of 32 times per msec. Each refresh operation requires 100 nsec and a memory cycle requires 250 nsec. What percentage of memory's total operating time is required for refreshes?

Correct Answer: D. 0.32

5. A DMA controller transfers 32-bit words to memory using cycle Stealing. The words are assembled from a device that transmits characters at a rate of 4800 characters per second. The CPU is fetching and executing instructions at an average rate of one million instructions per second. By how much will the CPU be slowed down because of the DMA transfer?

Correct Answer: B. 0.12%

6. A CPU handles interrupt by executing interrupt service subroutine ................... .

Correct Answer: A. by checking interrupt register after execution of each instruction

7. Given the following set of prolog clauses:

father(X, Y):
parent(X, Y),
male(X),
parent(Sally, Bob),
parent(Jim, Bob),
parent(Alice, Jane),
parent(Thomas, Jane),
male(Bob),
male(Jim),
female(Salley),
female(Alice).
How many atoms are matched to the variable 'X'
before the query
father(X, Jane) reports a Result?

Correct Answer: A. 1

8. Forward chaining systems are .................... where as backward chaining systems are ................... .

Correct Answer: C. Data driven, Goal driven

9. Match the following w.r.t. programming languages:

   List-I      List-II 
 (a) JAVA (i) Dynamically object oriented
 (b) Python (ii) Statically Non-object oriented
 (c) Prolog (iii) Statically object oriented
 (d) ADA (iv) Dynamically non-object oriented

Codes:

 Option (a)  (b)  (c)  (d) 
 A. (iii) (i) (ii) (iv)
 B. (i) (iii) (ii) (iv)
 C. (i) (iii) (iv) (ii)
 D. (ii)  (iv) (i) (iii)
Correct Answer: D.

10. The combination of an IP address and a port number is known as ................... .

Correct Answer: B. socket address