GS: Hindi / English · Language questions stay in their original language.
150 questions · 150 marks · 2 hours 30 minutes
Choose one option per question.
Tap an option to check it, or open “See answer”.
Correct answer: (B) ::
C++ uses the scope resolution operator (::) to define class members externally.
Correct answer: (B) Inheritance
C++ uses the concept of Inheritance to reuse already-written code.
Correct answer: (A) 30,10
The innermost block's local variable i=30 prints first, and ::i refers to the global i=10, so the output is '30,10'.
Correct answer: (A) It speeds up execution.
An inline function avoids function-call overhead, which speeds up program execution.
Correct answer: (B) FIRST 20 SECOND
With a=5, a<<2 shifts a left by 2 bits, equivalent to multiplying by 4: 5×4=20, so the output is 'FIRST 20 SECOND'.
Correct answer: (E) None of the above
'cout' is standardly understood as short for 'console output', which matches none of the three given options (Class/Character/Common output), so the answer is 'None of the above'.
Correct answer: (C) Program
A group of instructions that directs a computer is called a Program.
Correct answer: (C) Algorithms written in computer language
A computer program essentially consists of algorithms written in a computer language.
Correct answer: (C) Mesh
Mesh topology, with direct links between every pair of nodes, offers the highest reliability.
Correct answer: (B) Transport layer
End-to-end host-to-host connectivity is provided by the Transport layer.
Correct answer: (A) Residual error rate
The 'Residual error rate' measures the fraction of lost or garbled messages out of the total sent in the sampling period.
Correct answer: (A) E-mail
E-mail involves small, delay-tolerant data volumes, so it typically does not require a high-speed communication device.
Correct answer: (A) Bus
A Bus topology connects all devices using a single shared communication line.
Correct answer: (B) LAN
A LAN (Local Area Network) connects devices within a small geographic area, like one floor of a building.
Correct answer: (C) 32 bits
In IPv4, an IP address is 32 bits in size.
Correct answer: (C) 48 bits
In a computer network, a MAC address is 48 bits in size.
Correct answer: (A) Hacking
Gaining illegal entry to computer files through remote terminals or microcomputers is called Hacking.
Correct answer: (C) Clone itself
A computer virus's essential ability is to clone itself, which is how it spreads.
Correct answer: (B) Software piracy
Copying a computer program or software without the authors' permission is called Software piracy.
Correct answer: (A) Partition table
If a virus corrupts the partition table, the hard disk becomes totally inaccessible, since it holds the disk's partition information.
Correct answer: (A) Foreign key
An attribute matching the primary key of another table is called a Foreign key.
Correct answer: (B) Second Normal Form (2NF)
When every non-key attribute is fully dependent on the primary key, the relation is in Second Normal Form (2NF).
Correct answer: (B) Domain
The data type of the values in a table's column is called its Domain.
Correct answer: (B) Degree
The number of attributes of a relation is called its Degree.
Correct answer: (A) Update
The 'UPDATE' SQL command is used to change the attribute values of one or more rows in a table.
Correct answer: (C) Select
The 'SELECT' SQL command is used to retrieve information from a database.
Correct answer: (A) Alter
The 'ALTER' SQL command is used to modify the structure of a table.
Correct answer: (B) LIKE
The 'LIKE' SQL keyword is used to display data based on a certain pattern.
Correct answer: (B) 7, 7
Adding 3 attributes and 4 tuples makes the new degree 4+3=7 and the new cardinality 3+4=7.
Correct answer: (B) DROP
The 'DROP' SQL command is used to remove a table from a database.
Correct answer: (A) Program counter
The register holding the address of the next instruction to be executed is called the Program Counter.
Correct answer: (C) Instruction register
The register holding the instruction currently being executed is called the Instruction Register.
Correct answer: (B) Memory address register
The register holding the address of the memory location to/from which data is transferred is called the Memory Address Register (MAR).
Correct answer: (C) Buffer
A storage device used to compensate for differences in data-flow speed is called a Buffer.
Correct answer: (B) Random Access Memory
Memory where any location can be reached in a fixed time after specifying its address is called Random Access Memory (RAM).
Correct answer: (A) 4, 3
Solving the octal addition (X567)₈+(2YX5)₈=(71YX)₈ digit by digit gives X=4, Y=3.
Correct answer: (C) −128 to +127
In 8-bit 2's complement representation, numbers range from −128 to +127.
Correct answer: (C) 3, 1
Solving (11X1Y)₈ = (12C9)₁₆ digit by digit gives X=3, Y=1.
Correct answer: (C) 1000
The 4-bit number 1000 is the only one among the options whose 2's complement equals itself.
Correct answer: (B) 9
16³×9+16²×7+16×5+3 equals 38739, whose binary form is 1001011101010011—containing 9 ones.
Correct answer: (A) x + y
x + x′y simplifies to x+y (since x+x′y = (x+x′)(x+y) = x+y).
Correct answer: (B) B
AB+AB′ = A(B+B′) = A, so the whole expression reduces to A+A′C+AC = A+C, which is independent of variable B.
Correct answer: (C) (A + B)(A + C)
A+BC = (A+B)(A+C) is the standard distributive-law identity in Boolean algebra.
Correct answer: (A) x
x+xy simplifies to x (the absorption law).
Correct answer: (A) x
x(x+y) simplifies to x (the absorption law).
Correct answer: (B) x
Applying the complement four times to a Boolean variable returns the original value x.
Correct answer: (C) 16
The maximum number of Boolean functions of two variables is 2^(2²)=16.
Correct answer: (A) F = C + A′B
F = A′C+A′B+AB′C+BC simplifies to F = C+A′B.
Correct answer: (C) NAND
The NAND gate is called a 'universal gate' because all other basic gates can be built from it alone.
Correct answer: (B) 4
Implementing f = x′y+xy′ (the XOR function) needs a minimum of 4 NAND gates—this is a standard circuit.