>
questions
List of practice Questions
Which of the following is FALSE?
AP PGECET - 2025
AP PGECET
Theory of Computation
Regular expressions and finite automata
Let \( P \) be a regular language and \( Q \) be a context free language such that \( Q \) is a subset of \( P \). Then which of the following is ALWAYS regular?
AP PGECET - 2025
AP PGECET
Theory of Computation
Regular expressions and finite automata
If the production rules are given as:
\( S \to XY | W \)
\( X \to aXb | \epsilon \)
\( Y \to cY | \epsilon \)
\( W \to aWc | bZ | \epsilon \)
\( Z \to bZ | \epsilon \)
Then the language generated by these rules is _______ .
AP PGECET - 2025
AP PGECET
Theory of Computation
Context Free Languages and Pushdown Automata
Subset Construction method refers to _______ .
AP PGECET - 2025
AP PGECET
Computer Science & Information Technology
Newton Raphson Method
The output of a syntax-directed translation scheme is _______ .
AP PGECET - 2025
AP PGECET
Computer Science & Information Technology
Computer Architecture
Which of the following is a regular language?
AP PGECET - 2025
AP PGECET
Theory of Computation
Regular expressions and finite automata
The maximum number of transitions which can be performed over a state in a DFA? \( \Sigma = \{a, b, c\} \)
AP PGECET - 2025
AP PGECET
Theory of Computation
Regular expressions and finite automata
The minimum number of nodes in a DFA that recognizes strings over \( \{a, b\} \) with length mod 3 = 0 are _______ .
AP PGECET - 2025
AP PGECET
Theory of Computation
Regular expressions and finite automata
Inherited attributes in SDTs are used for _______ .
AP PGECET - 2025
AP PGECET
Computer Science & Information Technology
Computer Architecture
The language \( L = \{M | M \text{ halts on all inputs}\} \) is _______ .
AP PGECET - 2025
AP PGECET
Computer Science & Information Technology
Cloud Computing
A problem is NP-complete if it is _______ .
AP PGECET - 2025
AP PGECET
Computer Science & Information Technology
Cloud Computing
One way to build a heap is to start at the end of the array (the leaves) and push each new value up to the root. Its time complexity is _______ .
AP PGECET - 2025
AP PGECET
Computer Science & Information Technology
Data Structures
The time complexity to compute the 15\(^\text{th}\) Fibonacci number using dynamic programming is _______ .
AP PGECET - 2025
AP PGECET
Computer Science & Information Technology
Data Structures
If the recursive call keeps calculating the same things over and over again, we can use _______ which stores partial results already calculated and to be used again.
AP PGECET - 2025
AP PGECET
Computer Science & Information Technology
Data Structures
The _______ process updates the costs of all the vertices \(V\), connected to a vertex \(U\), if we could improve the best estimate of the shortest path to \(V\) by including \((U,V)\) in the path to \(V\).
AP PGECET - 2025
AP PGECET
Computer Science & Information Technology
Data Structures
A threaded binary tree is a binary tree in which every node that does not have right child has a thread to its _______.
AP PGECET - 2025
AP PGECET
Computer Science & Information Technology
Data Structures
Best case complexity of insertion sorting is _______ .
AP PGECET - 2025
AP PGECET
Computer Science & Information Technology
Data Structures
Which notation represents the tightest upper bound of an algorithm’s running time?
AP PGECET - 2025
AP PGECET
Computer Science & Information Technology
Data Structures
The greedy approach is optimal for _______ .
AP PGECET - 2025
AP PGECET
Computer Science & Information Technology
Data Structures
The minimum possible time complexity to sort \(n\) integers in the range [1, \(n^2\)] is _______ .
AP PGECET - 2025
AP PGECET
Computer Science & Information Technology
Data Structures
If one wants to add and delete elements quickly without reshuffling the rest, then which data structure suits the best?
AP PGECET - 2025
AP PGECET
Computer Science & Information Technology
Data Structures
What is the time complexity to insert an element at the beginning of a dynamic array?
AP PGECET - 2025
AP PGECET
Computer Science & Information Technology
Data Structures
The recurrence T(n) = 2T(n/2) + n has a solution of _______.
AP PGECET - 2025
AP PGECET
Computer Science & Information Technology
Data Structures
The height of a binary tree with 31 nodes (assuming no single-child nodes) is _______.
AP PGECET - 2025
AP PGECET
Computer Science & Information Technology
Data Structures
The inorder traversal of a BST gives elements in _______.
AP PGECET - 2025
AP PGECET
Computer Science & Information Technology
Data Structures
Prev
1
...
48
49
50
51
52
...
5726
Next