A question bank for every class and subject

Practice questions, with answers and explanations included

794 questions available

Refine

All questions

794 results
281

In Java, a group of related classes is called a:

MCQ Medium
a. Method
b. Object
c. Package
d. Constructor
Information Technology (802) · Class 12 · Sep 26, 2026
Show answer
Package
Explanation: A package in Java is a group of related classes; classes in the same package can share data and code.
282

How can you verify that a website uses a secure SSL connection?

SHORT Medium
Information Technology (802) · Class 11 · Sep 26, 2026
Show answer
Explanation: Check for a padlock symbol on the left side of the address bar, which indicates the website has an SSL digital certificate issued by a trusted party.
283

Assuming integer division, what is the value of 20 / 3 in Java?

MCQ Medium
a. 6
b. 6.67
c. 2
d. 17
Information Technology (802) · Class 11 · Sep 26, 2026
Show answer
6
Explanation: In Java, dividing two int values performs integer division, discarding the remainder. 20 / 3 = 6.
284

Which special method must every Java application have, as the first point of execution?

MCQ Easy
a. start()
b. main()
c. run()
d. execute()
Information Technology (802) · Class 12 · Sep 26, 2026
Show answer
main()
Explanation: The main() method is a special method that every Java application must have; its statements are executed first when the program runs.
285

Explain any four cybercrimes as defined in the IT Act, with a brief description of each.

LONG Hard
Information Technology (802) · Class 11 · Sep 26, 2026
Show answer
Explanation: Cyber bullying: harassment inflicted through electronic devices. Cyber stalking: repeated attempts at contact despite disinterest, using electronic communication. Online Job Fraud: defrauding job seekers with false promises of employment. Identity theft: dishonestly using another person's electronic signature, password, or unique identification feature. (Other examples include Vishing, SMSing, SIM Swap Scam, Credit/debit card fraud, Spamming, and Ransomware.)
286

Assuming integer division, what is the value of 9 / 2 in Java?

MCQ Medium
a. 4
b. 4.5
c. 1
d. 7
Information Technology (802) · Class 11 · Sep 26, 2026
Show answer
4
Explanation: In Java, dividing two int values performs integer division, discarding the remainder. 9 / 2 = 4.
287

Which pre-built Java method is commonly used to print a line of output followed by a newline?

MCQ Easy
a. System.out.write()
b. System.out.println()
c. System.print()
d. Console.log()
Information Technology (802) · Class 12 · Sep 26, 2026
Show answer
System.out.println()
Explanation: System.out.println() is used to print output followed by a newline character.
288

List various protective measures a user should take while accessing the Internet.

LONG Medium
Information Technology (802) · Class 11 · Sep 26, 2026
Show answer
Explanation: Never click suspicious links; use strong passwords and change them frequently; never disclose personal information like DOB, address, account details, or passwords; report phishing to cybercrime.gov.in; ensure secure protocols (HTTPS/SSL) for transactions, indicated by a padlock in the address bar; keep the browser updated and secure; be selective about social media friend requests; avoid posting offensive content; use updated antivirus and firewall software; verify website spelling to avoid phishing sites; and delete cookies and temporary files periodically.
289

Assuming integer division, what is the value of 14 / 4 in Java?

MCQ Medium
a. 3
b. 3.5
c. 2
d. 10
Information Technology (802) · Class 11 · Sep 26, 2026
Show answer
3
Explanation: In Java, dividing two int values performs integer division, discarding the remainder. 14 / 4 = 3.
290

What is the key difference between System.out.println() and System.out.print()?

MCQ Easy
a. print() adds a newline after output, println() does not
b. println() adds a newline after output, print() does not
c. There is no difference
d. print() only works with numbers
Information Technology (802) · Class 12 · Sep 26, 2026
Show answer
println() adds a newline after output, print() does not
Explanation: System.out.println() prints the output followed by a newline, causing subsequent output to appear on a new line; System.out.print() does not add a newline.
291

A document created in OpenOffice Writer is saved with which file extension by default?

MCQ Easy
a. .doc
b. .odt
c. .txt
d. .rtf
Information Technology (802) · Class 11 · Sep 26, 2026
Show answer
.odt
Explanation: OpenOffice Writer documents are stored with the .odt extension by default.
292

Assuming integer division, what is the value of 25 / 7 in Java?

MCQ Medium
a. 3
b. 3.57
c. 4
d. 18
Information Technology (802) · Class 11 · Sep 26, 2026
Show answer
3
Explanation: In Java, dividing two int values performs integer division, discarding the remainder. 25 / 7 = 3.
293

What is a variable in Java?

MCQ Easy
a. A fixed constant value
b. A placeholder for data that can change its value during program execution
c. A type of loop
d. A comment in the code
Information Technology (802) · Class 12 · Sep 26, 2026
Show answer
A placeholder for data that can change its value during program execution
Explanation: A variable is a placeholder for data that can change its value during program execution — technically, a name for a storage location in memory.
294

Which bar in OpenOffice Writer displays the current page number, total pages, and zoom slider?

MCQ Easy
a. Ruler Bar
b. Status Bar
c. Scroll Bar
d. Menu Bar
Information Technology (802) · Class 11 · Sep 26, 2026
Show answer
Status Bar
Explanation: The Status Bar displays information about the current document such as page number, total pages, and zoom level.
295

Assuming integer division, what is the value of 18 / 6 in Java?

MCQ Medium
a. 3
b. 3
c. 0
d. 12
Information Technology (802) · Class 11 · Sep 26, 2026
Show answer
3
Explanation: In Java, dividing two int values performs integer division, discarding the remainder. 18 / 6 = 3.
296

Which data type would be appropriate for storing a variable that can have fractional (floating point) values, e.g., percentage?

MCQ Easy
a. int
b. double
c. boolean
d. char
Information Technology (802) · Class 12 · Sep 26, 2026
Show answer
double
Explanation: double is a floating-point data type suitable for storing fractional values like percentage.
297

Which tab in OpenOffice Writer is used to insert page numbers, headers, footers, and tables?

MCQ Easy
a. File
b. Edit
c. Insert
d. View
Information Technology (802) · Class 11 · Sep 26, 2026
Show answer
Insert
Explanation: The Insert tab contains commands for inserting elements like page numbers, headers, footers, tables, and hyperlinks.
298

Evaluate the relational expression: 10 > 5

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

How many primitive data types does Java support?

MCQ Medium
a. Four
b. Six
c. Eight
d. Ten
Information Technology (802) · Class 12 · Sep 26, 2026
Show answer
Eight
Explanation: Java supports eight primitive data types: byte, short, int, long, float, double, char, and boolean.
300

Which command is used to save an already saved file with a new name?

MCQ Medium
a. Save
b. Save As
c. New
d. Export
Information Technology (802) · Class 11 · Sep 26, 2026
Show answer
Save As
Explanation: Save As is used to save a file for the first time or to save an existing file under a different name.