General MCQs
1372 questions available
FILTER BY SUBTOPIC
Q681.The binary addition of two high bits results?
Correct Answer: C
In binary, adding 1 + 1 equals 10 (decimal 2).
Q682.What is use of NVMe in SSD?
Correct Answer: C
NVMe (Non-Volatile Memory Express) provides rapid data transfer and reduced latency by communicating via the PCIe lane.
Q683.1024 kilobytes is equal to ____?
Correct Answer: C
1024 KB is equivalent to 1 Megabyte (MB).
Q684.Why do responsive layouts follow a mobile-first approach?
Correct Answer: B
Mobile-first styling ensures functional design on constrained viewports before adding desktop enhancements.
Q685.Which CSS property is used for stacking order?
Correct Answer: A
The z-index property determines the three-dimensional layering (stacking order) of positioned elements.
Q686.Which CSS property is used for rounded corners?
Correct Answer: A
The border-radius property is used in CSS to style rounded corners.
Q687.Which of the following is correct for a Red-Black Tree?
Correct Answer: C
A Red-Black Tree enforces that the root node must be colored black.
Q688.What happens if a single interface contains too many unrelated methods?
Correct Answer: B
The Interface Segregation Principle (ISP) states that clients shouldn't be forced to depend on methods they do not use.
Q689.How does Floyd–Warshall handle negative edge weights?
Correct Answer: B
The Floyd–Warshall algorithm computes shortest paths between all pairs of vertices. It supports negative edge weights, as long as there are no negative cycles.
Q690.Reducing false negatives in a classification task usually results in?
Correct Answer: C
Tuning a classifier to minimize false negatives (misses) usually shifts the decision boundary, increasing false positives.
Q691.Which SDLC model is best for projects with clearly defined requirements and little expected change?
Correct Answer: B
The classical Waterfall model is a rigid, sequential life cycle ideal for well-understood projects with fixed requirements.
Q692.Which principle ensures that data is not altered by unauthorized users?
Correct Answer: B
Integrity ensures that data is accurate and unaltered. It protects against unauthorized modifications or tampering.
Q693.console.log([] + [])
Correct Answer: B
In JavaScript, the + operator performs string concatenation if any operand is a string. [] (an empty array) is converted to an empty string when used with +. So [] + [] becomes "" + "" -> "" (empty string). This is due to type coercion in JavaScript. The result is not undefined, [], or 0—it's an empty string.
Q694.console.log([..."hello"])
Correct Answer: C
The spread operator ... in JavaScript expands iterable objects like strings or arrays. "hello" is a string, which is iterable. [..."hello"] spreads each character into a new array. Resulting array: ['h', 'e', 'l', 'l', 'o']. It is not a single string or 'lo', and definitely not undefined.
Q695.In set theory, what does the * symbol represent in the context of Cartesian products?
Correct Answer: D
In set theory, the Cartesian product of two sets A and B is written as A x B (sometimes represented with * in programming contexts). It produces a set of all ordered pairs (a, b) where a belongs to A and b belongs to B.
Q696.What is a deadlock in multithreading?
Correct Answer: B
A deadlock occurs when two or more threads wait indefinitely for resources held by each other. None of the threads can proceed, causing the program to freeze. Proper resource management and lock ordering help prevent deadlocks.
Q697.In a max-heap, if a node has index i (1-based indexing), what is the index of its parent?
Correct Answer: B
In a max-heap using 1-based indexing, the parent of a node at index i is at index i / 2. The left child of node i is at index 2 * i, and the right child is at index 2 * i + 1.
Q698.If set A has 4 elements and set B has 4 elements, how many elements are in A x B?
Correct Answer: D
The Cartesian product means pairing every element of set A with every element of set B. Number of elements in A x B = (number of elements in A) * (number of elements in B). So, 4 * 4 = 16.
Q699.In a graph, which of the following is an example of a node?
Correct Answer: B
In graph theory, a node is also called a vertex. Vertices represent points or entities in a graph. Edges connect vertices, showing relationships.
Q700.In satellite image analysis, which of the following is an example of classification?
Correct Answer: B
Classification in satellite image analysis means assigning labels to different areas or objects, such as identifying roads, buildings, and vegetation.