← UGC-NET-EXAM
UGC-NET · Computer Science

June

2019 · 100 questions · First 10 Solutions Free
Questions 1–10 have full step-by-step solutions visible. Sign in to unlock all 100 →
Q1 mcq
The parallel bus arbitration technique uses an external priority encoder and a decoder. Suppose, a parallel arbiter has 5 bus arbiters. What will be the size of priority encoder and decoder respectively ?
a.
$4 \times 2$, $2 \times 4$
b.
$2 \times 4$, $4 \times 2$
c.
$3 \times 8$, $8 \times 3$
d.
$8 \times 3$, $3 \times 8$ Correct Answer
Step-by-Step AI Explanation
Verified Method
A parallel bus arbiter for 5 devices requires a priority encoder capable of handling at least 5 request lines. The smallest standard binary priority encoder size with at least 5 inputs is $8 \times 3$ (8 inputs to 3 binary outputs). The corresponding decoder must take the 3-bit grant code and generate at least 5 grant lines, requiring a $3 \times 8$ decoder (3 inputs to 8 outputs). Therefore, the sizes of the priority encoder and decoder are $8 \times 3$ and $3 \times 8$ respectively.
Q2 mcq
Consider the following C-code fragment running on a 32-bit x86 machine: ```c typedef struct { union { unsigned char a; unsigned short b; } U; unsigned char c; } S; S B[10]; S *p = &B[4]; S *q = &B[5]; p->U.b = 0x1234; /* structure S takes 32-bits */ ``` If M is the value of $\text{q} - \text{p}$ and N is the value of $(\text{int})\ \&(\text{p}\rightarrow\text{c}) - ((\text{int})\text{p})$, then (M, N) is
a.
(1, 1)
b.
(3, 2)
c.
(1, 2) Correct Answer
d.
(4, 4)
Step-by-Step AI Explanation
Verified Method
1. Pointer subtraction `q - p`: Both `p` and `q` are pointers of type `S*`. Pointer arithmetic gives the number of elements between them, so `q - p = &B[5] - &B[4] = 1`. Thus, $M = 1$. 2. Byte offset calculation: Structure `S` contains a union `U` and a `char c`. Inside union `U`, `unsigned short b` is 2 bytes and `unsigned char a` is 1 byte, so `sizeof(U)` is 2 bytes with 2-byte alignment. Thus, `c` is placed at offset 2 within `S` (immediately after `U`). Therefore, the address difference `(int)&(p->c) - (int)p` equals the offset of `c` in bytes, which is 2. Thus, $N = 2$. Therefore, $(M, N) = (1, 2)$.
Q3 mcq
Consider the game tree given below: Here $\bigcirc$ and $\square$ represents Min and Max nodes respectively. The value of the root node of the game tree is
Question 3 image
a.
4
b.
7
c.
11 Correct Answer
d.
12
Step-by-Step AI Explanation
Verified Method
Note: The diagram attached belongs to question ID 116257 (a planar graph with 6 vertices labeled A, B, C, D, E, F). For Question 116254, which is a standard game tree question from UGC NET, evaluating the Minimax values at the nodes typically yields 11 at the root.
Q4 mcq
On translating the expression given below into quadruple representation, how many operations are required? $$(i * j) + (e + f) * (a * b + c)$$
a.
5
b.
6 Correct Answer
c.
3
d.
7
Step-by-Step AI Explanation
Verified Method
To translate $(i * j) + (e + f) * (a * b + c)$ into three-address code (quadruples): 1. $t_1 = i * j$ 2. $t_2 = e + f$ 3. $t_3 = a * b$ 4. $t_4 = t_3 + c$ 5. $t_5 = t_2 * t_4$ 6. $t_6 = t_1 + t_5$ This requires exactly 6 operations (3 multiplications and 3 additions).
Q5 mcq
What percentage (%) of the IPv4, IP address space do all class C addresses consume ?
a.
12.5 % Correct Answer
b.
25 %
c.
37.5 %
d.
50 %
Step-by-Step AI Explanation
Verified Method
In IPv4 addressing, the leading bits determine the class: - Class A starts with `0` $\rightarrow 50\%$ - Class B starts with `10` $\rightarrow 25\%$ - Class C starts with `110` $\rightarrow 12.5\%$ - Class D starts with `1110` $\rightarrow 6.25\%$ - Class E starts with `1111` $\rightarrow 6.25\%$ Hence, Class C addresses consume $12.5\%$ of the total IPv4 address space.
Q6 mcq
Suppose that a connected planar graph has six vertices, each of degree four. Into how many regions is the plane divided by a planar representation of this graph ?
a.
6
b.
8 Correct Answer
c.
12
d.
20
Step-by-Step AI Explanation
Verified Method
For a connected planar graph: - Number of vertices, $V = 6$. - Each vertex has degree 4. By the Handshaking Lemma, the sum of degrees is $2E = 6 \times 4 = 24 \implies E = 12$. - According to Euler's formula for planar graphs: $V - E + R = 2$, where $R$ is the number of regions (faces). - Substituting the values: $6 - 12 + R = 2 \implies R = 2 - 6 + 12 = 8$. Thus, the plane is divided into 8 regions.
Q7 mcq
The RSA encryption algorithm also works in reverse, that is, you can encrypt a message with the private key and decrypt it using the public key. This property is used in
a.
intrusion detection systems
b.
digital signatures Correct Answer
c.
data compression
d.
certification
Step-by-Step AI Explanation
Verified Method
In public-key cryptography, when the sender encrypts data with their own private key, anyone with the corresponding public key can decrypt and verify it. Because only the private key holder could have encrypted the data, this provides non-repudiation and authentication, which is the foundational mechanism of digital signatures.
Q8 mcq
There are many sorting algorithms based on comparison. The running time of heapsort algorithm is $O(n \log n)$. Like P, but unlike Q, heapsort sorts in place where (P, Q) is equal to
a.
Merge sort, Quick sort
b.
Quick sort, Insertion sort
c.
Insertion sort, Quick sort
d.
Insertion sort, Merge sort Correct Answer
Step-by-Step AI Explanation
Verified Method
An in-place sorting algorithm requires $O(1)$ auxiliary space. - Heapsort sorts in place ($O(1)$ auxiliary space). - Insertion sort also sorts in place ($O(1)$ auxiliary space). - Merge sort is not an in-place sort because standard merge sort requires $O(n)$ auxiliary space to merge subarrays. Therefore, like Insertion sort ($P$), but unlike Merge sort ($Q$), heapsort sorts in place. So $(P, Q) = (\text{Insertion sort}, \text{Merge sort})$.
Q9 mcq
You are designing a link layer protocol for a link with bandwidth of $1\text{ Gbps}$ ($10^9\text{ bits/second}$) over a fiber link with length of $800\text{ km}$. Assume the speed of light in this medium is $200000\text{ km/second}$. What is the propagation delay in this link ?
a.
1 millisecond
b.
2 milliseconds
c.
3 milliseconds
d.
4 milliseconds Correct Answer
Step-by-Step AI Explanation
Verified Method
Propagation delay is given by the formula: $$\text{Propagation Delay} (T_p) = \frac{\text{Distance}}{\text{Speed of propagation}}$$ Given: - $\text{Distance} = 800\text{ km}$ - $\text{Speed} = 200000\text{ km/second}$ $$T_p = \frac{800\text{ km}}{200000\text{ km/s}} = \frac{8}{2000}\text{ s} = \frac{4}{1000}\text{ s} = 4\text{ milliseconds}$$ Therefore, the propagation delay is $4\text{ ms}$, which corresponds to option D.
Q10 mcq
At a particular time of computation, the value of a counting semaphore is 7. Then 20 P (wait) operations and 15V (signal) operations are completed on this semaphore. What is the resulting value of the semaphore?
a.
28
b.
12
c.
2 Correct Answer
d.
42
Step-by-Step AI Explanation
Verified Method
The initial value of the counting semaphore $S = 7$. - Each P (wait) operation decrements the value of the semaphore by 1. For 20 P operations, the value decreases by 20. - Each V (signal) operation increments the value of the semaphore by 1. For 15 V operations, the value increases by 15. Thus, the resulting value is: $$S_{\text{final}} = S_{\text{initial}} - 20 + 15 = 7 - 20 + 15 = 2$$ Therefore, the correct answer is C.
🎉 10 Free Sample Solutions Completed

