CS and IT Gate 2023 Questions with Answer

Ques 1 Gate 2023


We reached the station late, and _______ missed the train.

A

Mostly

B

Near

C

Utterly

D

Nearly


(d) is the correct answer.

Option a: Mostly
"We reached the station late, and mostly missed the train."
This doesn't make proper sense. "Mostly" means "for the most part" or "mainly," which doesn't fit well in this context.

Option b: Near
"We reached the station late, and near missed the train."
This is grammatically incorrect. "Near" is not the right form here.

Option c: Utterly
"We reached the station late, and utterly missed the train."
"Utterly" means "completely" or "absolutely." While grammatically possible, it sounds unnatural in this context.

Option d: Nearly
"We reached the station late, and nearly missed the train."
This is correct! "Nearly" means "almost" - so they almost missed the train but didn't actually miss it. This makes perfect sense with the context.

Ques 2 Gate 2023


Kind : ______ :: often : frequently

A

Type

B

Cruel

C

Mean

D

Kindly


(a) is the correct answer.

Ques 3 Gate 2023


f(x) and g(y) are function of x and y, respectively and f(x) = g(y) for all real values of x and y. Which one of the following options is necessary true?

A

f(x)=0 and g(y)=0

B

f(x) = g(y) = constant

C

f(x) + g(y) = f(x) - g(y)

D

f(x)≠constant and g(y)≠constant


(b) is the correct answer.

Ques 4 Gate 2023


A series of natural numbers 𝐹1, 𝐹2, 𝐹3, 𝐹4, 𝐹5, 𝐹6, 𝐹7, … obeys 𝐹𝑛+1 = 𝐹𝑛 + πΉπ‘›βˆ’1 for all integers 𝑛 β‰₯ 2 .
If 𝐹6 = 37, and 𝐹7 = 60, then what is 𝐹1 ?

A

4

B

5

C

8

D

9


(a) is the correct answer.

Ques 5 Gate 2023


Looking at the surface of a smooth 3-dimensional object from the outside, which one of the following options is TRUE?

A

The surface of the object must be concave everywhere.

B

The surface of the object must be convex everywhere.

C

The surface of the object may be concave in some places and convex in other places.

D

The object can have edges, but no corners.


(d) is the correct answer.

Ques 6 Gate 2023


The country of Zombieland is in distress since more than 75% of its working population is suffering from serious health issues. Studies conducted by competent health experts concluded that a complete lack of physical exercise among its working population was one of the leading causes of their health issues. As one of the measures to address the problem, the Government of Zombieland has decided to provide monetary incentives to those who ride bicycles to work. Based only on the information provided above, which one of the following statements can be logically inferred with certainty?

A

All the working population of Zombieland will henceforth ride bicycles to work.

B

Riding bicycles will ensure that all of the working population of Zombieland is free of health issues.

C

The health experts suggested to the Government of Zombieland to declare riding bicycles as mandatory.

D

The Government of Zombieland believes that riding bicycles is a form of physical exercise.


(d) is the correct answer.

Ques 7 Gate 2023


Which of the following statements is/are CORRECT?

A

The intersection of two recursively enumerable languages is recursively enumerable.

B

The intersection of two recursive languages is recursive.

C

The intersection of two context free languages is context free.

D

The intersection of two regular languages is regular.


(a,c,d) is the correct answer.

a) is correct

The class of recursively enumerable (RE) languages is closed under intersection.
If L1 and L2 are RE languages, then L1 ∩ L2 is also RE.
This can be done by constructing a Turing machine that runs the machines for both L1 and L2 in parallel and accepts if both accept.
For example:
Let L1 = { w | w contains at least one 'a' } and L2 = { w | w contains at least one 'b' }.
Their intersection is L1 ∩ L2 = { w | w contains both 'a' and 'b' }, which is RE.

b) is incorrect

