GATE (PG Engineering) Computer Science Mock Test
8 free timed sets ยท 397 questions ยท 0 easy / 186 moderate / 211 hard ยท solutions for every question
All Computer Science sets
Sample Computer Science questions
1. What is penetration testing?
- (A) A procedure for testing libraries or other program components for vulnerabilities
- (B) A security-minded form of unit testing that applies early in the development process
- (C) Whole-system testing for security flaws and bugs
- (D) All of the above
Show answer
(C) Whole-system testing for security flaws and bugs. Correct answer: Whole-system testing for security flaws and bugs.
2. Which Nmap scan is does not completely open a TCP connection?
- (A) ACK scan
- (B) XMAS tree scan
- (C) TCP connect
- (D) SYN stealth scan
Show answer
(D) SYN stealth scan. Correct answer: SYN stealth scan.
3. An algorithm for finding the average of N numbers is average = sum / N, where N and sum are both integers. In a program using this algorithm, a programmer forgot to include a test that would check for N equal to zero. If N is zero, when will the error be detected?
- (A) At compile time
- (B) At edit time
- (C) During run time
- (D) As soon as the value of N is entered
Show answer
(C) During run time. Correct answer: During run time.
GATE (PG Engineering) Computer Science โ FAQs
Is the GATE (PG Engineering) Computer Science mock test free?
Yes. All 8 Computer Science sets are free, need no signup, and give instant scores with a solution for every question.
How many Computer Science questions are there for GATE (PG Engineering)?
397 questions across 8 sets: 0 easy, 186 moderate and 211 hard.
Will I get the same questions again?
No. Each attempt draws a fresh random subset, shuffles the order and options, and prefers questions you have not seen on this device. The Surprise Set draws from the whole subject pool.
Can I choose difficulty and timer?
Yes โ pick Easy, Moderate, Hard or Mixed, and choose no timer, 10 or 20 minutes, or the real exam pace.