My Cart
Your Cart 0

    Your cart is empty.

  • Total (Amount) ₹0.00
Previous year question hub

Logic - General Aptitude - General Aptitude (GA) Previous Year Questions

Practice Logic - General Aptitude - General Aptitude (GA) previous year questions organised from real papers, with year-wise coverage and clear topic navigation.

9Papers
7Years
44Questions
1Topics

Logic question pattern

Every graph below is calculated only from this selection.

Questions by year

Year-wise coverage for Logic. Each bar uses a separate theme-derived color.

Difficulty distribution

How the classified questions are distributed by difficulty.

Medium 27 61.4%
Easy 14 31.8%
Hard 3 6.8%

Question type distribution

MCQ, numerical, multiple-select and other formats found in these papers.

MCQ 39 88.6%
Numerical Answer Type (NAT) 5 11.4%

Subject weightage

Top subjects by unique question coverage.

General Aptitude (GA)
44 Qs

Most asked topics

Top topics across the included previous year papers.

General Aptitude
44 Qs

Subtopic coverage

Top subtopics inside this exact selection.

Logic
44 Qs

Paper coverage

Question coverage for the most populated papers. Every active PYP paper remains listed below.

Computer Science and Information Technology (CS) 2026
2 Qs
Computer Science & Information Technology (CS) 2025 [Session 2]
1 Qs
Computer Science & Information Technology (CS) 2024 [Session 2]
1 Qs
Computer Science & Information Technology (CS) 2023 [Session 2]
1 Qs
Computer Science & Information Technology (CS) 2020 [Session 2]
1 Qs
Computer Science & Information Technology (CS) 2015 [Session 1]
11 Qs
Computer Science & Information Technology (CS) 2015 [Session 2]
11 Qs
Computer Science & Information Technology (CS) 2015 [Session 3]
8 Qs
Computer Science & Information Technology (CS) 2012
8 Qs

Included previous year papers

Newest papers appear first. Sort by year, question coverage or name.

PaperYear / sessionQuestions in this viewOpen
Computer Science and Information Technology (CS) 202620262View paper
Computer Science & Information Technology (CS) 2025 [Session 2]20251View paper
Computer Science & Information Technology (CS) 2024 [Session 2]20241View paper
Computer Science & Information Technology (CS) 2023 [Session 2]20231View paper
Computer Science & Information Technology (CS) 2020 [Session 2]20201View paper
Computer Science & Information Technology (CS) 2015 [Session 1]201511View paper
Computer Science & Information Technology (CS) 2015 [Session 2]201511View paper
Computer Science & Information Technology (CS) 2015 [Session 3]20158View paper
Computer Science & Information Technology (CS) 201220128View paper

All Logic previous year questions

Practice every matching question in batches of 20, with every available option.

1
2012 · General Aptitude (GA) · General Aptitude · Logic
Computer Science & Information Technology (CS) 2012
Q.2 Which of the following is TRUE?
Open complete paper
2
2012 · General Aptitude (GA) · General Aptitude · Logic
Computer Science & Information Technology (CS) 2012
Q.3 What will be the output of the following C program segment?
char inChar = 'A' ;
switch ( inChar ) {
case 'A' : printf ("Choice A\n") ;
case 'B' :
case 'C' : printf ("Choice B") ;
case 'D' :
case 'E' :
default : printf ( " No Choice" ) ; }
Open complete paper
3
2012 · General Aptitude (GA) · General Aptitude · Logic
Computer Science & Information Technology (CS) 2012
Q.14 Given the basic ER and relational models, which of the following is INCORRECT?
Open complete paper
4
2012 · General Aptitude (GA) · General Aptitude · Logic
Computer Science & Information Technology (CS) 2012
Q.15 Which of the following statements are TRUE about an SQL query?
P : An SQL query can contain a HAVING clause even if it does not have a GROUP BY clause
Q : An SQL query can contain a HAVING clause only if it has a GROUP BY clause
R : All attributes used in the GROUP BY clause must appear in the SELECT clause
S : Not all attributes used in the GROUP BY clause need to appear in the SELECT clause
Open complete paper
5
2012 · General Aptitude (GA) · General Aptitude · Logic
Computer Science & Information Technology (CS) 2012
Q.20 Register renaming is done in pipelined processors
Open complete paper
6
2012 · General Aptitude (GA) · General Aptitude · Logic
Computer Science & Information Technology (CS) 2012
Which of the following graphs is isomorphic to

Question diagram

Open complete paper
7
2012 · General Aptitude (GA) · General Aptitude · Logic
Computer Science & Information Technology (CS) 2012

Consider the directed graph shown in the figure below. There are multiple shortest paths between vertices S and T. Which one will be reported by Dijkstra’s shortest path algorithm? Assume that, in any iteration, the shortest path to a vertex v is updated only when a strictly shorter path to v is discovered.

Question diagram

Open complete paper
8
2012 · General Aptitude (GA) · General Aptitude · Logic
Computer Science & Information Technology (CS) 2012
The height of a tree is defined as the number of edges on the longest path in the tree. The function shown in the pseudocode below is invoked as height(root) to compute the height of a binary tree rooted at the tree pointer root.

int height(treeprt n)
{ if (n == NULL) return -1;
if (n → left == NULL)
if (n → right == NULL) return 0;
else return B1 ; // Box 1
else { h1 = height (n → left);
if (n → right == NULL) return (1+h1);
else { h2 = height (n → right);
return B2 ; // Box 2
}
}
}

