You are on page 1of 16
COMPUTER SCIENCE - 2014 1 SET-A | Consider a 33 MHz CPU based system. What is the number of wait states required if it is interfaced with a 60ns memory? Assume a maximum of 10ns delay for additional circuitry like buffering and decoding. (@o (byl (2 @3 ‘The number of states required by a Finite State Machine, to simulate the behaviour of a computer with a memory capable of storing ‘m’ words, with each word being ‘n’ bits long is, (@mx2 (be) 20" @2™ (@) mn ‘What is the output of the following C program? #indlude #define SQRW) (xd) int main { int a; int b=4; a= SQR(b+2); printé(“%d\n”,a); return 0; } (14 (b) 36 ©18 @20 Consider the following pseudo-code while (my) and (BO (ASB, A>>C ASB,.C>>A @A>>B BSC A IP packet has arrived in which the fragmentation offset value is 100, the value of HLEN is 5 and the value of total length field is 200. What is the number of the last byte? (a) 194 (b) 394 ©@979 @ 1179 What is the output of the following C program? tinclude void main (void) { int shifty; shifty = 0570; shifty = shifty >> 4; shifty = shifty << 6; printf(’The value of shifty is %o \n” shifty); } (@) The value of shifty is 15c0 (b) The value of shifty is 4300 (c) The value of shifty is 5700 (@ The value of shifty is 2700 The following Finite Automaton recognizes which of the given languages? @)(1,0}*{01} (b){1,0}*{1) (LPL Oy* (1) @ro (or) | Ain INDIAN SPACE REASERCH ORGANISATION Page 7 of 16 - J) COMPUTER SCIENCE - 2014 SET-A 34 35 37 38 How much memory is required to implement z-buffer algorithm for a 512 x 512 x 24 bit-plane image (2) 768 KB ()1MB (15 MB (®2MB Using the page table shown below, translate the physical address 25 to virtual address, The address length is 16 bits and page size is 2048 words while the size of the physical memory is four frames. Page Present (J-In, 0-Out) Frame 0 1 3 1 1 2 2 1 0 3 0 - (a) 25 (b) 6169 (c) 2073 (@ 4121 Consider a standard circular queue ‘q’ implementation (which has same condition for queue full and queue empty) whose size is 11 and the elements of the queue are ql0], qlil, ... q{10]. The front and rear pointers are initialized to point at q[2]. In which position will the ninth element be added? @ (0 ) qi) ©) (@) q{10} The probability that two friends are born in the same month is_? @1/6 (b) 4/12 (© 1/144 (@) 1/24 How many lines of output does the following C code produce? #include float i float j float sum = 0.0; main { while (i/j > 0.001) { isi gum = sum + (i/)); printé(/%f\n”, sum); } } @s 9 (10 @u INDIAN SPACE REASERCH ORGANISATION | Page 8 of 16 erilisea COMPUTER SCIENCE ~ 2014 SET-A 39 40 a If only one memory location is to be reserved for a class variable, no matter how many objects are instantiated, then the variable should be declared as (@) extern (b) static (© volatile (@ const Assume that a 16 bit CPU is trying to access a double word starting at an odd address, How many memory operations are required to access the data? (@1 (b)2 (3 @4 Consider the following binary search tree T given below. Which node contains the fourth smallest element in T? TP 9 vy Ul we ry x Zz @Q ()V Ow @X Let xy,z,a,b,c be the attributes of an entity set E. If {x}, (vy), {a,b}, {a,b,c}, bwy.2} are superkeys then which of the following are the candidate keys? (@) (cy) and {a,b} (b) {x} and {a,b} (©) bsy,2} and {a,b,c} @ @ and The five items: A, B, C, D, and E are pushed in a stack, one after the other starting from A. The stack is popped four times and each element is inserted in a queue. Then two elements are deleted from the queue and pushed back on the stack, Now one item is popped from the stack. The popped item is @A ()B @Cc @D A computer has sixteen pages of virtual address space but the size of main memory is only four frames. Initially the memory is empty. A program references the virtual pages in the order of 0,2,45,2,4,3,11,2,10. How many page faults occur if LRU page replacement algorithm is used? @3 5 @7 8 ere INDIAN SPACE REASERCH ORGANISATION Page 9 of 16 | COMPUTER SCIENCE = 2014 sera | 5 46 a7 49 Consider a 50 kbps satellite channel with a 500 milliseconds round trip propagation delay. If the sender wants to transmit 1000 bit frames, how much time will it take for the receiver to receive the frame? (@) 250 milliseconds (b) 20 milliseconds (©) 520 milliseconds (A) 270 milliseconds If the maximum output voltage of a DAC is V volts and if the resolution is R bits, then the weight of the most significant bit is (@) V/(28 -1) () (24).V / @*1) (©) @™).V @ Vi) ‘The following three ‘C’ language statements is equivalent to which single statement? (a) z= xty+2; () 2= (+4) + (HY); (©) z= (Hx) + (v4); (@) z= G4) + (HY) + 1; A frame buffer array is addressed in row-major order for a monitor with pixel locations starting from (0, 0) and ending with (100, 100). What is address of the pixel (6, 10)? Assume one bit storage per pixel and starting pixel location is at 0. (a) 1016 (b) 1006 (c) 610 (d) 616 Consider a single linked list where F and L are pointers to the first and last elements respectively of the linked list. The time for performing which of the given operations depends on the length of the linked list? BOR IRCOIBC IM / \ F L (a) Delete the first element of the list (b) Interchange the first two elements of the list (©) Delete the last element of the list (@ Add an element at the end of the list INDIAN SPACE REASERCH ORGANISATION | Page 10 of 16 | COMPUTER SCIENCE - 2014 SET-A 50 51 52 53 54 Let A be a finite set having x elements and let B be a finite set having y elements. What is the number of distinct functions mapping B into A. @x (b) 26 @y @y!/ (yx)! Which of the following is NOT represented in a subroutine’s activation record frame for a stack-based programming language? (@ Values of local variables (b) Return address (©) Heap area (@ Information needed to access non local variables Consider the following grammar. S>AB Ava A BaB B-> bbA Which of the following statements is FALSE? @ The length of every string produced by this grammar is even (b) No string produced by this grammar has three consecutive a's. (© The length of substring produced by B is always odd. @ No string produced by this grammar has four consecutive b’s Consider the logic circuit given below. ‘The inverter, AND and OR gates have delays of 6, 10 and 11 nanoseconds respectively. Assuming that wire delays are negligible, what is the duration of glitch for Q before it becomes stable? @5 (1 (16 (27 ‘The conic section that is obtained when a right circular cone is cut through a plane that is parallel to the side of the cone is called 2 (a) Parabola (b)Hyperbola—_() Circle (@ Ellipse | INDIAN SPACE REASERCH ORGANISATION | Page 11 of 16 { COMPUTER SCIENCE ~ 2014 SET-A 56 57 58 59 An IP packet has arrived with the first 8 bits as 0100 0010. Which of the following is correct? (8) The number of hops this packet can travel is 2. (b) The total number of bytes in header is 16 bytes. (©) The upper layer protocol is ICMP (@ The receiver rejects the packet Which of the following is not a valid Boolean algebra rule? @ Xx=x () (&H+Y).X=x (© Xaxy=¥ @) (X#Y).XGZ) = X4YZ ‘A supemet has a first address of 20516320 and a superet mask of 255.255.248.0. A router receives four packets with the following destination addresses. Which packet belongs to this supernet? (a) 205.16.42.56 (6) 205.17.32.76 (¢) 205.16.31.10 (d) 205.16.39.44 Assume the following information. Original timestamp value = 46 Receive timestamp value = 59 Transmit timestamp value = 60 Timestamp at arrival of packet = 69 Which of the following statements is correct? (@) _ Receive clock should go back by 3 milliseconds (b) Transmit and receive clocks are synchronized. (©) Transmit clock should go back by 3 milliseconds (@ _ Receive clock should go ahead by 1 millisecond Which of the following is FALSE with respect to possible outcomes of executing a Turing Machine over a given input? (@) Itmay halt and accept the input _(b) It may halt by changing the input (c) It may halt and reject the input —_(d) It may never halt Ee | INDIAN SPACE REASERCH ORGANISATION | Page 12 of 16 | —L___- COMPUTER SCIENCE - 2014 SET-A 60 61 62 63 64 Suppose you are browsing the world wide web using a web browser and trying to access the web servers. What is the underlying protocol and port number that are being used? (@) UDP, 80 (b) TCP, 80 (©) TCP, 25 (@ UDP, 25 ‘A mechanism or technology used in Ethernet by which two connected devices choose common transmission parameters such as speed, duplex mode and flow control is called (@) Autosense (b) Synchronization (© Pinging (@ Auto negotiation Consider the following sorting algorithms. 1. Quicksort Il. Heapsort II Mergesort Which of them perform in least time in the worst case? (@)Iand {only (6) and Ionly —(c) Ill only (1, Wand i Consider the following Table (2 Ts td The table is in which normal form? (@) First Normal Form () Second Normal Form (©) Third Normal Form but not BCNF (4) Third Normal Form and BCNF Consider a 13 element hash table for which f(key) = key mod 13 is used with integer keys. Assuming linear probing is used for collision resolution, at which location would the key 103 be inserted, if the keys 661, 182, 24 and 103 are inserted in that order? (@)0 (b) 1 on @12 | | | a) tere | INDIAN SPACE REASERCH ORGANISATION | Page 13 of 16 _|_____—. COMPUTER SCIENCE - 2014 SET-A 65 66 67 69 A.cube of side 1 unit is placed in such a way that the origin coincides with one of its top vertices and the three axes run along three of its edges. What are the co-ordinates of the vertex which is diagonally opposite to the vertex whose co- ordinates are (1, 0,1)? (@) (00,0) (b) (0,-1,0) (©) 01,0) @ (AA) Consider a system where each file is associated with a 16-bit number. For each file, each user should have the read and write capability. How much memory is needed to store each user's access data? (@) 16 KB (b) 32 KB (©) 64KB (@) 128 KB ‘What is the time complexity for the following C module? Assume that n> 0; int module(int n) { if(n==1) return 1; else return (n+ module(n-1)); t @ 0) (b) O(log n) (©) Of) @ Ow) ‘What is the minimum number of resources required to ensure that deadlock will never occur, if there are currently three processes P1, Ps, and Ps running in a system whose maximum demand for the resources of same type are 5, 4 and § respectively. @3 7 9 @10 For a software project, the spiral model was employed. When will the spiral stop? (@ When the software product is retired (b) When the software product is released after Beta testing (©) When the risk analysis is completed (@ After completing five loops INDIAN SPACE REASERCH ORGANISATION | Page 14 of 16 COMPUTER SCIENCE - 2014 SET-A 70 7 72 73 74 6 76 Dirty bit is used to indicate which of the following? (@® A page fault has occurred (b) A page has corrupted data (©) Appage has been modified after being loaded into cache (@ — Amillegal access of page Which of the following is not a valid multicast MAC address? (a) 01:00:58: 00:00:00 (6) 01:00:5E:00:00:FF (6) 01:00:5E:00:FF:FF (4) 01:00:5E:FF-FF:-FF 121-1) ‘The rank of the matrix A=| 9 5 2 2 |is 710 Al @o (1 ©2 (3 How many different trees are there with four nodes A, B, Cand D? (@)30 (b) 60 ©” (@ 120 What is the median of the data if its mode is 15 and the mean is 30? @20 (b) 25 (©) 225 @275 ‘An organization is granted the block 130.34.12.64 / 26. It needs to have four subnets, Which of the following is not an address of this organization? (a) 130.34.12.124 (b) 130.34.12.89 (©) 130.34.12.70 (@) 130.34.12.132 Consider the following scenario. 'A web client sends a request to a web server. The web server transmits a program to that client and is executed at client. Tt creates a web document. What are such web documents called? (@) Active (b) Static (©) Dynamic (@ Passive What is the size of the physical address space in a paging system which has a page table containing 64 entries of 11 bit each (including valid/invalid bit) and a page size of 512 bytes? @a 2" © Or | sais | | INDIAN SPACE REASERCH ORGANISATION | Page 15 of 16 | | 1 | | | —_—___-—____1 COMPUTER SCIENCE - 2014 SET-A 78 80 Which of the following is not an optimization criterion in the design of a CPU scheduling algorithm? (@) Minimum CPU utilization (b) Maximum throughput (© Minimum tumaround time (@ Minimum waiting time Consider the following Deterministic Finite Automaton M. Let S denote the set of eight bit strings whose second, third, sixth and seventh bits are 1, The number of strings in S that are accepted by M is @o (1 @2 @3 ‘A Computing architecture, which allows the user to use computers from multiple administrative domains to reach a common goal is called as, (a) Grid Computing (b) Neural Networks (©) Parallel Processing (@ Cluster Computing INDIAN SPACE REASERCH ORGANISATION | Page 16 of 16

You might also like