← Question papers

TRE2 — Language General Studies And Computer Science

· Set A

GS: Hindi / English · Language questions stay in their original language.

Instructions

150 questions · 150 marks · 2 hours 30 minutes

Choose one option per question.

Tap an option to check it, or open “See answer”.

Page 3 / 3
← Previous page
Question 101
Which of the following is used to define class members externally in C++?
See answer

Correct answer: (B) ::
C++ uses the scope resolution operator (::) to define class members externally.

1 marks · 2023 · Set A
Question 102
Which C++ concept is used to reuse written code?
See answer

Correct answer: (B) Inheritance
C++ uses the concept of Inheritance to reuse already-written code.

1 marks · 2023 · Set A
Question 103
What will be the output of the following program fragment? int i = 10; void main() { int i = 20; { int i = 30; printf("%d, %d", i, ::i); } }
See answer

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'.

1 marks · 2023 · Set A
Question 104
Choose the correct statement about an inline function in C++.
See answer

Correct answer: (A) It speeds up execution.
An inline function avoids function-call overhead, which speeds up program execution.

1 marks · 2023 · Set A
Question 105
What will be the output of the following? int a = 5; cout << “FIRST” << (a<<2) << “SECOND”;
See answer

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'.

1 marks · 2023 · Set A
Question 106
In C++, cout stands for
See answer

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'.

1 marks · 2023 · Set A
Question 107
A group of instructions that directs a computer is called
See answer

Correct answer: (C) Program
A group of instructions that directs a computer is called a Program.

1 marks · 2023 · Set A
Question 108
A computer program consists of
See answer

Correct answer: (C) Algorithms written in computer language
A computer program essentially consists of algorithms written in a computer language.

1 marks · 2023 · Set A
Question 109
The topology with the highest reliability is
See answer

Correct answer: (C) Mesh
Mesh topology, with direct links between every pair of nodes, offers the highest reliability.

1 marks · 2023 · Set A
Question 110
End-to-end connectivity from host to host is provided in which layer?
See answer

Correct answer: (B) Transport layer
End-to-end host-to-host connectivity is provided by the Transport layer.

1 marks · 2023 · Set A
Question 111
The _____ measures the number of lost or garbled messages as a fraction of the total sent in the sampling period.
See answer

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.

1 marks · 2023 · Set A
Question 112
A high-speed communication device would typically not be needed for
See answer

Correct answer: (A) E-mail
E-mail involves small, delay-tolerant data volumes, so it typically does not require a high-speed communication device.

1 marks · 2023 · Set A
Question 113
A _____ topology uses a single connection to connect all devices together.
See answer

Correct answer: (A) Bus
A Bus topology connects all devices using a single shared communication line.

1 marks · 2023 · Set A
Question 114
A _____ is used to connect networking devices in a very close geographic area, such as a floor of a building.
See answer

Correct answer: (B) LAN
A LAN (Local Area Network) connects devices within a small geographic area, like one floor of a building.

1 marks · 2023 · Set A
Question 115
In a computer network, what is the size of an IP address in IPv4?
See answer

Correct answer: (C) 32 bits
In IPv4, an IP address is 32 bits in size.

1 marks · 2023 · Set A
Question 116
What is the size of a MAC address in a computer network?
See answer

Correct answer: (C) 48 bits
In a computer network, a MAC address is 48 bits in size.

1 marks · 2023 · Set A
Question 117
What is the act of gaining illegal entry to computer files through remote terminals or microcomputers called?
See answer

Correct answer: (A) Hacking
Gaining illegal entry to computer files through remote terminals or microcomputers is called Hacking.

1 marks · 2023 · Set A
Question 118
A computer virus is a software program which has the essential ability to
See answer

Correct answer: (C) Clone itself
A computer virus's essential ability is to clone itself, which is how it spreads.

1 marks · 2023 · Set A
Question 119
Copying a computer program or software without the permission of its authors is called
See answer

Correct answer: (B) Software piracy
Copying a computer program or software without the authors' permission is called Software piracy.

1 marks · 2023 · Set A
Question 120
A hard disk becomes totally inaccessible when a computer virus corrupts the
See answer

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.

1 marks · 2023 · Set A
Question 121
An attribute of one table matching the primary key of another table is called
See answer

Correct answer: (A) Foreign key
An attribute matching the primary key of another table is called a Foreign key.

1 marks · 2023 · Set A
Question 122
If every non-key attribute is fully dependent on the primary key, then the relation will be in
See answer

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).

1 marks · 2023 · Set A
Question 123
In a relational database, the data type of values in each column of a table is called
See answer

Correct answer: (B) Domain
The data type of the values in a table's column is called its Domain.

1 marks · 2023 · Set A
Question 124
In a relational database, the number of attributes of a relation is called its _____ .
See answer

Correct answer: (B) Degree
The number of attributes of a relation is called its Degree.

1 marks · 2023 · Set A
Question 125
Which SQL command is used to change the attribute values of one or more rows in a table?
See answer

Correct answer: (A) Update
The 'UPDATE' SQL command is used to change the attribute values of one or more rows in a table.

1 marks · 2023 · Set A
Question 126
Which SQL command is used to retrieve information from a database?
See answer

Correct answer: (C) Select
The 'SELECT' SQL command is used to retrieve information from a database.

