Answer the following questions.
Show answer
Answer (a)
Answer (b)
11 past-paper questions on Primitive values, Wrapper classes, Types and casting from ISC Class 12 Computer Science papers (2025-2018), newest first, in full. Tap "Show answer" under a question to see its answer. The syllabus covers Primitive values and types, Wrapper classes, Class as user defined type and Type casting and coercion.
Nothing matches. Try fewer letters.
Answer the following questions.
Answer (a)
Answer (b)
Answer the following question.
Answer
Answer the following question.
| TeacherA | TeacherB |
|---|---|
int average = (____)((m1+m2+m3)/3); | int average = Math.round((m1+m2+m3)/3); |
Answer
Answer the following question.
float price = 17.99;Answer
Fill in the blanks marked ?1?, ?2? ... so that the code works.
____ str = "15.45";
double d = ____ (Double.parseDouble(str));Answer
Blanks: String; (double)
String str = "15.45";
double d = (double) (Double.parseDouble(str));d now holds 15.45.Answer the following question.
Answer
What is the output of the following code?
char [ ] set = {'*','D','5'};
System.out.print(Character.isDigit(set[2]) + " ");
System.out.print(Character.isWhitespace(set[0]) + " ");
System.out.print(Character.isLetterOrDigit(set[1]));Answer
Answer the following question.
public void stu_data(int, double, char) is invoked?Answer
Choose the correct option.
System.out.print(Integer.parseInt("234") + 'A');Answer
Correct option: (c)
Choose the correct option.
System.out.print('A' + '1' + 'C');Answer
Correct option: (c)
Answer the following.
Answer
Primitive values, Wrapper classes, Types and casting is a unit of the ISC Class 12 Computer Science syllabus.
The syllabus lists these topics: Primitive values and types, Wrapper classes, Class as user defined type and Type casting and coercion.
Prashnika has 11 past-paper questions on Primitive values, Wrapper classes, Types and casting, from papers of 2018-2025, asked in 3 different years. By kind: Short answer (6), MCQ (2), Case based (1) and Fill in (1). They carry between 1 and 2 marks, and most are worth 1 mark.
To practise, use the paper generator, which can build a practice paper from this chapter.
The syllabus lists Primitive values and types, Wrapper classes, Class as user defined type and Type casting and coercion.
Prashnika has 11 questions on Primitive values, Wrapper classes, Types and casting, from papers of 2018-2025 (board, specimen, improvement and practice papers together).
By kind: Short answer (6), MCQ (2), Case based (1) and Fill in (1).