A question bank for every class and subject

Practice questions, with answers and explanations included

794 questions available

Refine

All questions

794 results
81

Convert: 5120 KB = ______ MB.

SHORT Easy
Information Technology (802) · Class 11 · Sep 26, 2026
Show answer
Explanation: 5120 KB = 5120 / 1024 MB = 5 MB.
82

An attribute used in the GROUP BY clause must also appear:

MCQ Medium
a. In the WHERE clause
b. In the SELECT clause
c. In the HAVING clause only
d. It need not appear anywhere else
Information Technology (802) · Class 12 · Sep 26, 2026
Show answer
In the SELECT clause
Explanation: The attribute(s) used for grouping (e.g., Dept_No) must also be present in the SELECT clause.
83

How many times does the loop body execute? for(int count=3; count<=15; count = count + 3)

MCQ Medium
a. 5
b. 6
c. 4
d. 7
Information Technology (802) · Class 12 · Sep 26, 2026
Show answer
5
Explanation: The loop runs from count=3 while count<=15, stepping by 3 each time, giving 5 iterations.
84

A pen drive must be connected using a PS/2 port.

TRUE FALSE Easy
a. TRUE
b. FALSE
Information Technology (802) · Class 11 · Sep 26, 2026
Show answer
FALSE
Explanation: A pen drive/flash drive is connected via a USB (Universal Serial Bus) port, not a PS/2 port.
85

Convert: 2048 MB = ______ GB.

SHORT Easy
Information Technology (802) · Class 11 · Sep 26, 2026
Show answer
Explanation: 2048 MB = 2048 / 1024 GB = 2 GB.
86

A SELECT query that finds no matching rows results in:

MCQ Easy
a. A syntax error
b. An empty set
c. NULL being returned
d. The query automatically retries
Information Technology (802) · Class 12 · Sep 26, 2026
Show answer
An empty set
Explanation: If no rows match the query's condition, the result is simply an empty set — this is not an error.
87

For String myString = "Computer Science"; what does myString.length() return?

MCQ Easy
a. 16
b. 15
c. 17
d. 0
Information Technology (802) · Class 12 · Sep 26, 2026
Show answer
16
Explanation: 'Computer Science' contains 16 characters including spaces, so length() returns 16.
88

What is the function of the Arithmetic Logic Unit (ALU)?

SHORT Medium
Information Technology (802) · Class 11 · Sep 26, 2026
Show answer
Explanation: The ALU is responsible for actual processing of data — it retrieves data from the storage unit and performs arithmetic calculations and/or logical comparisons, sending the processed data back to storage.
89

Convert: 3072 MB = ______ GB.

SHORT Easy
Information Technology (802) · Class 11 · Sep 26, 2026
Show answer
Explanation: 3072 MB = 3072 / 1024 GB = 3 GB.
90

Using arithmetic operators (like *, +, -) is allowed directly within a SELECT clause, e.g., Salary*1.1 AS New_Salary.

TRUE FALSE Medium
a. TRUE
b. FALSE
Information Technology (802) · Class 12 · Sep 26, 2026
Show answer
TRUE
Explanation: Arithmetic operators can be used in the SELECT clause to compute derived values, e.g., Salary*1.1 AS New_Salary to compute a 10% raise.
91

For String myString = "Computer Science"; what does myString.toUpperCase() return?

MCQ Easy
a. COMPUTER SCIENCE
b. computer science
c. Computer Science
d. ecneicS retupmoC
Information Technology (802) · Class 12 · Sep 26, 2026
Show answer
COMPUTER SCIENCE
Explanation: toUpperCase() converts every character in 'Computer Science' to uppercase: 'COMPUTER SCIENCE'.
92

Convert: 2 GB = ____ KB.

SHORT Medium
Information Technology (802) · Class 11 · Sep 26, 2026
Show answer
Explanation: 2 GB = 2 x 1024 x 1024 KB = 2,097,152 KB.
93

Convert: 4096 MB = ______ GB.

SHORT Easy
Information Technology (802) · Class 11 · Sep 26, 2026
Show answer
Explanation: 4096 MB = 4096 / 1024 GB = 4 GB.
94

Boolean operators AND and OR can be used within a WHERE clause to combine multiple conditions.

TRUE FALSE Easy
a. TRUE
b. FALSE
Information Technology (802) · Class 12 · Sep 26, 2026
Show answer
TRUE
Explanation: AND and OR can combine multiple conditions in a WHERE clause, e.g., WHERE Dept_No = 4 OR Dept_No = 7.
95

For String myString = "Database System"; what does myString.length() return?

MCQ Easy
a. 15
b. 14
c. 16
d. 0
Information Technology (802) · Class 12 · Sep 26, 2026
Show answer
15
Explanation: 'Database System' contains 15 characters including spaces, so length() returns 15.
96

Explain the hierarchy of units used to measure storage capacity of a computer, starting from bits.

LONG Medium
Information Technology (802) · Class 11 · Sep 26, 2026
Show answer
Explanation: 1 Nibble = 4 bits; 1 Byte = 8 bits; 1024 Bytes = 1 Kilobyte (KB); 1024 KB = 1 Megabyte (MB); 1024 MB = 1 Gigabyte (GB); 1024 GB = 1 Terabyte (TB); 1024 TB = 1 Petabyte (PB); 1024 PB = 1 Exabyte (EB); 1024 EB = 1 Zettabyte (ZB); 1024 ZB = 1 Yottabyte (YB). Each bit stores information as 0s and 1s.
97

Convert: 5120 MB = ______ GB.

SHORT Easy
Information Technology (802) · Class 11 · Sep 26, 2026
Show answer
Explanation: 5120 MB = 5120 / 1024 GB = 5 GB.
98

A nested (subquery) approach can always be rewritten using an equivalent JOIN-based query for these kinds of examples.

TRUE FALSE Hard
a. TRUE
b. FALSE
Information Technology (802) · Class 12 · Sep 26, 2026
Show answer
TRUE
Explanation: As shown in the textbook, a query using a subquery with IN can be rewritten as an equivalent JOIN query with WHERE Dept_ID = Dept_No AND condition.
99

For String myString = "Database System"; what does myString.toUpperCase() return?

MCQ Easy
a. DATABASE SYSTEM
b. database system
c. Database System
d. metsyS esabataD
Information Technology (802) · Class 12 · Sep 26, 2026
Show answer
DATABASE SYSTEM
Explanation: toUpperCase() converts every character in 'Database System' to uppercase: 'DATABASE SYSTEM'.
100

List and briefly describe five common input devices of a computer.

LONG Easy
Information Technology (802) · Class 11 · Sep 26, 2026
Show answer
Explanation: Keyboard: standard device for text input. Mouse: pointing input device. Webcam: takes video/image input. Scanner: captures data in graphic form. Microphone: used for voice/audio input.