A question bank for every class and subject

Practice questions, with answers and explanations included

794 questions available

Refine

All questions

794 results
481

Convert: 3 MB = ______ GB.

SHORT Medium
Information Technology (802) · Class 11 · Sep 26, 2026
Show answer
Explanation: 3 MB = 3 x 1024 GB = 3072 GB.
482

In Object Oriented Programming, a program is viewed as:

MCQ Easy
a. A single sequence of instructions
b. A collection of objects that interact with each other to solve a problem
c. A set of only global variables
d. A single function
Information Technology (802) · Class 12 · Sep 26, 2026
Show answer
A collection of objects that interact with each other to solve a problem
Explanation: In OOP, a program is a collection of objects that interact with each other to solve a problem; each object is an instance of a class.
483

Write a SQL query to display the names of all products from a table named GYM.

SHORT Easy
Information Technology (802) · Class 11 · Sep 26, 2026
Show answer
Explanation: SELECT PrName FROM GYM;
484

Convert: 4 MB = ______ GB.

SHORT Medium
Information Technology (802) · Class 11 · Sep 26, 2026
Show answer
Explanation: 4 MB = 4 x 1024 GB = 4096 GB.
485

A class is best described as:

MCQ Easy
a. An instance of an object
b. A physical or logical entity having certain attributes (a template for creating objects)
c. A single value stored in memory
d. A loop construct
Information Technology (802) · Class 12 · Sep 26, 2026
Show answer
A physical or logical entity having certain attributes (a template for creating objects)
Explanation: A class is a template/blueprint (a physical or logical entity with attributes) from which objects are created.
486

Write a SQL query to display names of all products from table GYM with UnitPrice less than 20000.

SHORT Medium
Information Technology (802) · Class 11 · Sep 26, 2026
Show answer
Explanation: SELECT PrName FROM GYM WHERE UnitPrice < 20000;
487

Convert: 5 MB = ______ GB.

SHORT Medium
Information Technology (802) · Class 11 · Sep 26, 2026
Show answer
Explanation: 5 MB = 5 x 1024 GB = 5120 GB.
488

An object is:

MCQ Easy
a. A class definition
b. An instance of a class
c. A primitive data type
d. A method with no body
Information Technology (802) · Class 12 · Sep 26, 2026
Show answer
An instance of a class
Explanation: An object is an instance of a class, populated with specific data for its data members.
489

Write SQL statements for the following on table GYM(PrCode, PrName, UnitPrice, Manufacturer): (a) Display details of products with unit price between 20000 and 30000. (b) Display all rows sorted in descending order of unit price. (c) Apply a 10% discount reduction on the Unit Price of all products.

LONG Hard
Information Technology (802) · Class 11 · Sep 26, 2026
Show answer
Explanation: (a) SELECT * FROM GYM WHERE UnitPrice BETWEEN 20000 AND 30000; (b) SELECT * FROM GYM ORDER BY UnitPrice DESC; (c) UPDATE GYM SET UnitPrice = UnitPrice - UnitPrice*0.1;
490

Convert: 2 GB = ______ TB.

SHORT Medium
Information Technology (802) · Class 11 · Sep 26, 2026
Show answer
Explanation: 2 GB = 2 x 1024 TB = 2048 TB.
491

In a class Book with data members Title, Author, Publisher and methods display() and getPrice(), the data members are also called:

MCQ Easy
a. Method members
b. Data members (attributes)
c. Constructors
d. Access modifiers
Information Technology (802) · Class 12 · Sep 26, 2026
Show answer
Data members (attributes)
Explanation: Title, Author, Publisher etc. are data members (attributes) of the class; display() and getPrice() are method members.
492

Explain the difference between DELETE and DROP commands in SQL.

LONG Medium
Information Technology (802) · Class 11 · Sep 26, 2026
Show answer
Explanation: DELETE is a DML command that removes rows/records from a table (optionally based on a WHERE condition) while keeping the table structure intact; the deleted data can potentially be rolled back in some systems. DROP is a DDL command that removes the entire table (both structure and data) from the database permanently; once dropped, the table itself no longer exists.
493

Convert: 3 GB = ______ TB.

SHORT Medium
Information Technology (802) · Class 11 · Sep 26, 2026
Show answer
Explanation: 3 GB = 3 x 1024 TB = 3072 TB.
494

A special method used to initialize the data members of a class when an object is created is called a:

MCQ Easy
a. Destructor
b. Constructor
c. Accessor
d. Mutator
Information Technology (802) · Class 12 · Sep 26, 2026
Show answer
Constructor
Explanation: A constructor is a special method with the same name as the class, used to initialize data members when a new object is created.
495

Which window in NetBeans IDE is used to change the properties of a currently selected control on the form?

MCQ Easy
a. Inspector Window
b. Properties Window
c. Code Editor Window
d. Palette
Information Technology (802) · Class 11 · Sep 26, 2026
Show answer
Properties Window
Explanation: The Properties Window allows changes to be made to the properties of the currently selected control on the form.
496

Convert: 4 GB = ______ TB.

SHORT Medium
Information Technology (802) · Class 11 · Sep 26, 2026
Show answer
Explanation: 4 GB = 4 x 1024 TB = 4096 TB.
497

Which of these statements about a Java constructor is TRUE?

MCQ Medium
a. It has a return type of void
b. It has the same name as the class and no return type
c. It must always take at least one parameter
d. It is called explicitly using the 'call' keyword
Information Technology (802) · Class 12 · Sep 26, 2026
Show answer
It has the same name as the class and no return type
Explanation: A constructor has the same name as the class, has NO return type, and may or may not take parameters; it is invoked automatically (not explicitly called) when a new object is created.
498

Controls that act as a background for other controls (e.g., Frame) are called:

MCQ Medium
a. Child controls
b. Parent/container controls
c. Static controls
d. Event controls
Information Technology (802) · Class 11 · Sep 26, 2026
Show answer
Parent/container controls
Explanation: Parent or container controls act as a background for other (child) controls; deleting a parent deletes its children too.
499

Convert: 5 GB = ______ TB.

SHORT Medium
Information Technology (802) · Class 11 · Sep 26, 2026
Show answer
Explanation: 5 GB = 5 x 1024 TB = 5120 TB.
500

If a class defines only a parameterized constructor, what happens when you try to create an object without arguments, e.g., new Book()?

MCQ Hard
a. It works fine using default values
b. A compile error occurs (actual/formal arguments differ in length)
c. It creates a null object
d. It silently ignores the constructor
Information Technology (802) · Class 12 · Sep 26, 2026
Show answer
A compile error occurs (actual/formal arguments differ in length)
Explanation: Once a parameterized constructor is defined, calling new Book() without arguments causes a compile error, unless a no-argument (parameter-less) constructor is also explicitly defined.