GateHub
Search 1,560+ PYQs... /
v2026.1 · Verified GATE CS & DA Question Bank ·
1,561 Questions

Where GATE aspirants
build peak excellence.

The complete, high-performance platform for GATE Computer Science (CS) and Data Science & AI (DA). Realistic CBT mock simulators, 18+ years of solved papers, spaced-repetition flashcards, and verified NPTEL lectures.

Start Free Preparation Launch CBT Simulator
gatehub/evaluator.py · CS 2024 Session 1 Q.38 (NAT)
Verified Solution

# GATE CS & DA Computer-Based Test (CBT) Real-Time Simulator

from gatehub.engine import TestSession, Evaluator, LatexParser


session = TestSession(subject="CS", year=2024, mode="CBT_OFFICIAL")

print(f"Loaded {session.total_questions} questions across {session.total_marks} marks.")

>> Loaded 65 questions across 100 marks. Virtual Scientific Calculator initialized.


Q.38 · Algorithms (Graph Theory) Marks: 2.0 | Negative: 0.00

Consider a directed acyclic graph \(G = (V, E)\) with \(|V| = n\) vertices. The maximum number of edges in \(G\) such that no cycles are formed is \(\frac{n(n-1)}{2}\).

Engineered for GATE High-Rankers

Everything you need to master concepts, practice mock tests, and eliminate weak areas.

1:1 Authentic CBT Simulator

Replicates the exact TCS iON test environment used in the real GATE examination. Includes question palettes (Answered, Marked for Review, Not Visited), negative marking logic, and a fully functional GATE virtual scientific calculator.

180 min Full Mock Duration
65 Qs Standard Pattern
MCQ / MSQ / NAT Question Types

Study Contribution Heatmap

Track your preparation consistency with GitHub-style daily practice heatmaps and Pomodoro session logs.

Curated Master Sets

Pre-packaged problem sets targeting high-yield subjects: Discrete Math, Operating Systems, DBMS, Machine Learning, and Probability.

3D Formula Flashcards

Master critical formulas, complexity theorems, and architectural definitions with interactive spaced-repetition flashcard decks.

NPTEL & Video Lectures

Directly syllabus-mapped video lectures from top IIT professors and standard GATE educators integrated right into your study flow.

Compliant with Indian DPDP Act 2023

Your Personal Data is Sovereign & Protected

GateHub strictly complies with the Digital Personal Data Protection Act, 2023 (DPDP Act). We practice purpose limitation, zero third-party data brokering, transparent consent mechanisms, and easy data erasure. All candidate test records and authentication tokens are encrypted and hosted securely within India (ap-hyderabad-1).