## Discussion Forum

Interative Forum for discussing any query literally to UGC-NET Computer Science, GATE Computer Science and Computer Sciene and Technology in general.

## UGC-NET Computer Science

Correspondence Courses and Test Series to prepare for UGC-NET computer science and applications

## GATE

MCQs, Lecture Notes, Ebooks for GATE preparation

## Jobs Newsfeed

Timely information of various Recruitments.

NextPrev

## Solved Questions Paper-2 UGC-NET Computer Science November 2017

 31. Consider the following program fragment in assembly language: mov ax, 0h mov cx, 0A h doloop: dec ax loop doloop What is the value of ax and cx registers after the completion of the doloop? A. ax = FFF5 h and cx = 0 h B. ax = FFF6 h and cx = 0 h C. ax = FFF7 h and cx = 0A h D. ax = FFF5 h and cx = 0A h View/Hide Ans Explanation 32. Consider the following assembly program segment: 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: A. ax = 003CH; CF = 0 B. ax = 001EH; CF = 0 C. ax = 007BH; CF = 1 D. ax = 00B7H; CF = 1 View/Hide Ans Explanation 33. 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? Where {+, *} are quantification characters. A. 0*1+0*1* B. 0*1*0+1* C. 0*1*0*1+ D. 0+1*0*1* View/Hide Ans Explanation 34. Which of the following statements is/ are TRUE? (a) The grammar S ? SS a is ambiguous. (Where S is the start symbol) (b) The grammar S ? 0S1 | 01S | ? is ambiguous. (The special symbol ? represents the empty string) (Where S is the start symbol) (c) The grammar (Where S is the start symbol) S ? T/U T ? x S y | xy | ? U ? yT generates a language consisting of the string yxxyy. A. Only (a) and (b) are TRUE. B. Only (a) and (c) are TRUE. C. Only (b) and (c) are TRUE. D. All of (a), (b) and (c) are TRUE. View/Hide Ans Explanation 35. 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 (a) A part of a compiler that is responsible for recognizing syntax. (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. (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. (d) An IR-to-IR transformer that tries to improve the IR program in some way (Intermediate representation). List - II (i) Optimizer (ii) Semantic Analysis (iii) Parser (iv) Scanner Code: (a) (b) (c) (d) A. (iii) (iv) (i) (ii) B. (iv) (iii) (ii) (i) C. (ii) (iv) (i) (iii) D. (ii) (iv) (iii) (i) View/Hide Ans Explanation 36. In Distributed system, the capacity of a system to adapt the increased service load is called ................. A. Tolerance B. Scalability C. Capability D. Loading View/Hide Ans Explanation 37. In .................... disk scheduling algorithm, the disk head moves from one end to other end of the disk, serving the requests along the way. When the head reaches the other end, it immediately returns to the beginning of the disk without serving any requests on the return trip. A. LOOK B. SCAN C. C - LOOK D. C - SCAN View/Hide Ans Explanation 38. Suppose there are six files F1, F2, F3, F4, F5, F6 with corresponding sizes 150 KB, 225KB, 75 KB, 60 KB, 275 KB and 65 KB respectively. The files are to be stored on a sequential device in such a way that optimizes access time. In what order should the files be stored? A. F5, F2, F1, F3, F6, F4 B. F4, F6, F3, F1, F2, F5 C. F1, F2, F3, F4, F5, F6 D. F6, F5, F4, F3, F2, F1 View/Hide Ans Explanation 39. Which module gives control of the CPU to the process selected by the short - term scheduler? A. Dispatcher B. Interrupt C. Scheduler D. Threading View/Hide Ans Explanation 40. Two atomic operations permissible on Semaphores are .................. and ............... A. wait, stop B. wait, hold C. hold, signal D. wait, signal View/Hide Ans Explanation

Author Does Not claim of any answer these answers are as per expert opinion

Pages: 1 2 3 4 5