A question bank for every class and subject

Practice questions, with answers and explanations included

794 questions available

Refine

All questions

794 results
361

What will be the result of the Calc formula =(4+3)*2 ?

MCQ Medium
a. 14
b. 16
c. 28
d. 13
Information Technology (802) · Class 11 · Sep 26, 2026
Show answer
14
Explanation: Following operator precedence (parentheses, then multiplication/division, then addition/subtraction, left to right), =(4+3)*2 evaluates to 14.
362

Name the eight primitive data types available in Java.

SHORT Easy
Information Technology (802) · Class 12 · Sep 26, 2026
Show answer
Explanation: byte, short, int, long, float, double, char, and boolean.
363

A database that stores data in separate related tables connected via a common column is called a:

MCQ Easy
a. Flat file database
b. Hierarchical database
c. Relational database
d. Object database
Information Technology (802) · Class 11 · Sep 26, 2026
Show answer
Relational database
Explanation: A Relational database stores data in separate tables that are related through the use of a common column.
364

What will be the result of the Calc formula =(10-2)*3 ?

MCQ Medium
a. 24
b. 48
c. 25
d. 26
Information Technology (802) · Class 11 · Sep 26, 2026
Show answer
24
Explanation: Following operator precedence (parentheses, then multiplication/division, then addition/subtraction, left to right), =(10-2)*3 evaluates to 24.
365

Given int a = 20, b = 30, evaluate the following Java expressions: (i) a%b (ii) a/=b (iii) (a+b*100)/10 (iv) a&&b (v) a++

LONG Hard
Information Technology (802) · Class 12 · Sep 26, 2026
Show answer
Explanation: (i) a%b = 20 (since 20 < 30, the remainder is 20 itself). (ii) a/=b means a = a/b = 20/30 = 0 (integer division), so a becomes 0. (iii) (a+b*100)/10: multiplication first (b*100=3000), then addition (20+3000=3020), then division (3020/10=302). (iv) a&&b is invalid in Java as && requires boolean operands, not integers — this would cause a compile-time error. (v) a++ (post-increment) returns 20 (the value before incrementing), after which a becomes 21.
366

In relational database terminology, the horizontal subset of a table is known as a:

MCQ Easy
a. Field/Column
b. Row/Tuple
c. Domain
d. Key
Information Technology (802) · Class 11 · Sep 26, 2026
Show answer
Row/Tuple
Explanation: A Record (Row/Tuple) is the horizontal subset of a table representing one entity's data.
367

What will be the result of the Calc formula =20/4+1 ?

MCQ Medium
a. 6
b. 8
c. 12
d. 5
Information Technology (802) · Class 11 · Sep 26, 2026
Show answer
6
Explanation: Following operator precedence (parentheses, then multiplication/division, then addition/subtraction, left to right), =20/4+1 evaluates to 6.
368

Java provides which two statements for conditional (selection) execution of code?

MCQ Easy
a. for and while
b. if-else and switch
c. try and catch
d. class and object
Information Technology (802) · Class 12 · Sep 26, 2026
Show answer
if-else and switch
Explanation: Java provides the if-else statement and the switch statement for executing code conditionally.
369

A column or group of columns used to uniquely identify each row of a table is called its:

MCQ Easy
a. Foreign Key
b. Alternate Key
c. Primary Key
d. Domain
Information Technology (802) · Class 11 · Sep 26, 2026
Show answer
Primary Key
Explanation: The Primary Key uniquely identifies each row/record of a relation.
370

What will be the result of the Calc formula =20/(4+1) ?

MCQ Medium
a. 4
b. 8
c. 3
d. 5
Information Technology (802) · Class 11 · Sep 26, 2026
Show answer
4
Explanation: Following operator precedence (parentheses, then multiplication/division, then addition/subtraction, left to right), =20/(4+1) evaluates to 4.
371

In an if statement with only ONE statement in its body, are curly braces mandatory?

MCQ Medium
a. Yes, always mandatory
b. No, they are optional
c. Only for switch statements
d. Only in loops
Information Technology (802) · Class 12 · Sep 26, 2026
Show answer
No, they are optional
Explanation: If there is only one statement in the block following if, the curly braces are optional (though good practice suggests using them).
372

Which key of a table, when used in another (related) table, is called a Foreign Key?

MCQ Medium
a. Candidate Key
b. Primary Key of the base table
c. Alternate Key
d. Composite Key only
Information Technology (802) · Class 11 · Sep 26, 2026
Show answer
Primary Key of the base table
Explanation: A Foreign Key is the Primary Key of one (base) table when used as a column in another related table.
373

What will be the result of the Calc formula =6*2-3*1 ?

MCQ Medium
a. 9
b. 8
c. 11
d. 10
Information Technology (802) · Class 11 · Sep 26, 2026
Show answer
9
Explanation: Following operator precedence (parentheses, then multiplication/division, then addition/subtraction, left to right), =6*2-3*1 evaluates to 9.
374

In the code: if(percentage >= 40) { System.out.println("PASSED"); } else { System.out.println("FAILED"); } — what is displayed if percentage = 35?

MCQ Easy
a. PASSED
b. FAILED
c. Nothing is displayed
d. Compile error
Information Technology (802) · Class 12 · Sep 26, 2026
Show answer
FAILED
Explanation: Since 35 is not >= 40, the condition is false, so the else block executes, displaying FAILED.
375

Candidate keys of a table that are NOT selected as the primary key are called:

MCQ Medium
a. Foreign Keys
b. Alternate Keys
c. Composite Keys
d. Domains
Information Technology (802) · Class 11 · Sep 26, 2026
Show answer
Alternate Keys
Explanation: Candidate keys not chosen as the primary key are known as Alternate Keys.
376

What will be the result of the Calc formula =(6-2)*(3+1) ?

MCQ Medium
a. 16
b. 32
c. 17
d. 18
Information Technology (802) · Class 11 · Sep 26, 2026
Show answer
16
Explanation: Following operator precedence (parentheses, then multiplication/division, then addition/subtraction, left to right), =(6-2)*(3+1) evaluates to 16.
377

Which combination of if-else and logical operator correctly checks if percentage is between 40 (inclusive) and 60 (exclusive) for Second Division?

MCQ Medium
a. if (percentage >= 40 || percentage < 60)
b. if (percentage >= 40 && percentage < 60)
c. if (percentage > 40 && percentage <= 60)
d. if (percentage = 40)
Information Technology (802) · Class 12 · Sep 26, 2026
Show answer
if (percentage >= 40 && percentage < 60)
Explanation: The && (logical AND) operator combines two conditions that must BOTH be true: percentage >= 40 AND percentage < 60.
378

The pool/collection of possible values from which a column's values are derived is called its:

MCQ Medium
a. Domain
b. Attribute
c. Tuple
d. Schema
Information Technology (802) · Class 11 · Sep 26, 2026
Show answer
Domain
Explanation: Domain is the set of possible values from which the value for a column is derived.
379

What will be the result of the Calc formula =15-3*2+1 ?

MCQ Medium
a. 10
b. 9
c. 11
d. 20
Information Technology (802) · Class 11 · Sep 26, 2026
Show answer
10
Explanation: Following operator precedence (parentheses, then multiplication/division, then addition/subtraction, left to right), =15-3*2+1 evaluates to 10.
380

An if-else statement placed within another if or else statement is called:

MCQ Easy
a. A recursive if
b. A nested if-else
c. A cascading switch
d. An infinite if
Information Technology (802) · Class 12 · Sep 26, 2026
Show answer
A nested if-else
Explanation: A nested if-else statement is one if-else placed within another if or else block.