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

Variables, Expressions - ISC Class 12 Computer Science Questions with Answers

2 past-paper questions on Variables, Expressions from ISC Class 12 Computer Science papers (2026-2025), newest first, in full. Tap "Show answer" under a question to see its answer. The syllabus covers Variables and named constants, Expressions and evaluation and Assignment operation.

2questions
2years
2026newest
20261 question
1 mark · MCQOpen: Consider the following statement written in class Student where school_Name is…

Choose the correct option.

Consider the following statement written in class Student where school_Name is its data member.
static final String school_Name = "Co-Ed School";
Which of the following statements are valid for school_Name? I. All objects of class Student share the same value of school_Name. II. The value of school_Name cannot be changed during program execution. III. The keywords static and final cannot be used together for a variable.
  • (a)Only I and II
  • (b)Only II and III
  • (c)Only I and III
  • (d)Only III
Show answer

Answer

Correct option: (a)

Answer: (a) Only I and II A static variable is a class variable shared by all instances of the class (Statement I is valid), and a final variable is a constant whose value cannot be modified during execution (Statement II is valid). Keywords static and final can be used together in Java.
20251 question
1 mark · MCQOpen: Consider the following statement written in class Circle where pi is its data…

Choose the correct option.

Consider the following statement written in class Circle where pi is its data member.
static final double pi = 3.142;
Which of the following statements are valid for pi? I. It contains a common value for all objects class Circle. II. Its value is non-changeable. III. At a time two access modifiers, static and final, cannot be applied to a single data member pi.
  • (a)I and II
  • (b)II and III
  • (c)I and III
  • (d)Only III
Show answer

Answer

Official answer key

Correct option: (a)

Answer: (a) I and II Since pi is declared static, all objects of class Circle share the one common copy of it, so statement I is valid. Since it is also final, its value cannot be changed once initialised, so statement II is valid. Statement III is false, since static and final can (and often do) apply together to the same data member, exactly as shown here, to create a class-wide constant.

About Variables, Expressions

Variables, Expressions is a unit of the ISC Class 12 Computer Science syllabus.

The syllabus lists these topics: Variables and named constants, Expressions and evaluation and Assignment operation.

Prashnika has 2 past-paper questions on Variables, Expressions, from papers of 2025-2026, asked in 2 different years. By kind: MCQ (2). They carry between 1 and 1 marks, and most are worth 1 mark.

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

Common questions

What topics are in Variables, Expressions in ISC Class 12 Computer Science?

The syllabus lists Variables and named constants, Expressions and evaluation and Assignment operation.

How many questions on Variables, Expressions are in ISC Class 12 Computer Science past papers?

Prashnika has 2 questions on Variables, Expressions, from papers of 2025-2026 (board, specimen, improvement and practice papers together).

What kinds of questions are asked on Variables, Expressions?

By kind: MCQ (2).