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

Total Questions: 100

1. Which of the following devices takes data sent from one network device and forwards it to the destination node based on MAC address?

Correct Answer: C. Switch

2. ___________ do not take their decisions on measurements or estimates of the current traffic and topology.

Correct Answer: C. Non-adaptive algorithms

3. The number of bits used for addressing in Gigabit Ethernet is _________ .

Correct Answer: B. 48 bits

4. Which of the following layer of OSI Reference model is also called end-to-end layer?

Correct Answer: D. Transport layer

5. The IP address _________ is used by hosts when they are being booted.

Correct Answer: A. 0.0.0.0

6. Consider the following program fragment in assembly language:

language:
mov ax, Oh
mov cx, 0A h
doloop :
dec ax
loop doloop
What is the value of ax and cx registers after the completion of the doloop?

Correct Answer: B. ax = FFF6 h and cx = 0 h

7. Consider the following assembly program fragment:

stc
mov al, 11010110b
mov cl, 2
rcl al, 3
rol al, 4
shr al, cl
mul cl
The contents of the destination register ax (in hexadecimal) and the status of Carry Flag (CF) after the execution of above instructions, are:

Correct Answer: A. ax = 003CH; CF = 0

8. Which of the following regular expressions, each describing a language of binary numbers (MSB to LSB) that represents non-negative decimal values, does not include even values?

Correct Answer: C. 0*1*0*1⁺

9. Which of the following statements is/are TRUE?

Correct Answer: D. All of (a), (b) and (c) are TRUE

10. Match the description of several parts of a classic optimizing compiler in List-I, with the names of those parts in List-II:

                                List-I   List-II
 (a) A part of a compiler that is responsible for recognizing  syntax. 1. Optimizer
 (b) A part of a compiler that takes as input a stream of characters and produces as output a stream of words along with their associated syntactic categories. 2. Semantic  Analysis
 (c) A part of a compiler that understand the meanings of variable names and other symbols and checks that they are used in ways consistent with their definitions. 3. Parser
 (d) An IR-to-IR transformer that tries to improve the IR program in some way (Intermediate Representation). 4. Scanner

Codes:

 Option (a)  (b)  (c)  (d) 
 A. 3 4 2 1
 B. 4 3 2 1
 C. 2 4 1  3
 D. 2 4 3 1
Correct Answer: A.