tutor.org.in

GATE Computer Science and Information Technology (CS) · Day 205 of 300

Day 205.

Choose an answer, check it, and read why each option is right or wrong.

GA-1 · General Aptitude: quantitative

Time and work

  1. 1. A alone can do a piece of work in 30 days and B alone in 60 days. They work together for 18 days, after which B leaves. In how many more days will A finish the work?

    Options for problem 1

GA-2 · General Aptitude: analytical

Direction sense

  1. 2. Starting from home, Ravi walks 4 km north, turns left and walks 3 km, turns left again and walks 1 km, then turns right and walks 1 km. How far is he from home, and in which direction?

    Options for problem 2

EM · Engineering Mathematics

Probability and statistics

  1. 3. A condition affects 2% of a population. A test detects it in 99% of those who have it and gives a false positive in 5% of those who do not. A person tests positive. What is the probability they have the condition?

    Options for problem 3

Subject · Computer Science and Information Technology

Algorithms

  1. 4. An undirected weighted graph has edges A–B (8), A–C (7), A–D (7), B–E (8), B–D (9), D–C (7), C–B (5). What is the length of the shortest path from A to E?

    Options for problem 4
  2. 5. What does T(n) = 2T(n/2) + n^2 solve to?

    Options for problem 5
  3. 6. Which bottom-up parser accepts the largest class of grammars? (revision: Compiler design)

    Options for problem 6

Written by TUTOR for its own practice library. A subject’s problems appear once a reviewer has approved its questions.