A question bank for every class and subject

Practice questions, with answers and explanations included

794 questions available

Refine

All questions

794 results
701

Give the wrapper class names for the primitive data types: int, float, double, long, short, byte.

SHORT Easy
Information Technology (802) · Class 12 · Sep 26, 2026
Show answer
Explanation: int -> Integer, float -> Float, double -> Double, long -> Long, short -> Short, byte -> Byte.
702

How many tabs does OpenOffice Impress have according to the textbook?

MCQ Medium
a. Six
b. Seven
c. Eight
d. Nine
Information Technology (802) · Class 11 · Sep 26, 2026
Show answer
Eight
Explanation: OpenOffice Impress has eight tabs: File, Edit, View, Insert, Format, Tools, Slide Show, and Window.
703

Which data type in MySQL is used to store a fixed-length character string?

MCQ Easy
a. VARCHAR(n)
b. CHAR(n)
c. DATE
d. DECIMAL(m,d)
Information Technology (802) · Class 12 · Sep 26, 2026
Show answer
CHAR(n)
Explanation: CHAR(n) is used for a fixed-length character string of exactly n characters.
704

Write a Java class 'ExtendThread' that extends the Thread class, overrides run() to print 'Created a Thread' followed by counts 1 to 3, and show how to instantiate and start it from main.

LONG Hard
Information Technology (802) · Class 12 · Sep 26, 2026
Show answer
Explanation: public class ExtendThread extends Thread { public void run() { System.out.println("Created a Thread"); for (int count=1; count<=3; count++) System.out.println("Count="+count); } } // In main: public static void main(String args[]) { ExtendThread t1 = new ExtendThread(); t1.start(); }
705

Slide animation applies to the pattern shown when transitioning between two different slides.

TRUE FALSE Medium
a. TRUE
b. FALSE
Information Technology (802) · Class 11 · Sep 26, 2026
Show answer
FALSE
Explanation: Slide animation applies to how elements within a single slide appear (their order, effect); slide transition applies to the change between slides.
706

Which data type stores a variable-length character string with a maximum of n characters?

MCQ Easy
a. CHAR(n)
b. VARCHAR(n)
c. INTEGER
d. DATE
Information Technology (802) · Class 12 · Sep 26, 2026
Show answer
VARCHAR(n)
Explanation: VARCHAR(n) stores a variable-length character string, where n is the maximum number of characters allowed.
707

Which of the following sectors is mentioned as a domain where database applications are commonly used?

MCQ Easy
a. Only Banking
b. Education, Banking, Hospitals, Government, and E-Commerce among others
c. Only E-Commerce
d. None, databases are only for schools
Information Technology (802) · Class 12 · Sep 26, 2026
Show answer
Education, Banking, Hospitals, Government, and E-Commerce among others
Explanation: The textbook lists several domains for database applications: Education, Banking, Hospitals, Government Sector, Companies, E-Commerce, Airlines, Railways, Telecommunications, and Hotels.
708

Differentiate between Slide Transition and Slide Animation.

SHORT Medium
Information Technology (802) · Class 11 · Sep 26, 2026
Show answer
Explanation: Slide Transition is the visual pattern that appears when one slide changes to the next (e.g., wheel, diamond). Slide Animation applies to elements within a single slide, controlling how and in what order they appear on screen.
709

In the data type DECIMAL(m,d), what does 'd' represent?

MCQ Medium
a. The total number of significant digits stored
b. The number of digits stored after the decimal point
c. The maximum value allowed
d. The default value
Information Technology (802) · Class 12 · Sep 26, 2026
Show answer
The number of digits stored after the decimal point
Explanation: In DECIMAL(m,d), m represents total significant digits, and d represents the number of digits after the decimal point.
710

In a hospital database application, which of these would typically be stored?

MCQ Easy
a. Only patient names
b. Patient health records, hospitalization dates, and staff/equipment details
c. Only doctor salaries
d. Only medicine prices
Information Technology (802) · Class 12 · Sep 26, 2026
Show answer
Patient health records, hospitalization dates, and staff/equipment details
Explanation: A hospital's database stores patient personal details, health records, hospitalization dates, and information on doctors, nurses, staff, rooms, and equipment.
711

Which of the following is NOT a popular DBMS mentioned in the textbook?

