A question bank for every class and subject

Practice questions, with answers and explanations included

794 questions available

Refine

All questions

794 results
641

If the try block does not throw any exception, the catch clauses following it are still executed.

TRUE FALSE Medium
a. TRUE
b. FALSE
Information Technology (802) · Class 12 · Sep 26, 2026
Show answer
FALSE
Explanation: If no exception is thrown, the catch clauses are NOT executed; program execution continues after the last catch clause.
642

What is the purpose of the Format > Bullets and Numbering command?

SHORT Easy
Information Technology (802) · Class 11 · Sep 26, 2026
Show answer
Explanation: It opens a dialog box allowing the user to select from different kinds of bullets or numbering styles, which are inserted at the location of the cursor in the document.
643

In the relational model, the number of tuples in a relation is called its:

MCQ Easy
a. Degree
b. Domain
c. Cardinality
d. Attribute
Information Technology (802) · Class 12 · Sep 26, 2026
Show answer
Cardinality
Explanation: Cardinality of a relation is the number of rows (tuples) it contains.
644

The finally block is optional in a try-catch structure.

TRUE FALSE Medium
a. TRUE
b. FALSE
Information Technology (802) · Class 12 · Sep 26, 2026
Show answer
TRUE
Explanation: The finally block is optional; it is commonly used for cleanup code that should run regardless of whether an exception occurred.
645

Differentiate between Move Text and Copy Text operations in a word processor.

SHORT Medium
Information Technology (802) · Class 11 · Sep 26, 2026
Show answer
Explanation: Move Text removes the selected text from its current location (using Cut) and places it at a new location (using Paste), so it no longer exists at the original location. Copy Text duplicates the selected text at a new location while retaining it at the original location.
646

The set of all possible values that an attribute may contain is called its:

MCQ Easy
a. Degree
b. Cardinality
c. Domain
d. Tuple
Information Technology (802) · Class 12 · Sep 26, 2026
Show answer
Domain
Explanation: The Domain of an attribute is the set of all atomic (indivisible) values that attribute may take.
647

How are exceptions handled in Java? Name the key keywords involved.

SHORT Medium
Information Technology (802) · Class 12 · Sep 26, 2026
Show answer
Explanation: Exceptions in Java are handled using try, catch, and (optionally) finally blocks. The try block surrounds code that might throw an exception; the catch block(s) handle specific exception types; the optional finally block always executes when the try block exits.
648

List the key tasks performed by each of the following tabs in OpenOffice Writer: File, Edit, View, Insert, Format, Table, Tools.

LONG Medium
Information Technology (802) · Class 11 · Sep 26, 2026
Show answer
Explanation: File: apply commands to the current document such as create, save, print, open, close. Edit: perform editing operations like cut, copy, paste, find & replace, undo, redo. View: control how the document is displayed on screen (status bar, ruler, sidebar). Insert: insert new elements like page number, date, header, footer, tables, hyperlinks. Format: format the layout and content of the document (character, paragraph, bullets, page, alignment). Table: insert, edit, and delete tables and their rows/columns. Tools: check spelling/grammar and count words/characters in the document.
649

Which of the following is a characteristic of relations in the relational model?

MCQ Medium
a. Ordering of tuples is significant
b. No two tuples in a relation can be identical
c. Attribute values can be non-atomic (divisible)
d. Ordering of attributes must be maintained
Information Technology (802) · Class 12 · Sep 26, 2026
Show answer
No two tuples in a relation can be identical
Explanation: No two tuples of a relation should be identical; ordering of tuples and attributes is not significant, and attribute values must be atomic.
650

Write a Java code fragment demonstrating exception handling for a division by zero, using a divide() method that takes two integer parameters.

LONG Medium
Information Technology (802) · Class 12 · Sep 26, 2026
Show answer
Explanation: int divide(int dividend, int divisor) { return dividend/divisor; } ... try { int quotient = divide(10,0); System.out.println(quotient); } catch (Exception e) { System.out.println(e.getMessage()); }
651

