GATE 2015 (Session 3) Computer Science and Information Technology (CS) Questions with Solutions

GATE 2015 (Session 3)

65 questions

MCQ 45 · NAT 201-mark 30 · 2-mark 35

Questions 56–60 of 65

Q56Physical Layer2 marksNAT
Two hosts are connected via a packet switch with 10710^{7} bits per second links. Each link has a propagation delay of 20 microseconds. The switch begins forwarding a packet 35 microseconds after it receives the same. If 10000 bits of data are to be transmitted between the two hosts using a packet size of 5000 bits, the time elapsed between the transmission of the first bit of data and the reception of the last bit of the data in microseconds is____________.

Q57CPU Scheduling2 marksMCQ−0.67 if wrong
For the processes listed in the following table, which of the following scheduling schemes will give the lowest average turnaround time?
Process Arrival Time Processing Time A 0 3 B 1 6 C 4 4 D 6 2

Q58Software Engineering2 marksMCQ−0.67 if wrong
Consider three software items: Program-XX, Control Flow Diagram of Program-YY and Control Flow Diagram of Program-ZZ as shown below
Program-XX:
sumcal(int maxint, int value)
{
     int result=0, i=0;
     if (value <0)
     {
       value = -value;
     }
     while((i<value) AND (result <= maxint))
     {
        i=i+1;
       result = result + 1;
     }
     if(result <= maxint)
     {
        printf(result);
     }
     else
     {
       printf("large");
     }
     printf("end of program");
}
Control Flow Diagram of Program-YY:

Control Flow Diagram of Program-ZZ:

The values of McCabe’s Cyclomatic complexity of Program-XX, Program-YY, and Program-ZZ respectively are

Q59Number System2 marksNAT
Consider the equation (43)x=(y3)8(43)_{x}=(y3)_{8} where x and y are unknown. The number of possible solutions is ______________

Q60Relation2 marksMCQ−0.67 if wrong
Let R be a relation on the set of ordered pairs of positive integers such that ((p,q),(r,s))∈R((p,q),(r,s)) \in R if and only if p−s=q−rp-s=q-r. Which one of the following is true about R?