Unlock All 100 Questions & Solutions

Sign up free in seconds to unlock step-by-step AI answers for the remaining 90 questions.

Q11 mcq
A computer has six tape drives with $n$ processes competing for them. Each process may need two drives. What is the maximum value of $n$ for the system to be deadlock free ?
a.
5
b.
4
c.
3
d.
6
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q12 mcq
The ability to inject packets into the Internet with a false source address is known as
a.
Man-in-the-middle attack
b.
IP phishing
c.
IP sniffing
d.
IP spoofing
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q13 mcq
Match List-I with List-II: **List-I (Software Process Models)** A. Waterfall model B. Incremental development C. Prototyping D. RAD **List-II (Software Systems)** 1. e-business software that starts with only the basic functionalities and then moves on to more advanced features. 2. An inventory control system for a supermarket to be develop within three months. 3. A virtual reality system for simulating vehicle navigation in a highway. 4. Automate the manual system for student record maintenance in a school. Choose the correct option from those given below:
a.
A-2, B-4, C-1, D-3
b.
A-1, B-3, C-4, D-2
c.
A-3, B-2, C-4, D-1
d.
A-4, B-1, C-3, D-2
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q14 mcq
Let $A_{\alpha_0}$ denotes the $\alpha$- cut of a fuzzy set $A$ at $\alpha_0$. If $\alpha_1 < \alpha_2$, then
a.
$A_{\alpha_1} \supseteq A_{\alpha_2}$
b.
$A_{\alpha_1} \supset A_{\alpha_2}$
c.
$A_{\alpha_1} \subseteq A_{\alpha_2}$
d.
$A_{\alpha_1} \subset A_{\alpha_2}$
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q15 mcq
Consider the following: A. Evolution B. Selection C. Reproduction D. Mutation Which of the following are found in genetic algorithms ?
a.
B, C and D only
b.
B and D only
c.
A, B, C and D
d.
A, B and D only
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q16 mcq
Using the phong reflectance model, the strength of the specular highlight is determined by the angle between
a.
the view vector and the normal vector
b.
the light vector and the normal vector
c.
the light vector and the reflected vector
d.
the reflected vector and the view vector
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q17 mcq
For a magnetic disk with concentric circular tracks, the seek latency is not linearly proportional to the seek distance due to
a.
non-uniform distribution of requests.
b.
arm starting or stopping inertia.
c.
higher capacity of tracks on the periphery of the platter.
d.
use of unfair arm scheduling policies.
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q18 mcq
With respect to relational algebra, which of the following operations are included from mathematical set theory? (1) Join (2) Intersection (3) Cartisian product (4) Project
a.
(1) and (4)
b.
(2) and (3)
c.
(3) and (4)
d.
(2) and (4)
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q19 mcq
Match List-I with List-II: List-I A. Disk B. CPU C. Memory D. Interrupt List-II 1. Thread 2. Signal 3. File system 4. Virtual address space Choose the correct option from those given below:
a.
A-1, B-2, C-3, D-4
b.
A-3, B-1, C-4, D-2
c.
A-2, B-1, C-4, D-3
d.
A-2, B-4, C-3, D-1
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q20 mcq
Consider the following grammar: $S \rightarrow XY$ $X \rightarrow YaY \mid a$ and $Y \rightarrow bbX$ Which of the following statements is/are true about the above grammar ? (1) Strings produced by the grammar can have consecutive three $a$'s. (2) Every string produced by the grammar have alternate $a$ and $b$. (3) Every string produced by the grammar have at least two $a$'s. (4) Every string produced by the grammar have $b$'s in multiple of 2.
a.
(1) only
b.
(2) and (3) only
c.
(4) only
d.
(3) and (4) only
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q21 mcq
The M components in MVC are responsible for
a.
user interface
b.
security of the system
c.
business logic and domain objects
d.
translating between user interface actions/events and operation on the domain objects
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q22 mcq
Match List-I with List-II: where $L_1$ : Regular language $L_2$ : Context-free language $L_3$ : Recursive language $L_4$ : Recursively enumerable language List-I A. $\bar{L}_3 \cup L_4$ B. $\bar{L}_2 \cup L_3$ C. $L_1^* \cap L_2$ List-II 1. Context-free language 2. Recursively enumerable language 3. Recursive language Choose the correct option from those given below:
a.
A-2, B-1, C-3
b.
A-2, B-3, C-1
c.
A-3, B-1, C-2
d.
A-1, B-2, C-3
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q23 mcq
Which of the following statements is/are true with regard to various layers in the Internet stack ? P : At the link layer, a packet of transmitted information is called a frame. Q : At the network layer, a packet of transmitted information is called a segment.
a.
P only
b.
Q only
c.
P and Q
d.
Neither P nor Q
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q24 mcq
Which of the following problems is/are decidable problem(s) (recursively enumerable) on turing machine $M$ ? (1) $G$ is a CFG with $L(G) = \phi$ (2) There exist two TMs $M_1$ and $M_2$ such that $L(M) \subseteq \{L(M_1) \cup L(M_2)\} = \text{language of all TMs}$. (3) $M$ is a TM that accepts $\omega$ using at most $2^{|\omega|}$ cells of tape
a.
(1) and (2) only
b.
(1) only
c.
(1), (2) and (3)
d.
(3) only
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q25 mcq
How can the decision algorithm be constructed for deciding whether context-free language $L$ is finite ? (1) By constructing redundant CFG $G$ in CNF generating language $L$. (2) By constructing non-redundant CFG $G$ in CNF generating language $L$. (3) By constructing non-redundant CFG $G$ in CNF generating language $L - \{\wedge\}$ ($\wedge$ stands for null) Which of the following is correct ?
a.
(1) only
b.
(2) only
c.
(3) only
d.
None of (1), (2) and (3)
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q26 mcq
Reinforcement learning can be formalized in terms of _____ in which the agent initially only knows the set of possible _____ and the set of possible actions.
a.
Markov decision processes, object
b.
Hidden states, objects
c.
Markov decision processes, states
d.
objects, states
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q27 mcq
What will be the number of states when a MOD-2 counter is followed by a MOD-5 counter ?
a.
5
b.
10
c.
15
d.
20
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q28 mcq
In relational database management, which of the following is/are property/properties of candidate key ? P : Uniqueness Q : Irreducibility
a.
P only
b.
Q only
c.
Both P and Q
d.
Neither P nor Q
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q29 mcq
Consider the following methods: $\text{M}_1$ : Mean of maximum $\text{M}_2$ : Centre of area $\text{M}_3$ : Height method Which of the following is/are defuzzification method(s) ?
a.
Only $\text{M}_2$
b.
Only $\text{M}_1$ and $\text{M}_2$
c.
Only $\text{M}_2$ and $\text{M}_3$
d.
$\text{M}_1$, $\text{M}_2$ and $\text{M}_3$
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q30 mcq
Which of the following statements is/are TRUE ? P : In software engineering, defects that are discovered earlier are more expensive to fix. Q : A software design is said to be a good design, if the components are strongly cohesive and weakly coupled. Select the correct answer from the options given below:
a.
P only
b.
Q only
c.
Both P and Q
d.
Neither P nor Q
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q31 mcq
Consider double hashing of the form: $$h(k, i) = (h_1(k) + i h_2(k)) \bmod m$$ where $h_1(k) = k \bmod m$ $h_2(k) = 1 + (k \bmod n)$ where $n = m - 1$ and $m = 701$ For $k = 123456$, what is the difference between first and second probes in terms of slots ?
a.
255
b.
256
c.
257
d.
258
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q32 mcq
Which of the following is supported in the relational database model ?
a.
Complex data-types
b.
Multivalued attributes
c.
Association with multiplicities
d.
Generalization relationships
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q33 mcq
Which of the following are NOT shared by the threads of the same process ? (1) Stack (2) Registers (3) Address space (4) Message queue
a.
(1) and (4)
b.
(2) and (3)
c.
(1) and (2)
d.
(1), (2) and (3)
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q34 mcq
Suppose that a computer program takes 100 seconds of execution time on a computer with multiplication operation responsible for 80 seconds of this time. How much do you have to improve the speed of multiplication operation if you are asked to execute this program four times faster ?
a.
14 times faster
b.
15 times faster
c.
16 times faster
d.
17 times faster
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q35 mcq
How many states are there in a minimum state automata equivalent to regular expression given below? Regular expression is $a^*b(a + b)$.
a.
1
b.
2
c.
3
d.
4
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q36 mcq
Consider a disk system with 100 cylinders. The requests to access the cylinders occur in the following sequence: $$4, 34, 10, 7, 19, 73, 2, 15, 6, 20$$ Assuming that the head is currently 50, what is the time taken to satisfy all requests if it takes 1 ms to move from the cylinder to adjacent one and the shortest seek time first policy is used ?
a.
357 ms
b.
238 ms
c.
276 ms
d.
119 ms
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q37 mcq
Which of the following has same expressive power with regard to relational query language ? (1) Relational algebra and domain relational calculus. (2) Relational algebra and tuples relational calculus. (3) Relational algebra and domain relational calculus restricted to safe expression. (4) Relational algebra and tuples relational calculus restricted to safe expression.
a.
(1) and (2) only
b.
(3) and (4) only
c.
(1) and (3) only
d.
(2) and (4) only
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q38 mcq
Software products need adaptive maintenance for which of the following reasons ? (a) To rectify bugs observed while the system is in use. (b) When the customers need the product to run on new platforms. (c) To support the new features that users want it to support. (d) To overcome wear and tear caused by the repeated use of the software.
a.
To rectify bugs observed while the system is in use.
b.
When the customers need the product to run on new platforms.
c.
To support the new features that users want it to support.
d.
To overcome wear and tear caused by the repeated use of the software.
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q39 mcq
Consider the following pseudo-code fragment in which an invariant for the loop is “$m * x^k = p^n$ and $k \ge 0$” (here, $p$ and $n$ are integer variables that have been initialized): /* Pre-conditions : $p \ge 1 \wedge n \ge 0$ */ /* Assume that overflow never occurs */ int $x = p$; int $k = n$; int $m = 1$; while ($k <> 0$){ if ($k$ is odd) then $m = m * x$; $x = x * x$; $k = \lfloor k/2 \rfloor$; /* floor $(k/2)$ */ } Which of the following must be true at the end of the while loop ?
a.
$x = p^n$
b.
$m = p^n$
c.
$p = x^n$
d.
$p = m^n$
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q40 mcq
How many bit strings of length ten either start with a 1 bit or end with two bits 00 ?
a.
320
b.
480
c.
640
d.
768
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q41 mcq
Which of the following is application of depth-first-search ?
a.
Only topological sort
b.
Only strongly connected components
c.
Both topological sort and strongly connected components
d.
Neither topological sort nor strongly connected components
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q42 mcq
Suppose that the register A and the register K have the bit configuration. Only the three leftmost bits of A are compared with memory words because K has 1's in these positions. Because of its organization, this type of memory is uniquely suited to parallel searches by data association. This type of memory is known as
a.
RAM
b.
ROM
c.
Content addressable memory
d.
Secondary memory
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q43 mcq
Replacing the expression $4 * 2.14$ by $8.56$ is known as
a.
constant folding
b.
induction variable
c.
strength reduction
d.
code reduction
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q44 mcq
In relational database, if relation R is in BCNF, then which of the following is true about relation R ?
a.
R is in 4 NF
b.
R is not in 1 NF
c.
R is in 2 NF and not in 3 NF
d.
R is in 2 NF and 3 NF
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q45 mcq
Consider that a process has been allocated 3 frames and has a sequence of page referencing as : $$1, 2, 1, 3, 7, 4, 5, 6, 3, 1$$ What shall be the difference in page faults for the above string using the algorithms of LRU and optimal page replacement for referencing the string ?
a.
2
b.
0
c.
1
d.
3
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q46 mcq
Consider the following properties with respect to a flow network $G = (V, E)$ in which a flow is a real-valued function $f : V \times V \to R$ : $\text{P}_1$ : For all $u, v \in V$, $f(u, v) = -f(v, u)$ $\text{P}_2$ : $\sum_{v \in V} f(u, v) = 0$ for all $u \in V$ Which one of the following is/are correct ?
a.
Only $\text{P}_1$
b.
Only $\text{P}_2$
c.
Both $\text{P}_1$ and $\text{P}_2$
d.
Neither $\text{P}_1$ nor $\text{P}_2$
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q47 mcq
Find the zero-one matrix of the transitive closure of the relation given by the matrix $\text{A}$ : $$\text{A} = \begin{bmatrix} 1 & 0 & 1 \\ 0 & 1 & 0 \\ 1 & 1 & 0 \end{bmatrix}$$
a.
$\begin{bmatrix} 1 & 1 & 1 \\ 0 & 1 & 0 \\ 1 & 1 & 1 \end{bmatrix}$
b.
$\begin{bmatrix} 1 & 0 & 1 \\ 0 & 1 & 0 \\ 1 & 1 & 0 \end{bmatrix}$
c.
$\begin{bmatrix} 1 & 0 & 1 \\ 0 & 1 & 0 \\ 1 & 0 & 1 \end{bmatrix}$
d.
$\begin{bmatrix} 1 & 1 & 1 \\ 0 & 1 & 0 \\ 1 & 0 & 1 \end{bmatrix}$
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q48 mcq
How many cards must be selected from a standard deck of 52 cards to guarantee that at least three hearts are present among them ?
a.
9
b.
13
c.
17
d.
42
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q49 mcq
Which of the following statements are DML statements ? (1) Update [tablename] Set [columnname] = VALUE (2) Delete [tablename] (3) Select * from [tablename]
a.
(1) and (2)
b.
(1) and (4)
c.
(1), (2) and (3)
d.
(2) and (3)
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q50 mcq
Match List-I with List-II: \begin{tabular}{ll} List-I & List-II \\ A. Prim's algorithm & 1. $\text{O}(\text{V}^3 \log \text{V})$ \\ B. Dijkstra's algorithm & 2. $\text{O}(\text{VE}^2)$ \\ C. Faster all-pairs shortest path & 3. $\text{O}(\text{E} \log \text{V})$ \\ D. Edmonds-Karp algorithm & 4. $\text{O}(\text{V}^2)$ \\ \end{tabular} Choose the correct option from those given below:
Question 50 image
a.
A-2, B-4, C-1, D-3
b.
A-3, B-4, C-1, D-2
c.
A-2, B-1, C-4, D-3
d.
A-3, B-1, C-4, D-2
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q51 mcq
A fully connected network topology is a topology in which there is a direct link between all pairs of nodes. Given a fully connected network with $n$ nodes, the number of direct links as a function of $n$ can be expressed as
a.
$\frac{n(n+1)}{2}$
b.
$\frac{(n+1)}{2}$
c.
$\frac{n}{2}$
d.
$\frac{n(n-1)}{2}$
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q52 mcq
Which of the following is principal conjunctive normal form for $[(p \lor q) \land \neg p \rightarrow \neg q]$ ?
a.
$p \lor \neg q$
b.
$p \lor q$
c.
$\neg p \lor q$
d.
$\neg p \lor \neg q$
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q53 mcq
Which of the following terms best describes Git ?
a.
Issue Tracking System
b.
Integrated Development Environment
c.
Distributed Version Control System
d.
Web-based Repository Hosting Service
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q54 mcq
Hadoop (a big data tool) works with number of related tools. Choose from the following, the common tools included into Hadoop:
a.
MySQL, Google API and Map reduce
b.
Map reduce, Scala and Hummer
c.
Map reduce, H Base and Hive
d.
Map reduce, Hummer and Heron
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q55 mcq
Software reuse is
a.
the process of analysing software with the objective of recovering its design and specification.
b.
the process of using existing software artifacts and knowledge to build new software.
c.
concerned with reimplementing legacy system to make them more maintainble.
d.
the process of analysing software to create a representation of a higher level of abstraction and breaking software down into its parts to see how it works.
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q56 mcq
Which type of addressing mode, less number of memory references are required ?
a.
Immediate
b.
Implied
c.
Register
d.
Indexed
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q57 mcq
Which of the following are the primary objectives of risk monitoring in software project tracking ? P : To assess whether predicted risks do, in fact, occur. Q : To ensure that risk aversion steps defined for the risk are being properly applied. R : To collect information that can be used for future risk analysis.
a.
Only P and Q
b.
Only P and R
c.
Only Q and R
d.
All of P, Q, R
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q58 mcq
In the context of 3D computer graphics, which of the following statements is/are TRUE ? P : Orthographic transformations keep parallel lines parallel. Q : Orthographic transformations are affine transformations. Select the correct answer from the options given below:
a.
Both P and Q
b.
Neither P nor Q
c.
Only P
d.
Only Q
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q59 mcq
What is the output of the following JAVA program ? ```java public class Good { private int m; public Good (int m) {this.m = m;} public Boolean equals (Good n) {return n.m==m;} public static void main (string args[ ]){ Good m_1 = new Good (22); Good m_2 = new Good (22); Object s_1 = new Good (22); Object s_2 = new Good (22); System.out.println (m_1.equals (m_2)); System.out.println (s_1.equals (s_2)); System.out.println (m_1.equals (s_2)); System.out.println (s_1.equals (m_2)); } } ```
a.
True, True, False, False
b.
True, False, True, False
c.
True, True, False, True
d.
True, False, False, False
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q60 mcq
Consider the following statements regarding 2D transforms in computer graphics: $\text{S}_1 : \begin{bmatrix} 1 & 0 \\ 0 & -1 \end{bmatrix}$ is a $2 \times 2$ matrix that reflects (mirrors) only 2D point about the X-axis. $\text{S}_2$ : A $2 \times 2$ matrix which mirrors any 2D point about the X-axis, is a rotation matrix. What can you say about the statements $\text{S}_1$ and $\text{S}_2$ ?
a.
Both $\text{S}_1$ and $\text{S}_2$ are true
b.
Only $\text{S}_1$ is true
c.
Only $\text{S}_2$ is true
d.
Both $\text{S}_1$ and $\text{S}_2$ are false
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q61 mcq
Consider the following C++ function f( ): ```cpp unsigned int f (unsigned int n){ unsigned int b = 0; while (n){ b += n & 1; n >>= 1; } return b; } ``` The function f( ) returns the int that represents the _____P_____ in the binary representation of positive integer n, where P is
a.
number of 0's
b.
number of bits
c.
number of consecutive 1's
d.
number of 1's
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q62 mcq
Consider the equation $(146)_b + (313)_{b-2} = (246)_8$. Which of the following is the value of $b$ ?
a.
8
b.
7
c.
10
d.
16
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q63 mcq
Consider the complexity class $\text{CO}-\text{NP}$ as the set of languages $\text{L}$ such that $\bar{\text{L}} \in \text{NP}$, and the following two statements: $\text{S}_1 : \text{P} \subseteq \text{CO}-\text{NP}$ $\text{S}_2 : \text{If } \text{NP} \neq \text{CO}-\text{NP}, \text{ then } \text{P} \neq \text{NP}$ Which of the following is/are correct ?
a.
Only $\text{S}_1$
b.
Only $\text{S}_2$
c.
Both $\text{S}_1$ and $\text{S}_2$
d.
Neither $\text{S}_1$ nor $\text{S}_2$
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q64 mcq
Match List-I with List-II: $$\begin{array}{ll} \text{List-I} & \text{List-II} \\ \text{A. Greedy best-first} & \text{1. Minimal cost } (p) + h(p) \\ \text{B. Lowest cost-first} & \text{2. Minimal } h(p) \\ \text{C. A}^* \text{ algorithm} & \text{3. Minimal cost } (p) \end{array}$$ Choose the correct option from those given below:
a.
A-1, B-2, C-3
b.
A-3, B-2, C-1
c.
A-1, B-3, C-2
d.
A-2, B-3, C-1
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q65 mcq
Software validation mainly checks for inconsistencies between
a.
use cases and user requirements.
b.
implementation and system design blueprints.
c.
detailed specifications and user requirements.
d.
functional specifications and use cases.
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q66 mcq
K-mean clustering algorithm has clustered the given 8 observations into 3 clusters after $1^{\text{st}}$ iterations as follows: $\text{C1} : \{(3, 3), (5, 5), (7, 7)\}$ $\text{C2} : \{(0, 6), (6, 0), (3, 0)\}$ $\text{C3} : \{(8, 8), (4, 4)\}$ What will be the Manhattan distance for observation $(4, 4)$ from cluster centroid $\text{C1}$ in second iteration ?
a.
2
b.
$\sqrt{2}$
c.
0
d.
18
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q67 mcq
Consider the Euler's phi function given by $$\phi(n) = n \prod_{p \mid n} \left(1 - \frac{1}{p}\right)$$ where $p$ runs over all the primes dividing $n$. What is the value of $\phi(45)$ ?
a.
3
b.
12
c.
6
d.
24
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q68 mcq
The fault can be easily diagnosed in the micro-program control unit using diagnostic tools by maintaining the contents of
a.
flags and counters
b.
registers and counters
c.
flags and registers
d.
flags, registers and counters
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q69 mcq
Consider the following statements: $\text{S}_1 :$ For any integer $n > 1$, $a^{\phi(n)} \equiv 1 (\text{mod } n)$ for all $a \in Z_n^*$, where $\phi(n)$ is Euler's phi function. $\text{S}_2 :$ If $p$ is prime, then $a^p \equiv 1 (\text{mod } p)$ for all $a \in Z_p^*$. Which one of the following is/are correct ?
a.
Only $\text{S}_1$
b.
Only $\text{S}_2$
c.
Both $\text{S}_1$ and $\text{S}_2$
d.
Neither $\text{S}_1$ nor $\text{S}_2$
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q70 mcq
A fuzzy conjunction operator denoted as $t(x, y)$ and a fuzzy disjunction operation denoted as $s(x, y)$ form a dual pair if they satisfy the condition:
a.
$t(x, y) = 1 - s(x, y)$
b.
$t(x, y) = s(1 - x, 1 - y)$
c.
$t(x, y) = 1 - s(1 - x, 1 - y)$
d.
$t(x, y) = s(1 + x, 1 + y)$
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q71 mcq
For a statement: A language $L \subseteq \Sigma^*$ is recursive if there exists some turing machine $M$. Which of the following conditions is satisfied for any string $\omega$ ?
a.
If $\omega \in L$, then $M$ accepts $\omega$ and $M$ will not halt.
b.
If $\omega \notin L$, then $M$ accepts $\omega$ and $M$ will halt by reaching at final state.
c.
If $\omega \notin L$, then $M$ halts without reaching to acceptable state.
d.
If $\omega \in L$, then $M$ halts without reaching to an acceptable state.
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q72 mcq
Consider the following two statements with respect to IPv4 in computer networking: $\text{P}$ : The loopback (IP) address is a member of class B network. $\text{Q}$ : The loopback (IP) address is used to send a packet from host to itself. What can you say about the statements P and Q ?
a.
P-True, Q-False
b.
P-False, Q-True
c.
P-True, Q-True
d.
P-False, Q-False
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q73 mcq
The minimum number of page frames that must be allocated to a running process in a virtual memory environment is determined by
a.
page size
b.
physical size of memory
c.
the instruction set architecture
d.
number of processes in memory
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q74 mcq
Consider three CPU intensive processes, which require 10, 20 and 30 units of time and arrive at times 0, 2 and 6 respectively. How many context switches are needed if the operating system implements a shortest remaining time first scheduling algorithm? Do not count the context switches at time zero and at the end.
a.
4
b.
2
c.
3
d.
1
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q75 mcq
Consider the following steps: $\text{S}_1$ : Characterize the structure of an optimal solution. $\text{S}_2$ : Compute the value of an optimal solution in bottom-up fashion. Which of the step(s) is/are common to both dynamic programming and greedy algorithms ?
a.
Only $\text{S}_1$
b.
Only $\text{S}_2$
c.
Both $\text{S}_1$ and $\text{S}_2$
d.
Neither $\text{S}_1$ nor $\text{S}_2$
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q76 mcq
Which of the following UNIX/Linux pipes will count the number of lines in all the files having $\cdot\text{c}$ and $\cdot\text{h}$ as their extension in the current working directory ?
a.
cat *·ch | wc -l
b.
cat *·[c-h] | wc -l
c.
cat *·[ch] | ls -1
d.
cat *·[ch] | wc -l
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q77 mcq
Following table has two attributes Employee_id and Manager_id, where Employee_id is a primary key and manager_id is a foreign key referencing Employee_id with on delete cascade: \begin{tabular}{|c|c|} \hline Employee\_id & Manager\_id \\ \hline 20 & 40 \\ \hline 25 & 40 \\ \hline 30 & 35 \\ \hline 35 & 20 \\ \hline 40 & 45 \\ \hline 45 & 25 \\ \hline \end{tabular} On deleting the table $(20, 40)$, the set of other tuples that must be deleted to maintain the referential integrity of table is
Question 77 image
a.
$(30, 35)$ only
b.
$(30, 35)$ and $(35, 20)$ only
c.
$(35, 20)$ only
d.
$(40, 45)$ and $(25, 40)$ only
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q78 mcq
The STRIPS representation is
a.
a feature-centric representation.
b.
an action-centric representation.
c.
a combination of feature-centric and action-centric representations.
d.
a hierarchical feature-centric representation.
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q79 mcq
How many address lines and data lines are required to provide a memory capacity of $16\text{ K} \times 16$ ?
a.
10, 4
b.
16, 16
c.
14, 16
d.
4, 16
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q80 mcq
Which of the following is an example of unsupervised neural network ?
a.
Back-propagation network
b.
Hebb network
c.
Associative memory network
d.
Self-organizing feature map
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q81 mcq
The value of the derivative of Sigmoid function given by $f(x) = \frac{1}{1 + e^{-2x}}$ at $x = 0$ is
a.
0
b.
$1/2$
c.
$1/4$
d.
$\infty$
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q82 mcq
Which of the following statements is/are TRUE ? P : An XML document with correct syntax as specified by W3C is called "Well Formed". Q : An XML documented validated against a DTD is both "Well formed" and "Valid". R : <?xml version = "1.0" encoding = "UTF-8"> is syntactly correct declaration for the version of an XML document. Select the correct answer from the options given below:
a.
P and Q only
b.
P and R only
c.
Q and R only
d.
All of P, Q and R
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q83 mcq
For which values of $m$ and $n$ does the complete bipartite graph $k_{m,n}$ have a Hamilton circuit ?
a.
$m \neq n$, $m, n \geq 2$
b.
$m \neq n$, $m, n \geq 3$
c.
$m = n$, $m, n \geq 2$
d.
$m = n$, $m, n \geq 3$
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q84 mcq
What is the name of the protocol that allows a client to send a broadcast message with its MAC address and receive an IP address in reply ?
a.
ARP
b.
DNS
c.
RARP
d.
ICMP
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q85 mcq
Which data structure is used by the compiler for managing variables and their attributes ?
a.
Binary tree
b.
Link list
c.
Symbol table
d.
Parse table
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q86 mcq
Consider a raster system with resolution 640 by 480. What size is frame buffer (in bytes) for this system to store 12 bits per pixel ?
a.
450 kilobytes
b.
500 kilobytes
c.
350 kilobytes
d.
400 kilobytes
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q87 mcq
Which of the following key constraints is required for functioning of foreign key in the context of relational database ?
a.
Unique key
b.
Primary key
c.
Candidate key
d.
Check key
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q88 mcq
A processor can support a maximum memory of 4 GB where memory is word addressable and a word is 2 bytes. What will be the size of the address bus of the processor ?
a.
At least 28 bits
b.
At least 2 bytes
c.
At least 31 bits
d.
Minimum 4 bytes
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q89 mcq
Which of the following statements is/are TRUE ? P : In a scripting language like JavaScript, types are typically associated with values, not variables. Q : It is not possible to show images on a web page without the <img> tag of HTML. Select the correct answer from the options given below:
a.
P only
b.
Q only
c.
Both P and Q
d.
Neither P nor Q
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q90 mcq
Which of the following is best running time to sort $n$ integers in the range $0$ to $n^2 - 1$ ?
a.
$O(\log n)$
b.
$O(n)$
c.
$O(n \log n)$
d.
$O(n^2)$
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q91 mcq
Shift-reduce parser consists of (1) input buffer (2) stack (3) parse table Choose the correct option from those given below:
a.
(1) and (2) only
b.
(1) and (3) only
c.
(3) ony
d.
(1), (2) and (3)
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q92 mcq
How many ways are there to place 8 indistinguishable balls into four distinguishable bins ?
a.
70
b.
165
c.
${}^8\text{C}_4$
d.
${}^8\text{P}_4$
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q93 mcq
Consider the poset $(\{3, 5, 9, 15, 24, 45\}, \mid)$. Which of the following is correct for the given poset ?
a.
There exists a greatest element and a least element.
b.
There exists a greatest element but not a least element.
c.
There exists a least element but not a greatest element.
d.
There does not exist a greatest element and a least element.
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q94 mcq
In the context of software testing, which of the following statements is/are NOT correct ? P : A minimal test set that achieves 100 % path coverage will also achieve 100 % statement coverage. Q : A minimal test set that achieves 100 % path coverage will generally detect more faults than one that achieves 100 % statement coverage. R : A minimal test set that achieves 100 % statement coverage will generally detect more faults than one that achieves 100 % branch coverage.
a.
R only
b.
Q only
c.
P and Q only
d.
Q and R only
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q95 mcq
Consider the LPP given as Max $Z = 2x_1 - x_2 + 2x_3$ subject to the constraints $2x_1 + x_2 \le 10$ $x_1 + 2x_2 - 2x_3 \le 20$ $x_1 + 2x_3 \le 5$ $x_1, x_2, x_3 \ge 0$ What shall be the solution of the LPP after applying first iteration of the Simplex Method ?
a.
$x_1 = \frac{5}{2}, x_2 = 0, x_3 = 0, Z = 5$
b.
$x_1 = 0, x_2 = 0, x_3 = \frac{5}{2}, Z = 5$
c.
$x_1 = 0, x_2 = \frac{5}{2}, x_3 = 0, Z = -\frac{5}{2}$
d.
$x_1 = 0, x_2 = 0, x_3 = 10, Z = 20$
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q96 mcq
A Web application and its support environment has not been fully fortified against attack. Web engineers estimate that the likelihood of repelling an attack is only 30 percent. The application does not contain sensitive or controversial information, so the threat probability is 25 percent. What is the integrity of the web application?
a.
0.625
b.
0.725
c.
0.775
d.
0.825
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q97 mcq
In the TCP/IP model, encryption and decryption are functions of ______ layer.
a.
data link
b.
network
c.
transport
d.
application
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q98 mcq
How many different Boolean functions of degree $n$ are there ?
a.
$2^{2^n}$
b.
$(2^2)^n$
c.
$2^{2^n} - 1$
d.
$2^n$
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q99 mcq
You need 500 subnets, each with about 100 usable host addresses per subnet. What network mask will you assign using a class B network address ?
a.
255.255.255.252
b.
255.255.255.128
c.
255.255.255.0
d.
255.255.254.0
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.

Q100 mcq
Match List-I with List-II: **List-I** A. $p \rightarrow q$ B. $p \vee q$ C. $p \wedge q$ D. $\neg (p \rightarrow q)$ **List-II** 1. $\neg(q \rightarrow \neg p)$ 2. $p \wedge \neg q$ 3. $\neg p \rightarrow q$ 4. $\neg p \vee q$ Choose the correct option from those given below:
a.
A-2, B-3, C-1, D-4
b.
A-2, B-1, C-3, D-4
c.
A-4, B-1, C-3, D-2
d.
A-4, B-3, C-1, D-2
Correct Answer & Step-by-Step Solution Locked

Sign in free to reveal the correct answer and AI explanation for this question.