1 marks · 2023 · Set A
Question 127
Which SQL command is used to modify the structure of a table?
See answer

Correct answer: (A) Alter
The 'ALTER' SQL command is used to modify the structure of a table.

1 marks · 2023 · Set A
Question 128
Which SQL keyword is used to display data from a table based on a certain pattern?
See answer

Correct answer: (B) LIKE
The 'LIKE' SQL keyword is used to display data based on a certain pattern.

1 marks · 2023 · Set A
Question 129
The degree and cardinality of a relation in a relational database are 4 and 3 respectively. If 3 attributes and 4 tuples are added to the relation, what will its new cardinality and degree be?
See answer

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.

1 marks · 2023 · Set A
Question 130
Which SQL command is used to remove a table from a database?
See answer

Correct answer: (B) DROP
The 'DROP' SQL command is used to remove a table from a database.

1 marks · 2023 · Set A
Question 131
The register containing the address of the next instruction to be executed is called
See answer

Correct answer: (A) Program counter
The register holding the address of the next instruction to be executed is called the Program Counter.

1 marks · 2023 · Set A
Question 132
The register that contains the instruction being executed is called
See answer

Correct answer: (C) Instruction register
The register holding the instruction currently being executed is called the Instruction Register.

1 marks · 2023 · Set A
Question 133
The register holding the address of the memory location to or from which data are to be transferred is known as
See answer

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).

1 marks · 2023 · Set A
Question 134
A storage device used to compensate for differences in data flow is known as
See answer

Correct answer: (C) Buffer
A storage device used to compensate for differences in data-flow speed is called a Buffer.

1 marks · 2023 · Set A
Question 135
Memory in which any location can be reached in a fixed amount of time after specifying its address is called
See answer

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).

1 marks · 2023 · Set A
Question 136
If (X567)₈ + (2YX5)₈ = (71YX)₈, then the values of X and Y are
See answer

Correct answer: (A) 4, 3
Solving the octal addition (X567)₈+(2YX5)₈=(71YX)₈ digit by digit gives X=4, Y=3.

1 marks · 2023 · Set A
Question 137
The range of numbers that can be represented in 8 bits using 2’s complement representation is
See answer

Correct answer: (C) −128 to +127
In 8-bit 2's complement representation, numbers range from −128 to +127.

1 marks · 2023 · Set A
Question 138
If (11X1Y)₈ = (12C9)₁₆, then the values of X and Y are
See answer

Correct answer: (C) 3, 1
Solving (11X1Y)₈ = (12C9)₁₆ digit by digit gives X=3, Y=1.

1 marks · 2023 · Set A
Question 139
Which of the following 4-bit numbers is equal to its 2’s complement?
See answer

Correct answer: (C) 1000
The 4-bit number 1000 is the only one among the options whose 2's complement equals itself.

1 marks · 2023 · Set A
Question 140
How many 1s are there in the binary representation of the decimal expression 16³ × 9 + 16² × 7 + 16 × 5 + 3?
See answer

Correct answer: (B) 9
16³×9+16²×7+16×5+3 equals 38739, whose binary form is 1001011101010011—containing 9 ones.

1 marks · 2023 · Set A
Question 141
The Boolean expression x + x′y equals
See answer

Correct answer: (A) x + y
x + x′y simplifies to x+y (since x+x′y = (x+x′)(x+y) = x+y).

1 marks · 2023 · Set A
Question 142
The Boolean expression AB + AB′ + A′C + AC is independent of the Boolean variable
See answer

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.

1 marks · 2023 · Set A
Question 143
The Boolean expression A + BC equals
See answer

Correct answer: (C) (A + B)(A + C)
A+BC = (A+B)(A+C) is the standard distributive-law identity in Boolean algebra.

1 marks · 2023 · Set A
Question 144
The Boolean expression x + xy will be equal to
See answer

Correct answer: (A) x
x+xy simplifies to x (the absorption law).

1 marks · 2023 · Set A
Question 145
The Boolean expression x(x + y) is equal to
See answer

Correct answer: (A) x
x(x+y) simplifies to x (the absorption law).

1 marks · 2023 · Set A
Question 146
If x is a Boolean variable, then (((x′)′)′)′ will be
See answer

Correct answer: (B) x
Applying the complement four times to a Boolean variable returns the original value x.

1 marks · 2023 · Set A
Question 147
In two-valued Boolean algebra, the maximum number of Boolean functions for two variables is
See answer

Correct answer: (C) 16
The maximum number of Boolean functions of two variables is 2^(2²)=16.

1 marks · 2023 · Set A
Question 148
The simplified Boolean function of F = A′C + A′B + AB′C + BC is
See answer

Correct answer: (A) F = C + A′B
F = A′C+A′B+AB′C+BC simplifies to F = C+A′B.

1 marks · 2023 · Set A
Question 149
Which of the following logic gates is called a universal gate?
See answer

Correct answer: (C) NAND
The NAND gate is called a 'universal gate' because all other basic gates can be built from it alone.

1 marks · 2023 · Set A
Question 150
The minimum number of NAND gates required to implement the Boolean function f = x′y + xy′ is
See answer

Correct answer: (B) 4
Implementing f = x′y+xy′ (the XOR function) needs a minimum of 4 NAND gates—this is a standard circuit.

1 marks · 2023 · Set A
Page 3 / 3
← Previous page