MCQ Easy
a. MySQL
b. Oracle
c. Microsoft Access
d. Adobe Photoshop
Information Technology (802) · Class 11 · Sep 26, 2026
Show answer
Adobe Photoshop
Explanation: Popular DBMSs mentioned include MySQL, PostgreSQL, Microsoft Access, Oracle, Microsoft SQL Server, DB2, and Sybase. Adobe Photoshop is image-editing software, not a DBMS.
712

Which SQL command is used to create a new table?

MCQ Easy
a. MAKE TABLE
b. CREATE TABLE
c. NEW TABLE
d. BUILD TABLE
Information Technology (802) · Class 12 · Sep 26, 2026
Show answer
CREATE TABLE
Explanation: CREATE TABLE <table_name> (column definitions); is used to create a new table/relation.
713

In the XYZ Shopping Website case study, the CATEGORY table's primary key is:

MCQ Easy
a. Name
b. Category_id
c. Description
d. Product_id
Information Technology (802) · Class 12 · Sep 26, 2026
Show answer
Category_id
Explanation: Category_id is the primary key of the CATEGORY table, uniquely identifying each product category.
714

If a table T1 has columns C1, C2, C3 as a combined (composite) primary key, which of the following is true?

MCQ Hard
a. Any one of C1, C2, C3 individually can contain NULL
b. None of C1, C2, C3 can contain NULL values
c. Duplicate combinations of C1,C2,C3 are allowed
d. Only C1 needs to be unique
Information Technology (802) · Class 11 · Sep 26, 2026
Show answer
None of C1, C2, C3 can contain NULL values
Explanation: For a composite primary key, no column forming the key can contain NULL values, and the combination of all key columns must be unique across rows.
715

Which command is used to remove an entire database from the server?

MCQ Easy
a. DROP DATABASE
b. DELETE DATABASE
c. REMOVE DATABASE
d. TRUNCATE DATABASE
Information Technology (802) · Class 12 · Sep 26, 2026
Show answer
DROP DATABASE
Explanation: DROP DATABASE <name>; is used to remove a database from the server.
716

In the PRODUCT table schema PRODUCT(Product_id, Name, Category_id, Price, Quantity, Discount, Brand, Color, Size, Seller_id, Description), Category_id in this table acts as a:

MCQ Medium
a. Primary Key
b. Foreign Key referencing the CATEGORY table
c. Candidate Key only
d. Domain constraint
Information Technology (802) · Class 12 · Sep 26, 2026
Show answer
Foreign Key referencing the CATEGORY table
Explanation: Category_id in the PRODUCT table is a Foreign Key referencing the Category_id (primary key) of the CATEGORY table, linking each product to its category.
717

What is the main similarity between Primary Key, Candidate Key, and Alternate Key?

MCQ Hard
a. They are all data types
b. They can all uniquely identify a row (or could have, in the case of candidate/alternate keys)
c. They must all be numeric
d. They are all optional and can be duplicated
Information Technology (802) · Class 11 · Sep 26, 2026
Show answer
They can all uniquely identify a row (or could have, in the case of candidate/alternate keys)
Explanation: Primary Key, Candidate Key, and Alternate Key are all capable of uniquely identifying rows in a table; only one candidate key is chosen as the primary key.
718

Which command tells the MySQL server which database to use for subsequent statements?

MCQ Easy
a. SELECT DATABASE
b. USE
c. OPEN DATABASE
d. SET DATABASE
Information Technology (802) · Class 12 · Sep 26, 2026
Show answer
USE
Explanation: The USE <databasename>; command tells the server which database to use for subsequent statements.
719

Which payment method is NOT mentioned as an option in the XYZ Shopping Website case study?

MCQ Medium
a. Cash on Delivery
b. Credit/Debit card
c. Net Banking
d. Cryptocurrency
Information Technology (802) · Class 12 · Sep 26, 2026
Show answer
Cryptocurrency
Explanation: The case study mentions Cash on Delivery, credit/debit card, and net banking as payment options — not cryptocurrency.
720

MySQL is a proprietary (closed-source) RDBMS software that requires payment for use.

TRUE FALSE Easy
a. TRUE
b. FALSE
Information Technology (802) · Class 11 · Sep 26, 2026
Show answer
FALSE
Explanation: MySQL is an Open Source RDBMS Software, available free of cost.