Class 12

Information Technology (802)

351 questions available

Refine

All questions

351 results
1

Which command is used to insert a new tuple into a relation?

MCQ Easy
a. ADD INTO
b. INSERT INTO
c. APPEND INTO
d. PUT INTO
Information Technology (802) · Class 12 · Sep 26, 2026
Show answer
INSERT INTO
Explanation: INSERT INTO <table> VALUES(...); or INSERT INTO <table>(columns) VALUES(...); is used to insert a tuple.
2

Evaluate the Java relational expression: 3 < 1

MCQ Easy
a. TRUE
b. FALSE
Information Technology (802) · Class 12 · Sep 26, 2026
Show answer
FALSE
Explanation: The expression 3 < 1 evaluates to false.
3

If an attribute value is not explicitly specified in an INSERT command and it has no DEFAULT value defined, what value is used?

MCQ Medium
a. Zero
b. An empty string
c. NULL
d. The previous row's value
Information Technology (802) · Class 12 · Sep 26, 2026
Show answer
NULL
Explanation: If an attribute is not specified and has no DEFAULT, its value is set to NULL.
4

Evaluate the Java relational expression: 11 == 10

MCQ Easy
a. TRUE
b. FALSE
Information Technology (802) · Class 12 · Sep 26, 2026
Show answer
FALSE
Explanation: The expression 11 == 10 evaluates to false.
5

Which command is used to modify the value(s) of one or more tuples in a table?

MCQ Easy
a. MODIFY
b. CHANGE
c. UPDATE
d. ALTER
Information Technology (802) · Class 12 · Sep 26, 2026
Show answer
UPDATE
Explanation: UPDATE <table> SET <column>=<value> WHERE <condition>; modifies attribute values of matching tuples.
6

Evaluate the Java relational expression: 8 != 3

MCQ Easy
a. TRUE
b. FALSE
Information Technology (802) · Class 12 · Sep 26, 2026
Show answer
TRUE
Explanation: The expression 8 != 3 evaluates to true.
7

Which command deletes ALL tuples from a table if the WHERE clause is omitted?

MCQ Easy
a. DROP TABLE
b. DELETE FROM <table>;
c. TRUNCATE ONLY
d. CLEAR TABLE
Information Technology (802) · Class 12 · Sep 26, 2026
Show answer
DELETE FROM <table>;
Explanation: DELETE FROM <table>; without a WHERE clause deletes all tuples but keeps the table structure intact.
8

Evaluate the Java relational expression: 30 >= 30

MCQ Easy
a. TRUE
b. FALSE
Information Technology (802) · Class 12 · Sep 26, 2026
Show answer
TRUE
Explanation: The expression 30 >= 30 evaluates to true.
9

What is the basic structure of the SELECT command?

MCQ Easy
a. SELECT <table> FROM <attributes> WHERE <condition>
b. SELECT <attribute list> FROM <table list> WHERE <condition>
c. FROM <table> SELECT <attributes>
d. WHERE <condition> SELECT <attributes> FROM <table>
Information Technology (802) · Class 12 · Sep 26, 2026
Show answer
SELECT <attribute list> FROM <table list> WHERE <condition>
Explanation: SELECT <attribute list> FROM <table list> WHERE <condition>; is the basic syntax of a SELECT query.
10

Evaluate the Java relational expression: 2 > 5

MCQ Easy
a. TRUE
b. FALSE
Information Technology (802) · Class 12 · Sep 26, 2026
Show answer
FALSE
Explanation: The expression 2 > 5 evaluates to false.
11

A query that joins two tables WITHOUT any join condition in the WHERE clause, producing a Cartesian product of all rows, is called a:

MCQ Medium
a. Inner Join
b. Cross Join
c. Outer Join
d. Self Join
Information Technology (802) · Class 12 · Sep 26, 2026
Show answer
Cross Join
Explanation: Without a WHERE clause joining the tables, the result is the Cartesian product of both tables' rows — this is called a Cross Join.
12

Evaluate the Java logical expression: (7 > 3) && (2 < 5)

MCQ Medium
a. TRUE
b. FALSE
Information Technology (802) · Class 12 · Sep 26, 2026
Show answer
TRUE
Explanation: Using && (both true), || (either true), and ! (negation) rules, (7 > 3) && (2 < 5) evaluates to true.
13

If Teacher has 14 rows and Department has 9 rows, how many rows result from a Cross Join (SELECT ... FROM Teacher, Department with no WHERE clause)?

MCQ Medium
a. 14
b. 9
c. 23
d. 126
Information Technology (802) · Class 12 · Sep 26, 2026
Show answer
126
Explanation: A Cross Join produces the Cartesian product: 14 x 9 = 126 rows.
14

Evaluate the Java logical expression: (7 > 3) && (2 > 5)

MCQ Medium
a. TRUE
b. FALSE
Information Technology (802) · Class 12 · Sep 26, 2026
Show answer
FALSE
Explanation: Using && (both true), || (either true), and ! (negation) rules, (7 > 3) && (2 > 5) evaluates to false.
15

When the same attribute name (e.g., Dept_ID) exists in both joined tables, ambiguity is resolved by:

MCQ Medium
a. Renaming one of the tables permanently
b. Prefixing the attribute name with the relation name (e.g., Teacher.Dept_ID)
c. Deleting the duplicate column
d. It is not possible to join such tables
Information Technology (802) · Class 12 · Sep 26, 2026
Show answer
Prefixing the attribute name with the relation name (e.g., Teacher.Dept_ID)
Explanation: Ambiguity between same-named attributes across joined tables is resolved by prefixing the attribute with its relation name, e.g., Department.Dept_ID.
16

Evaluate the Java logical expression: (1 > 2) || (3 < 4)

MCQ Medium
a. TRUE
b. FALSE
Information Technology (802) · Class 12 · Sep 26, 2026
Show answer
TRUE
Explanation: Using && (both true), || (either true), and ! (negation) rules, (1 > 2) || (3 < 4) evaluates to true.
17

Aliases for table names in SQL are created using which keyword?

MCQ Easy
a. ALIAS
b. AS
c. RENAME
d. RESOLVE
Information Technology (802) · Class 12 · Sep 26, 2026
Show answer
AS
Explanation: Aliases are created using the keyword AS, e.g., FROM Teacher AS T, Department AS D.
18

Evaluate the Java logical expression: (1 > 2) || (3 > 4)

MCQ Medium
a. TRUE
b. FALSE
Information Technology (802) · Class 12 · Sep 26, 2026
Show answer
FALSE
Explanation: Using && (both true), || (either true), and ! (negation) rules, (1 > 2) || (3 > 4) evaluates to false.
19

Which keyword eliminates duplicate values from a query's result set?

MCQ Easy
a. UNIQUE
b. DISTINCT
c. ONLY
d. SINGLE
Information Technology (802) · Class 12 · Sep 26, 2026
Show answer
DISTINCT
Explanation: The DISTINCT keyword in the SELECT clause removes duplicate values from the result.
20

Evaluate the Java logical expression: !(6 > 2)

MCQ Medium
a. TRUE
b. FALSE
Information Technology (802) · Class 12 · Sep 26, 2026
Show answer
FALSE
Explanation: Using && (both true), || (either true), and ! (negation) rules, !(6 > 2) evaluates to false.