Computer Science and Information Technology
GATE CSE kind:question PYQs
Build your understanding with focused practice from past exam papers.
Questions 441–450 of 975. Imported answers require independent review unless marked reviewed.
Question 51
Open questionCSMSQ2 marksNeeds review
Let
be a set and
denote the powerset of
. Define a binary operation
on
as follows:
Let
. Which of the following statements about
is/are correct?Your answerSelect all correct options. You can choose more than one.
Log in to check the answer
You can attempt this question now. Sign in to view the answer key, explanations and discussion.Log in to check answerQuestion 52
Open questionCSMSQ2 marksNeeds review
Suppose in a web browser, you click on the
www.gate-2023.in
URL. The browser cache is empty. The IP address for this URL is not cached in your local host, so a DNS lookup is triggered (by the local DNS server deployed on your local host) over the 3-tier DNS hierarchy in an iterative mode. No resource records are cached anywhere across all DNS servers. Let RTT denote the round trip time between your local host and DNS servers in the DNS hierarchy. The round trip time between the local host and the web server hosting www.gate-2023.in
is also equal to RTT. The HTML file associated with the URL is small enough to have negligible transmission time and negligible rendering time by your web browser, which references 10 equally small objects on the same web server. Which of the following statements is/are CORRECT about the minimum elapsed time between clicking on the URL and your browser fully rendering it?Your answerSelect all correct options. You can choose more than one.
Log in to check the answer
You can attempt this question now. Sign in to view the answer key, explanations and discussion.Log in to check answerQuestion 53
Open questionCSMSQ2 marksNeeds review
Consider a random experiment where two fair coins are tossed. Let
be the event that denotes HEAD on both the throws,
be the event that denotes HEAD on the first throw, and
be the event that denotes HEAD on the second throw. Which of the following statements is/are TRUE?Your answerSelect all correct options. You can choose more than one.
Log in to check the answer
You can attempt this question now. Sign in to view the answer key, explanations and discussion.Log in to check answerQuestion 54
Open questionCSMSQ2 marksNeeds review
Consider functions Function_1 and Function_2 expressed in pseudocode as follows:
Function_1
while
do
for
to
do
;
end for
;
end whileFunction_2
for
to
do
;
end forLet
and
denote the number of times the statement “
” is executed in Function_1 and Function_2, respectively. Which of the following statements is/are TRUE?Your answerSelect all correct options. You can choose more than one.
Log in to check the answer
You can attempt this question now. Sign in to view the answer key, explanations and discussion.Log in to check answerQuestion 55
Open questionCSMSQ2 marksNeeds review
Let
be a simple, finite, undirected graph with vertex set
. Let
denote the maximum degree of
and let
denote the set of all possible colors. Color the vertices of
using the following greedy strategy:
for
Which of the following statements is/are TRUE?
Your answerSelect all correct options. You can choose more than one.
Log in to check the answer
You can attempt this question now. Sign in to view the answer key, explanations and discussion.Log in to check answerQuestion 56
Open questionCSNAT2 marksNeeds review
Let
. Let
denote the power set of
. Consider an undirected graph
whose vertex set is
. For any
,
is an edge in
if and only if (i)
, and (ii) either
or
. For any vertex
in
, the set of all possible orderings in which the vertices of
can be visited in a Breadth First Search (BFS) starting from
is denoted by
. If
denotes the empty set, then the cardinality of
is ________.Log in to check the answer
You can attempt this question now. Sign in to view the answer key, explanations and discussion.Log in to check answerQuestion 57
Open questionCSNAT2 marksNeeds review
Consider the following two-dimensional array D in the C programming language, which is stored in row-major order:
int D[128][128];
Demand paging is used for allocating memory and each physical page frame holds 512 elements of the array D. The Least Recently Used (LRU) page-replacement policy is used by the operating system. A total of 30 physical page frames are allocated to a process which executes the following code snippet:
for (int i = 0; i < 128; i++)
for (int j = 0; j < 128; j++)
D[j][i] *= 10;
The number of page faults generated during the execution of this code snippet is ________.
Log in to check the answer
You can attempt this question now. Sign in to view the answer key, explanations and discussion.Log in to check answerQuestion 58
Open questionCSNAT2 marksNeeds review
Consider a computer system with 57-bit virtual addressing using multi-level tree-structured page tables with
levels for virtual to physical address translation. The page size is 4 KB (1 KB = 1024 B) and a page table entry at any of the levels occupies 8 bytes.The value of
is ________.Log in to check the answer
You can attempt this question now. Sign in to view the answer key, explanations and discussion.Log in to check answerQuestion 59
Open questionCSNAT2 marksNeeds review
Consider a sequence
of elements
, and
. The following operations are performed on a stack
and a queue
, both of which are initially empty.I: push the elements of
from
to
in that order into
.II: enqueue the elements of
from
to
in that order into
.III: pop an element from
.IV: dequeue an element from
.V: pop an element from
.VI: dequeue an element from
.VII: dequeue an element from
and push the same element into
.VIII: Repeat operation VII three times.
IX: pop an element from
.X: pop an element from
.The top element of
after executing the above operations is __________.Log in to check the answer
You can attempt this question now. Sign in to view the answer key, explanations and discussion.Log in to check answerQuestion 60
Open questionCSNAT2 marksNeeds review
Consider the syntax directed translation given by the following grammar and semantic rules. Here
,
,
and
are non-terminals.
is the starting non-terminal, and #, 0 and 1 are lexical tokens corresponding to input letters “#”, “0” and “1”, respectively.
denotes the synthesized attribute (a numeric value) associated with a non-terminal
.
and
denote occurrences of
and
on the right hand side of a production, respectively. For the tokens 0 and 1,
and
.Production | Semantic rule |
|---|---|
| |
| |
| |
| |
| |
| |
| |
The value computed by the translation scheme for the input string
is __________. (Rounded off to three decimal places)
Log in to check the answer
You can attempt this question now. Sign in to view the answer key, explanations and discussion.Log in to check answer