The appropriate expressions for the two boxes B1 and B2 are
Open complete paper
9
2015 · General Aptitude (GA) · General Aptitude · Logic
Computer Science & Information Technology (CS) 2015 [Session 1]
Match the following:
(P) Condition coverage      (i) Black-box testing
(Q) Equivalence class partitioning      (ii) System testing
(R) Volume testing      (iii) White-box testing
(S) Alpha testing      (iv) Performance testing

(A) P-ii, Q-iii, R-i, S-iv
(B) P-iii, Q-iv, R-ii, S-i
(C) P-iii, Q-i, R-iv, S-ii
(D) P-iii, Q-i, R-ii, S-iv
Open complete paper
10
2015 · General Aptitude (GA) · General Aptitude · Logic
Computer Science & Information Technology (CS) 2015 [Session 1]
Which of the following is/are correct inorder traversal sequence(s) of binary search tree(s)?
I.   3, 5, 7, 8, 15, 19, 25
II.   5, 8, 9, 12, 10, 15, 25
III.   2, 7, 10, 8, 14, 16, 20
IV.   4, 6, 7, 9 18, 20, 25

(A) I and IV only
(B) II and III only
(C) II and IV only
(D) II only
Open complete paper
11
2015 · General Aptitude (GA) · General Aptitude · Logic
Computer Science & Information Technology (CS) 2015 [Session 1]
Which one of the following is TRUE at any valid state in shift-reduce parsing?
(A) Viable prefixes appear only at the bottom of the stack and not inside
(B) Viable prefixes appear only at the top of the stack and not inside
(C) The stack contains only a set of viable prefixes
(D) The stack never contains viable prefixes
Open complete paper
12
2015 · General Aptitude (GA) · General Aptitude · Logic
Computer Science & Information Technology (CS) 2015 [Session 1]
For computers based on three-address instruction formats, each address field can be used to specify which of the following: (S1) A memory operand (S2) A processor register (S3) An implied accumulator register
Open complete paper
13
2015 · General Aptitude (GA) · General Aptitude · Logic
Computer Science & Information Technology (CS) 2015 [Session 1]
Suppose two hosts use a TCP connection to transfer a large file. Which of the following statements is/are FALSE with respect to the TCP connection? I. If the sequence number of a segment is \( m \), then the sequence number of the subsequent segment is always \( m+1 \). II. If the estimated round trip time at any given point of time is \( t \) sec, the value of the retransmission timeout is always set to greater than or equal to \( t \) sec. III. The size of the advertised window never changes during the course of the TCP connection. IV. The number of unacknowledged bytes at the sender is always less than or equal to the advertised window.
Open complete paper
14
2015 · General Aptitude (GA) · General Aptitude · Logic
Computer Science & Information Technology (CS) 2015 [Session 1]
Which of the following statements is/are FALSE? I. XML overcomes the limitations in HTML to support a structured way of organizing content. II. XML specification is not case sensitive while HTML specification is case sensitive. III. XML supports user defined tags while HTML uses pre-defined tags. IV. XML tags need not be closed while HTML tags must be closed.
Open complete paper
15
2015 · General Aptitude (GA) · General Aptitude · Logic
Computer Science & Information Technology (CS) 2015 [Session 1]
SELECT operation in SQL is equivalent to
Open complete paper
16
2015 · General Aptitude (GA) · General Aptitude · Logic
Computer Science & Information Technology (CS) 2015 [Session 1]
Consider the following C program segment.
while(first <= last)
{
if (array[middle] < search)
first = middle + 1;
else if (array[middle] == search)
found = TRUE;
else last = middle - 1;
middle = (first + last)/2;
}
if (first > last) notPresent = TRUE;
The cyclomatic complexity of the program segment is ________.
Open complete paper
17
2015 · General Aptitude (GA) · General Aptitude · Logic
Computer Science & Information Technology (CS) 2015 [Session 1]
Consider the NPDA (Q = {q0, q1, q2}, Σ = {0,1}, Γ = {0,1,⊥}, δ, q0, ⊥, F = {q2}), where (as per usual convention) Q is the set of states, Σ is the input alphabet, Γ is the stack alphabet, δ is the state transition function, q0 is the initial state, ⊥ is the initial stack symbol, and F is the set of accepting states. The state transition is as follows: [Diagram of NPDA] Which one of the following sequences must follow the string 101100 so that the overall string is accepted by the automaton?

Question diagram

Open complete paper
18
2015 · General Aptitude (GA) · General Aptitude · Logic
Computer Science & Information Technology (CS) 2015 [Session 1]
Let G = (V, E) be a simple undirected graph, and s be a particular vertex in it called the source. For x ∈ V, let d(x) denote the shortest distance in G from s to x. A breadth first search (BFS) is performed starting at s. Let T be the resultant BFS tree. If (u,v) is an edge of G that is not in T, then which one of the following CANNOT be the value of d(u) – d(v)?
Open complete paper
19
2015 · General Aptitude (GA) · General Aptitude · Logic
Computer Science & Information Technology (CS) 2015 [Session 1]
The graph shown below has 8 edges with distinct integer edge weights. The minimum spanning tree (MST) is of weight 36 and contains the edges: {(A, C), (B, C), (B, E), (E, F), (D, F)}. The edge weights of only those edges which are in the MST are given in the figure shown below. The minimum possible sum of weights of all 8 edges of this graph is __________.

Question diagram

Open complete paper
20
2015 · General Aptitude (GA) · General Aptitude · Logic
Computer Science & Information Technology (CS) 2015 [Session 2]
Consider the following function written in the C programming language.
void foo(char *a) { if ( *a && *a != ' ') { foo(a+1); putchar(*a); } }
The output of the above function on input “ABCD EFGH” is
Open complete paper

Showing 20 of 43 questions