Which of the following is used to define class members externally in C++?
See answer
Correct answer: (B) ::
1 marks · 2023 · Set A
Question 102
Which C++ concept is used to reuse written code?
See answer
Correct answer: (B) Inheritance
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
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.
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
1 marks · 2023 · Set A
Question 106
In C++, cout stands for
See answer
Correct answer: (E) 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
1 marks · 2023 · Set A
Question 108
A computer program consists of
See answer
Correct answer: (C) Algorithms written in computer language
1 marks · 2023 · Set A
Question 109
The topology with the highest reliability is
See answer
Correct answer: (C) Mesh
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
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
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
1 marks · 2023 · Set A
Question 113
A _____ topology uses a single connection to connect all devices together.
See answer
Correct answer: (A) Bus
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
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
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
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
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
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
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
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
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)
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
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
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
1 marks · 2023 · Set A
Question 126
Which SQL command is used to retrieve information from a database?
See answer
Correct answer: (C) Select
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
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
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
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
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
1 marks · 2023 · Set A
Question 132
The register that contains the instruction being executed is called
See answer
Correct answer: (C) 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
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
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
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
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
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
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
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
1 marks · 2023 · Set A
Question 141
The Boolean expression x + x′y equals
See answer
Correct answer: (A) 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
1 marks · 2023 · Set A
Question 143
The Boolean expression A + BC equals
See answer
Correct answer: (C) (A + B)(A + C)
1 marks · 2023 · Set A
Question 144
The Boolean expression x + xy will be equal to
See answer
Correct answer: (A) x
1 marks · 2023 · Set A
Question 145
The Boolean expression x(x + y) is equal to
See answer
Correct answer: (A) x
1 marks · 2023 · Set A
Question 146
If x is a Boolean variable, then (((x′)′)′)′ will be
See answer
Correct answer: (B) 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
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
1 marks · 2023 · Set A
Question 149
Which of the following logic gates is called a universal gate?
See answer
Correct answer: (C) NAND
1 marks · 2023 · Set A
Question 150
The minimum number of NAND gates required to implement the Boolean function f = x′y + xy′ is