The class of recursive languages is not always closed under intersection.
If L1 and L2 are recursive, their intersection L1 ∩ L2 might not necessarily be recursive because deciding membership in L1 ∩ L2 could require undecidable steps.
For example:
Let L1 = { w | w halts on input 0 } and L2 = { w | w halts on input 1 }.
Their intersection is L1 ∩ L2 = { w | w halts on both input 0 and input 1 }, which is not recursive because the halting problem is undecidable.

c) is incorrect

The class of context-free languages (CFLs) is not closed under intersection.
There exist CFLs L1 and L2 such that their intersection L1 ∩ L2 is not a CFL.
For example:
Let L1 = { an bn cm | n, m β‰₯ 0 } and L2 = { am bn cn | n, m β‰₯ 0 }.
Their intersection is L1 ∩ L2 = { an bn cn | n β‰₯ 0 }, which is not a CFL.

d) is correct

The class of regular languages is closed under intersection.
If L1 and L2 are regular, then L1 ∩ L2 is also regular.
This can be achieved using the product construction of finite automata.
For example:
Let L1 = { w | w starts with 'a' } and L2 = { w | w ends with 'b' }.
Their intersection is L1 ∩ L2 = { w | w starts with 'a' and ends with 'b' }, which is regular.

So, a, c, d is correct option

Ques 8 Gate 2023


Consider the following language L = {w ∈ {0,1}*| w does not contains three or more consecutive 1's}. The number of states in minimal DFA that accepts L is


(4) is the correct answer.

Ques 9 Gate 2023


Consider the following grammar:
S β€”> aSb|X
X β€”>aX|Xb|a|b
What can be said about the language generated by grammar?

A

The regular expression for language generated by the grammar is a*(a + b)b*

B

The language generated by the grammar is non-regular

C

The regular expression for language generated by the grammar is a* b*(a + b)

D

The regular expression for language generated by the grammar is (a + b)*


(a) is the correct answer.

Ques 10 GATE 2023


Consider the following statements regarding the front-end and back-end of a compiler.
S1: The front-end includes phases that are independent of the target hardware.
S2: The back-end includes phases that are specific to the target hardware.
S3: The back-end includes phases that are specific to the programming language used in the source code.
Identify the CORRECT option.

A

Only S1 is TRUE.

B

Only S1 and S2 are TRUE.

C

S1, S2, and S3 are all TRUE.

D

Only S1 and S3 are TRUE.


(b) is the correct answer.

Ques 11 GATE 2023


Which one of the following sequences when stored in an array at locations A[1],...,A[10] forms a max-heap?

A

23, 17, 10, 6, 13, 14, 1, 5, 7, 12

B

23, 17, 14, 7, 13, 10, 1, 5, 6, 12

C

23, 17, 14, 6, 13, 10, 1, 5, 7, 15

D

23, 14, 17, 1, 10, 13, 16, 12, 7, 5


(b) is the correct answer.

Ques 12 GATE 2023


Let SLLdel be a function that deletes a node in a singly-linked list given a pointer to the node and a pointer to the head of the list. Similarly, let DLLdel be another function that deletes a node in a doubly-linked list given a pointer to the node and a pointer to the head of the list.
Let n denote the number of nodes in each of the linked lists. Which one of the following choices is TRUE about the worst-case time complexity of SLLdel and DLLdel?

A

SLLdel is O(1) and DLLdel is O(n)

B

Both SLLdel and DLLdel are O(log(n))

C

Both SLLdel and DLLdel are O(1)

D

SLLdel is O(n) and DLLdel is O(1)


(d) is the correct answer.

Ques 13 GATE 2023


Consider the Deterministic Finite-state Automaton (DFA) A shown below. The DFA runs on the alphabet {0, 1}, and has the set of states {s,p,q,r}, with s being the start state and p being the only final state.

Which one of the following regular expressions correctly describes the language accepted by A?

A

1(0*11)*

B

0(0+1)*

C

1(0+11)*

D

1(110*)*


(a) is the correct answer.

Unique Visitor Count

Total Unique Visitors

Loading......