CISCE Board - ICSE Class 9

Java Programming Foundation question bank (Computer Applications)

Practice 434 free CISCE Board - ICSE Class 9 Computer Applications - Java Programming Foundation questions with answers and step-by-step solutions.

Q1.

Control Structures: What is the output of the loop construct in 'Object-Oriented Programming (OOP) Principles: Encapsulation, Inheritance, Polymorphism'?

(A)
Predictable iterative output adhering to loop condition (Object-Oriented Programming (OOP) Principles: Encapsulation, Inheritance, Polymorphism)
(B)
Infinite loop crash
(C)
Negative compilation
(D)
None of these
Show answer & solution
Verified Answer & Solution Locked
Sign in to your free student account to reveal verified answers, instant hints, and detailed explanations.
Sign in to view
Q2.

String Manipulation: In Java, what does `str.substring(2, 5)` return for 'Object-Oriented Programming (OOP) Principles: Encapsulation, Inheritance, Polymorphism'?

(A)
Characters from index 2 up to index 4 (inclusive of beginIndex, exclusive of endIndex) (Object-Oriented Programming (OOP) Principles: Encapsulation, Inheritance, Polymorphism)
(B)
Characters from index 2 to 5 inclusive
(C)
Length of the string
(D)
None of these
Show answer & solution
Verified Answer & Solution Locked
Sign in to your free student account to reveal verified answers, instant hints, and detailed explanations.
Sign in to view
Protected Questions

Unlock All 373 Questions in Java Programming Foundation

Log in or sign up free to access every question with complete solutions, create chapter practice tests, and track your performance.

Sign up free to access all 373 questions

Unlock every Java Programming Foundation question, generate papers, and practice at your own pace.