In Calc's Standard Filter, which operator requires that ALL specified filter criteria be satisfied for a row to be displayed?

MCQ Medium
a. OR
b. AND
c. NOT
d. XOR
Information Technology (802) · Class 11 · Sep 26, 2026
Show answer
AND
Explanation: The AND operator in Standard Filter requires all specified criteria to be true for a row to be included in the result.
652

A special value used to represent an attribute value that is unknown, not applicable, or unavailable is called:

MCQ Easy
a. Zero
b. Blank
c. NULL
d. Undefined
Information Technology (802) · Class 12 · Sep 26, 2026
Show answer
NULL
Explanation: NULL is used to represent an attribute value that is unknown, not applicable, or unavailable.
653

An assertion in Java is used to:

MCQ Medium
a. Improve runtime performance
b. Identify/detect and correct logical errors by checking that a condition is true at a certain point
c. Handle file input/output
d. Establish database connections
Information Technology (802) · Class 12 · Sep 26, 2026
Show answer
Identify/detect and correct logical errors by checking that a condition is true at a certain point
Explanation: An assertion is a mechanism to detect logical errors by checking that a stated condition should be true at a particular point during execution.
654

In Calc's Standard Filter, which operator requires that AT LEAST ONE of the specified criteria be satisfied?

MCQ Medium
a. AND
b. OR
c. NOT
d. IS
Information Technology (802) · Class 11 · Sep 26, 2026
Show answer
OR
Explanation: The OR operator requires that at least one of the specified filter criteria is satisfied for a row to be displayed.
655

A Relational DBMS (RDBMS) is a DBMS that is:

MCQ Easy
a. Based on hierarchical data structures
b. Based on the relational model
c. Only used for spreadsheets
d. Not capable of storing numeric data
Information Technology (802) · Class 12 · Sep 26, 2026
Show answer
Based on the relational model
Explanation: An RDBMS is a DBMS based on the relational model, e.g., Oracle, MySQL, IBM DB2.
656

Which type of error is thrown when an assertion's expression evaluates to false?

MCQ Medium
a. ArithmeticException
b. AssertionError
c. SQLException
d. NullPointerException
Information Technology (802) · Class 12 · Sep 26, 2026
Show answer
AssertionError
Explanation: If the asserted expression is false, an AssertionError is thrown (with an optional custom error message).
657

Which chart type is best suited to display the contribution of each value (slice) to a total?

MCQ Easy
a. Line Chart
b. Bar Chart
c. Pie Chart
d. Scatter Chart
Information Technology (802) · Class 11 · Sep 26, 2026
Show answer
Pie Chart
Explanation: A Pie chart displays the contribution of each value (slice) to a total (pie).
658

A set of attributes in a relation for which no two tuples have the same combination of values is called a:

MCQ Medium
a. Candidate key
b. Primary key
c. Superkey
d. Foreign key
Information Technology (802) · Class 12 · Sep 26, 2026
Show answer
Superkey
Explanation: A Superkey is a set of attributes for which no two tuples in a relation state have the same combination of values; every relation has at least one (the set of all attributes).
659

By default, are Java assertions enabled or disabled at runtime?

MCQ Medium
a. Enabled by default
b. Disabled by default (must be enabled with the -ea option)
c. Always enabled and cannot be disabled
d. Only enabled in NetBeans
Information Technology (802) · Class 12 · Sep 26, 2026
Show answer
Disabled by default (must be enabled with the -ea option)
Explanation: Assertions are disabled by default (since they reduce runtime performance); they can be enabled using the -ea command-line option.
660

Which chart type is used to compare trends and changes in values over time?

MCQ Easy
a. Pie Chart
b. Line Chart
c. Scatter Chart
d. Column Chart
Information Technology (802) · Class 11 · Sep 26, 2026
Show answer
Line Chart
Explanation: A Line chart is used to compare trends and changes in values over time.