Prashnikaप्रश्निका
Code
About
Computer ScienceClass 12

Programming in Java (Review of Class XI Sections B and C) - ISC Class 12 Computer Science Questions with Answers

3 past-paper questions on Programming in Java (Review of Class XI Sections B and C) from ISC Class 12 Computer Science papers (2025), newest first, in full. Tap "Show answer" under a question to see its answer. The syllabus covers Review of Class XI programming constructs and Higher order problem solving.

3questions
1years
2025newest
20253 questions
2 marks · Case basedOpen: State the purpose of the following keywords in Java: package import

Answer the following questions.

State the purpose of the following keywords in Java:
(a)[1]
package
(b)[1]
import
Show answer

Answer (a)

package: it groups related classes and interfaces together under one namespace, making them easier to organise, locate, reuse and avoid naming conflicts.

Answer (b)

import: it is used to bring a class (or all classes) of a package into a program so that its members can be used without writing the fully qualified name each time.
2 marks · Short answerOpen: Why is the lang package termed as the default package in Java?

Answer the following question.

Why is the lang package termed as the default package in Java?
Show answer

Answer

The java.lang package is called the default package because it is imported automatically into every Java program by the compiler; unlike other packages, it does not need an explicit import statement to use the classes it provides (such as String, Math, Integer and the other wrapper classes).
2 marks · Case basedOpen: Given the following code snippet: package mine; public class Greetings { public…

Answer the following questions.

Given the following code snippet:
package mine; 
public class Greetings 
{ 
    public static void greet(String name) 
    { 
        System.out.println("Hello " + name + ", welcome to the world of programming"); 
    } 
} 

import java.util.*; 
import mine.*; 
public class Trial 
{ 
    public static void main() 
    { 
        Scanner sc = new Scanner(System.in); 
        System.out.println("Give your name"); 
        String n = sc.next(); 
        Greetings.greet(n); 
    } 
}
(a)[1]
Predict the output for n = “Abhay”;
(b)[1]
Explain the difference between the two statements: import java.util.*; and import mine.*;
Show answer

Answer (a)

Output: Give your name Hello Abhay, welcome to the world of programming

Answer (b)

import java.util.*; imports all the classes of the built-in java.util package (e.g. Scanner, StringTokenizer). import mine.*; imports all the classes of the user-defined package mine (here, the class Greetings) that the programmer created.

About Programming in Java (Review of Class XI Sections B and C)

Programming in Java (Review of Class XI Sections B and C) is a unit of the ISC Class 12 Computer Science syllabus.

The syllabus lists these topics: Review of Class XI programming constructs and Higher order problem solving.

Prashnika has 3 past-paper questions on Programming in Java (Review of Class XI Sections B and C), from papers of 2025. By kind: Case based (2) and Short answer (1). They carry between 2 and 2 marks, and most are worth 2 marks.

To practise, use the paper generator, which can build a practice paper from this chapter.

Common questions

What topics are in Programming in Java (Review of Class XI Sections B and C) in ISC Class 12 Computer Science?

The syllabus lists Review of Class XI programming constructs and Higher order problem solving.

How many questions on Programming in Java (Review of Class XI Sections B and C) are in ISC Class 12 Computer Science past papers?

Prashnika has 3 questions on Programming in Java (Review of Class XI Sections B and C), from papers of 2025 (board, specimen, improvement and practice papers together).

What kinds of questions are asked on Programming in Java (Review of Class XI Sections B and C)?

By kind: Case based (2) and Short answer (1).