GATE Daily

Tuesday27 October 2026

Tuesday’s GATE CS set

Question 1 of 10
0:00 this question·0:00 total
Your result · 27 Oct 2026Practice run · not recorded
0/ 14 marks

0correct0wrong0skipped0:00time taken0:00expected

    Q.1Aptitude · Arithmetic

    In a hostel, every resident prefers exactly one of tea and coffee, and the ratio of tea drinkers to coffee drinkers is . Then 12 new residents, all coffee drinkers, move in and 5 tea drinkers move out. The ratio of tea drinkers to coffee drinkers is now .

    How many tea drinkers were there in the hostel originally?

    Solution MCQ · 1 mark · −⅓ if wrong

    Remember

    Copied. Paste it into the new chat.Too long to send. Copy the question and solution by hand.

    Q.2Maths · Matrices and determinants

    Let be a real matrix with . A matrix is obtained from by applying the following row operations in order:

    1. interchange row 1 and row 3;
    2. multiply row 2 by 3;
    3. replace row 3 by (row 3 row 1).

    The value of is ________. (answer in integer)

    Solution NAT · 2 marks · no negative marking

    Remember

    Copied. Paste it into the new chat.Too long to send. Copy the question and solution by hand.

    Q.3Discrete · Relations, partial orders and lattices

    Let and let be the partial order on given by

    where means . A total order on contains if every pair of is also a pair of the total order.

    The number of total orders on that contain is ________.

    Solution NAT · 1 mark · no negative marking

    Remember

    Copied. Paste it into the new chat.Too long to send. Copy the question and solution by hand.

    Q.4COA · Main memory and secondary storage

    A disk rotates at 12000 rpm and has 500 sectors per track. Moving the head from a track to an adjacent track takes 0.5 ms, and seek time is proportional to the number of tracks crossed. The head is initially on track 20. A request reads, in this order:

    1. 6 randomly located sectors on track 35;
    2. a run of 200 consecutive sectors on track 10;
    3. 6 randomly located sectors on track 50.

    Assume that each randomly located sector is preceded by an average rotational latency of half a rotation; the run of consecutive sectors is preceded by one such average latency and is then read in a single sweep; reading one sector takes of a rotation; and all other overheads are zero.

    The total time to serve the request, in milliseconds, is

    Solution MCQ · 2 marks · −⅔ if wrong

    Remember

    Copied. Paste it into the new chat.Too long to send. Copy the question and solution by hand.

    Q.5DS · Pointers and dynamic memory

    Assume int is 4 bytes. What does the following C program print?

    #include <stdio.h>
    int main(void) {
        int a[6] = {4, 9, 2, 7};
        int *p = a + 3;
        int *q = &a[1];
        *q += *p;
        p--;
        *p = p - q;
        printf("%d %d %d", a[1], a[2], *(q + 3));
        return 0;
    }
    

    Solution MCQ · 1 mark · −⅓ if wrong

    Remember

    Copied. Paste it into the new chat.Too long to send. Copy the question and solution by hand.

    Q.6TOC · Context-free grammars

    Consider the following two context-free grammars over the terminal alphabet . In each grammar is the only non-terminal and the start symbol, and denotes the empty string.

    Which one of the following statements is CORRECT?

    Solution MCQ · 2 marks · −⅔ if wrong

    Remember

    Copied. Paste it into the new chat.Too long to send. Copy the question and solution by hand.

    Q.7Compilers · Bottom-up parsing

    Consider the context-free grammar with start symbol , non-terminals and terminals :

    Which ONE of the following statements is TRUE?

    Solution MCQ · 2 marks · −⅔ if wrong

    Remember

    Copied. Paste it into the new chat.Too long to send. Copy the question and solution by hand.

    Q.8OS · Processes, threads and system calls

    A single process has several threads. Which of the following are shared by all the threads of this process?

    Solution MSQ · 1 mark · no negative marking

    Remember

    Copied. Paste it into the new chat.Too long to send. Copy the question and solution by hand.

    Q.9DBMS · File organization and indexing

    A relation is stored as a data file sorted on attribute ; the file is not sorted on . A sparse index has entries for only some search-key values (for example, one entry per data block), and a lookup for a key that has no entry uses the entry with the largest indexed key not greater than it.

    Which one of the following indexes on this file can be sparse?

    Solution MCQ · 1 mark · −⅓ if wrong

    Remember

    Copied. Paste it into the new chat.Too long to send. Copy the question and solution by hand.

    Q.10Networks · IP fragmentation

    A host sends one UDP datagram carrying 2928 bytes of application data over IPv4. The UDP header is 8 bytes and every IPv4 header is 20 bytes (no options). The datagram must cross a link whose MTU is 1000 bytes, including the IP header. The DF bit is not set. Assume the router fragments greedily: while the remaining data does not fit in one fragment, it emits the largest fragment allowed and repeats on the rest; once the remaining data fits within the MTU, it sends it as the last fragment.

    Which ONE of the following gives the number of IP fragments and the fragment offset field value of the last fragment?

    Solution MCQ · 1 mark · −⅓ if wrong

    Remember

    Copied. Paste it into the new chat.Too long to send. Copy the question and solution by hand.

    Submit answers

    Solutions