Question Bank
Class 11
Question bank
Class 11
1 subject ·
443 questions
Subject
All subjects
Information Technology (802)
Type
All types
LONG
SHORT
TRUE FALSE
MCQ
All questions
443 results
321
Convert: 3 KB = ______ GB (Hint: use the conversion chain).
SHORT
Hard
Information Technology (802) · Class 11
·
Sep 26, 2026
Show answer
Explanation: 3 KB = 3 x 1024^2 GB = 3145728 GB.
322
Which JOptionPane method shows a modal dialog box that prompts the user for text input?
MCQ
Medium
a.
showMessageDialog()
b.
showConfirmDialog()
c.
showInputDialog()
d.
showOptionDialog()
Information Technology (802) · Class 11
·
Sep 26, 2026
Show answer
Explanation: showInputDialog() displays a modal dialog with a text box for the user to enter input.
323
Convert: 1 MB = ______ TB (Hint: use the conversion chain).
SHORT
Hard
Information Technology (802) · Class 11
·
Sep 26, 2026
Show answer
Explanation: 1 MB = 1 x 1024^2 TB = 1048576 TB.
324
Getter methods in Java GUI components typically start with which word?
MCQ
Easy
a.
set
b.
get
c.
is
d.
has
Information Technology (802) · Class 11
·
Sep 26, 2026
Show answer
Explanation: Getter methods extract information from an object and typically start with 'get' (e.g., getText()).
325
Convert: 2 MB = ______ TB (Hint: use the conversion chain).
SHORT
Hard
Information Technology (802) · Class 11
·
Sep 26, 2026
Show answer
Explanation: 2 MB = 2 x 1024^2 TB = 2097152 TB.
326
Deleting a parent (container) control also deletes all its child controls.
TRUE FALSE
Medium
Information Technology (802) · Class 11
·
Sep 26, 2026
Show answer
Explanation: Since child controls are placed inside a parent/container control, deleting the parent deletes all its children.
327
Convert: 3 MB = ______ TB (Hint: use the conversion chain).
SHORT
Hard
Information Technology (802) · Class 11
·
Sep 26, 2026
Show answer
Explanation: 3 MB = 3 x 1024^2 TB = 3145728 TB.
328
Two components on the SAME form can have identical names.
TRUE FALSE
Medium
Information Technology (802) · Class 11
·
Sep 26, 2026
Show answer
Explanation: Objects on the same form cannot have the same name, though two different forms may contain objects with the same name.
329
Convert: 1 Bytes = ______ MB (Hint: use the conversion chain).
SHORT
Hard
Information Technology (802) · Class 11
·
Sep 26, 2026
Show answer
Explanation: 1 Bytes = 1 x 1024^2 MB = 1048576 MB.
330
What is the purpose of the setEnabled() method for a jButton?
SHORT
Easy
Information Technology (802) · Class 11
·
Sep 26, 2026
Show answer
Explanation: The setEnabled() method enables or disables the button, controlling whether the user can interact with it, using syntax: <button-name>.setEnabled(boolean b);
331
Convert: 2 Bytes = ______ MB (Hint: use the conversion chain).
SHORT
Hard
Information Technology (802) · Class 11
·
Sep 26, 2026
Show answer
Explanation: 2 Bytes = 2 x 1024^2 MB = 2097152 MB.
332
Differentiate between jTextField and jTextArea, and between jComboBox and jList.
LONG
Medium
Information Technology (802) · Class 11
·
Sep 26, 2026
Show answer
Explanation: jTextField allows entry/display of only a single line of text, whereas jTextArea allows multiline input/output and automatically adds scroll bars when needed. jComboBox is a drop-down box from which a user selects one option by clicking the drop-down arrow, whereas jList provides a scrollable list of items from which one or more items may be selected at once.
333
Convert: 3 Bytes = ______ MB (Hint: use the conversion chain).
SHORT
Hard
Information Technology (802) · Class 11
·
Sep 26, 2026
Show answer
Explanation: 3 Bytes = 3 x 1024^2 MB = 3145728 MB.
334
Which Java data type would be most appropriate to store a person's age (a small whole number)?
MCQ
Medium
a.
byte
b.
double
c.
String
d.
char
Information Technology (802) · Class 11
·
Sep 26, 2026
Show answer
Explanation: byte (1 byte, range -128 to 127) is suitable for small integer values like age; using it appropriately saves memory.
335
Write an SQL query to display PrName and UnitPrice of products with unit price above 25000 from table GYM.
SHORT
Medium
Information Technology (802) · Class 11
·
Sep 26, 2026
Show answer
Explanation: SELECT PrName, UnitPrice FROM GYM WHERE UnitPrice > 25000;
336
Which data type is used in Java to store a single character, enclosed in single quotes?
MCQ
Easy
a.
String
b.
char
c.
byte
d.
boolean
Information Technology (802) · Class 11
·
Sep 26, 2026
Show answer
Explanation: The char data type stores a single character and its value is enclosed within single quotes, e.g., 'A'.
337
Write an SQL query to display PrName and UnitPrice of products with unit price between 15000 and 25000 from table GYM.
SHORT
Medium
Information Technology (802) · Class 11
·
Sep 26, 2026
Show answer
Explanation: SELECT PrName, UnitPrice FROM GYM WHERE UnitPrice BETWEEN 15000 AND 25000;
338
What is the storage size of the 'int' data type in Java?
MCQ
Medium
a.
1 byte
b.
2 bytes
c.
4 bytes
d.
8 bytes
Information Technology (802) · Class 11
·
Sep 26, 2026
Show answer
Explanation: The int data type occupies 4 bytes (32 bits) and stores whole numbers in the range -2^31 to +(2^31 - 1).
339
Write an SQL query to display PrName and UnitPrice of products manufactured by 'Fit Express' from table GYM.
SHORT
Medium
Information Technology (802) · Class 11
·
Sep 26, 2026
Show answer
Explanation: SELECT PrName, UnitPrice FROM GYM WHERE Manufacturer = 'Fit Express';
340
Which operator is used to test whether two values are equal in Java?
MCQ
Easy
Information Technology (802) · Class 11
·
Sep 26, 2026
Show answer
Explanation: The relational operator == tests whether two values are equal; a single '=' is the assignment operator.
Showing
321
to
340
of
443
results