A question bank for every class and subject

Practice questions, with answers and explanations included

794 questions available

Refine

All questions

794 results
601

In traditional file processing systems, the problem where the same information is stored in more than one file is called:

MCQ Easy
a. Data Inconsistency
b. Data Redundancy
c. Lack of Data Integration
d. Referential Integrity Violation
Information Technology (802) · Class 12 · Sep 26, 2026
Show answer
Data Redundancy
Explanation: Data Redundancy occurs when the same information is stored in more than one file, wasting space.
602

Which keyword surrounds the part of the code that might generate an exception?

MCQ Easy
a. catch
b. try
c. finally
d. throw
Information Technology (802) · Class 12 · Sep 26, 2026
Show answer
try
Explanation: The try block surrounds the part of the code that can potentially generate exceptions.
603

What should you do if the computer becomes completely frozen/unresponsive?

SHORT Easy
Information Technology (802) · Class 11 · Sep 26, 2026
Show answer
Explanation: Press and hold the Power button for 5-10 seconds to force a system shutdown, then switch the computer on again.
604

If a file is updated but other files containing similar information are not updated, this results in:

MCQ Medium
a. Data Redundancy
b. Data Inconsistency
c. Data Integration
d. Concurrency Control
Information Technology (802) · Class 12 · Sep 26, 2026
Show answer
Data Inconsistency
Explanation: Data Inconsistency occurs when related files are not updated together, causing conflicting information across files.
605

Which keyword defines a block containing the exception handler code, executed when a matching exception occurs?

MCQ Easy
a. try
b. catch
c. finally
d. import
Information Technology (802) · Class 12 · Sep 26, 2026
Show answer
catch
Explanation: A catch block contains the exception handler code that executes when its argument type matches the thrown exception.
606

Describe the steps to troubleshoot a computer that is unable to connect to the network.

LONG Hard
Information Technology (802) · Class 11 · Sep 26, 2026
Show answer
Explanation: First check network connectivity by viewing the Network icon on the Task Bar or via Control Panel > Network and Sharing Centre; run the Windows Network Diagnostics if needed. Next, check the validity of the IP address by opening Command Prompt and typing IPCONFIG. Also check whether the network fly lead (the cable connecting the network card to the network point) is securely plugged in and undamaged. Finally, verify the network card is working by pinging the loopback address (ping 127.0.0.1) — a reply confirms the card is functioning; if not, contact a service engineer or network administrator.
607

A Database Management System (DBMS) is best described as:

MCQ Easy
a. A single database table
b. A collection of programs that enables users to create, maintain and use a database
c. A programming language like Java
d. A type of computer hardware
Information Technology (802) · Class 12 · Sep 26, 2026
Show answer
A collection of programs that enables users to create, maintain and use a database
Explanation: A DBMS is a collection of programs that enables users to create, maintain, and use a database, providing a single repository accessed by different users.
608

Which block is ALWAYS executed when a try block exits, whether or not an exception occurred?

MCQ Medium
a. catch
b. finally
c. throw
d. default
Information Technology (802) · Class 12 · Sep 26, 2026
Show answer
finally
Explanation: The optional finally block always executes when the try block exits, regardless of whether an exception occurred — often used for cleanup code.
609

A network protocol defines:

MCQ Medium
a. The physical color of network cables
b. The rules and conventions of communication between devices
c. The brand of network devices used
d. The price of Internet bandwidth
Information Technology (802) · Class 11 · Sep 26, 2026
Show answer
The rules and conventions of communication between devices
Explanation: A network protocol defines the rules and conventions of communication that devices must follow, specifying what, how, and when to communicate.
610

Which operation on a database involves specifying the data type and constraints of the data to be stored?

MCQ Medium
a. Populating the Database
b. Defining the Database
c. Sharing the Database
d. Protecting the Database
Information Technology (802) · Class 12 · Sep 26, 2026
Show answer
Defining the Database
Explanation: Defining the Database involves specifying the data type of the data to be stored and any constraints on it.
611

Which method of the Exception class is used to print/retrieve the error message that caused an exception?

MCQ Medium
a. getError()
b. getMessage()
c. printError()
d. toString() only
Information Technology (802) · Class 12 · Sep 26, 2026
Show answer
getMessage()
Explanation: The getMessage() method of the Exception class returns the error message describing what caused the exception.
612

Social network refers to a network of people interacting and sharing information such as views, photos, and videos.

TRUE FALSE Easy
a. TRUE
b. FALSE
Information Technology (802) · Class 11 · Sep 26, 2026
Show answer
TRUE
Explanation: A social network is defined as the network of people interacting and sharing information such as views, photographs, and videos.
613

Storing data on some storage medium controlled by the DBMS is called:

MCQ Medium
a. Defining the Database
b. Populating the Database
c. Manipulating the Database
d. Maintaining the Database
Information Technology (802) · Class 12 · Sep 26, 2026
Show answer
Populating the Database
Explanation: Populating the Database involves storing the actual data on a storage medium controlled by the DBMS.
614

If multiple catch blocks follow a try block, what determines which catch block executes?

MCQ Medium
a. The first catch block always executes
b. The catch block whose argument type matches the type of the thrown exception object
c. All catch blocks execute in sequence
d. The last catch block always executes
Information Technology (802) · Class 12 · Sep 26, 2026
Show answer
The catch block whose argument type matches the type of the thrown exception object
Explanation: When an exception is thrown, control passes to the catch block whose argument type matches the type of the exception object.
615

Hacking refers only to legally authorized access to a computer system for testing purposes.

TRUE FALSE Medium
a. TRUE
b. FALSE
Information Technology (802) · Class 11 · Sep 26, 2026
Show answer
FALSE
Explanation: Hacking is unauthorized access to someone's computer or network, typically for stealing resources or causing harm, not legally authorized testing.
616

The description of data (structure and constraints) stored in a database catalogue/data dictionary is called:

MCQ Medium
a. A Tuple
b. Meta-data
c. A Domain
d. A Schema Diagram
Information Technology (802) · Class 12 · Sep 26, 2026
Show answer
Meta-data
Explanation: Meta-data is the description of data stored by the DBMS, kept in a database catalogue or data dictionary.
617

Which Java package contains the classes needed to connect a Java program to a database (e.g., Connection, Statement, ResultSet)?

MCQ Medium
a. java.util
b. java.lang
c. java.sql
d. java.io
Information Technology (802) · Class 12 · Sep 26, 2026
Show answer
java.sql
Explanation: The java.sql package contains the classes required for database connectivity, such as Connection, Statement, and ResultSet.
618

Spam emails are always harmless and never contain links to phishing sites.

TRUE FALSE Medium
a. TRUE
b. FALSE
Information Technology (802) · Class 11 · Sep 26, 2026
Show answer
FALSE
Explanation: Spam mails may contain links to phishing sites that attempt to steal user information or link to malware/infected files.
619

The DBMS property that allows a change in the structure of data (in the catalogue) without needing to modify the programs that access the data is called:

MCQ Medium
a. Data Redundancy
b. Program-Data Independence
c. Referential Integrity
d. Data Duplication
Information Technology (802) · Class 12 · Sep 26, 2026
Show answer
Program-Data Independence
Explanation: Since data definition is stored separately (in the catalogue), changes to data structure need not require modification of application programs — this is Program-Data Independence.
620

Which class's getConnection() method is used to establish a connection to a database?

MCQ Medium
a. Statement
b. ResultSet
c. DriverManager
d. Scanner
Information Technology (802) · Class 12 · Sep 26, 2026
Show answer
DriverManager
Explanation: DriverManager.getConnection(url, username, password) is used to establish a connection to a database.