Table of Contents
Competency focused Practice Questions ISC Class XII Computer Science
🔒 Please log in to unlock this course.
Computer Science - 10 Years Solved Papers ISC Class XII
Related Questions
Question 1
[Inheritance] Study the given two classes below and identify the error, if any, in the given code.…
Locked. Enroll to open this question.
Question 2
[Computational Complexity and Big-O Notation] Question: Finding the greatest common divisor (GCD)…
Locked. Enroll to open this question.
Question 3
Question: A student had written the following method to display “Hello World” four times: void…
Locked. Enroll to open this question.
Question 4
Question: Finding the greatest common divisor (GCD) of two positive integers results in the time…
Locked. Enroll to open this question.
Question 5
[Computational Complexity and Big-O Notation] Consider the following snippet, calculate the time…
Locked. Enroll to open this question.
Question 6
[Primitive Values, Wrapper Classes, Types and Casting] Complete the code of TeacherA and name the…
Locked. Enroll to open this question.
Question 7
[Primitive Values, Wrapper Classes, Types and Casting] While using Wrapper classes, we do not need…
Locked. Enroll to open this question.
Question 8
[Primitive Values, Wrapper Classes, Types and Casting] What gets printed? char[] set =…
Locked. Enroll to open this question.
Question 9
[Primitive Values, Wrapper Classes, Types and Casting] Identify the most suitable data type…
Locked. Enroll to open this question.
Question 10
[Primitive Values, Wrapper Classes, Types and Casting] The following statement will generate a…
Locked. Enroll to open this question.
Question 11
[Primitive Values, Wrapper Classes, Types and Casting] Since a byte can represent 256 different…
Locked. Enroll to open this question.
Question 12
[Inheritance] What will happen if data members of the super class are made private instead of…
Locked. Enroll to open this question.
Question 13
[Inheritance] What will happen if method void show() in subclass Car is given access specifier as…
Locked. Enroll to open this question.
Question 14
[Interface] All methods declared in an interface are abstract. Where will the body of these…
Locked. Enroll to open this question.
Question 15
[Inheritance] Based on the given image, write the Java statement to create the class Child.
Locked. Enroll to open this question.
Question 16
[Polymorphism] In the given code snippet, which feature of object‑oriented programming concept is…
Locked. Enroll to open this question.
Question 17
[Primitive Values, Wrapper Classes, Types and Casting] Following is a code to convert a String into…
Locked. Enroll to open this question.
Question 18
[Primitive Values, Wrapper Classes, Types and Casting] How many bytes of data is passed when public…
Locked. Enroll to open this question.
Question 19
[String and Arrays] Question: Find the output of the following snippet: void check1() { String x[]…
Locked. Enroll to open this question.
Question 20
[String] Question: Write the Java statement to print the position of the 2nd occurrence of the…
Locked. Enroll to open this question.
Question 21
[String] Question: Find the output: System.out.println( "RocKet".substring(0, 4)…
Locked. Enroll to open this question.
Question 22
[Arrays] Question: What is the length of the array int arr[], if its first index is x and the last…
Locked. Enroll to open this question.
Question 23
[String] Question: How many String objects are created in the following snippet? Justify your…
Locked. Enroll to open this question.
Question 24
[String] Question: Find the output of the following snippet: String S1 = "AB", S2 = "BC"; for(int i…
Locked. Enroll to open this question.
Question 25
[Packages] Question: Why is the lang package termed as the default package in Java?
Locked. Enroll to open this question.
Question 26
[Packages] Question: State the purpose of the following keywords in Java: (a) package (b) import
Locked. Enroll to open this question.
Question 27
[Packages] Question: Given the following code snippet: package mine; public class Greetings {…
Locked. Enroll to open this question.
Question 28
[Computer Hardware] Question: A 2 to 4 decoder contains 2 inputs denoted by A1 and A0 and 4 outputs…
Locked. Enroll to open this question.
Question 29
[Computer Hardware] Question: Write the canonical Product-of-Sum (POS) expression for the Sum and…
Locked. Enroll to open this question.
Question 30
[Computer Hardware] Question: Following is the circuit diagram of a Full Adder. Redraw the circuit…
Locked. Enroll to open this question.
Question 31
[Computer Hardware] Question: Draw the logic circuit diagram for the simplified form of the…
Locked. Enroll to open this question.
Question 32
[Recursion] Question: Following method is a part of a class MyArray. int check(int m[ ], int i) {…
Locked. Enroll to open this question.
Question 33
[Recursion] Question: A student has written the following code. It is written to check whether a…
Locked. Enroll to open this question.
Question 34
[Operation on File] Question: What is the difference between the following two statements? 1.…
Locked. Enroll to open this question.
Question 35
[String Tokenizer] Question: What is the difference between the two methods, nextToken() and…
Locked. Enroll to open this question.
MCQ Section
MCQ 1
[Scope] For the given code snippet, what will be the output? int i; for(i = 5; i >= 1; i--) {…
Locked. Enroll to open this MCQ.
MCQ 2
[StringBuffer] m and n are two StringBuffer objects. The method call m.append(n) will:
Locked. Enroll to open this MCQ.
MCQ 3
[StringBuffer] The code snippet given below will result in: StringBuffer x = new…
Locked. Enroll to open this MCQ.
MCQ 4
[Recursion] Recursion takes toll on memory. Which of the following option is the reason for it?
Locked. Enroll to open this MCQ.
MCQ 5
[Recursion] If binary search technique uses recursion instead of iteration, the code: i. will…
Locked. Enroll to open this MCQ.
MCQ 6
[Arrays] Assume the following two-dimensional array: int[][] x = { {8,9}, {5,6,7}, {1,2,3,4} };…
Locked. Enroll to open this MCQ.
MCQ 7
[Arrays, Strings] Passwords are stored as two Strings: StringA → Password entered by the user…
Locked. Enroll to open this MCQ.
MCQ 8
[Arrays] What is the outcome of the following code snippet? public class Test { public static void…
Locked. Enroll to open this MCQ.
MCQ 9
[Strings] For the following code snippet choose the correct output: int x = 234; String str =…
Locked. Enroll to open this MCQ.
MCQ 10
[Object Oriented Programming] Software developers of Banayan High School have created a class to…
Locked. Enroll to open this MCQ.
MCQ 11
[Object Oriented Programming] Which of the following statements are valid for static member methods…
Locked. Enroll to open this MCQ.
MCQ 12
[Object Oriented Programming] Which one of the following keywords will make the data member a class…
Locked. Enroll to open this MCQ.
MCQ 13
[Object Oriented Programming] What is the constructor's implicit return type?
Locked. Enroll to open this MCQ.
MCQ 14
[Object Oriented Programming] Which of the following is a valid prototype of the non-parameterised…
Locked. Enroll to open this MCQ.
MCQ 15
[Object Oriented Programming] Which one of the given exceptions is raised when a user enters a…
Locked. Enroll to open this MCQ.
MCQ 16
[Inheritance] In single inheritance, which one of the following keywords should NOT be used?
Locked. Enroll to open this MCQ.
MCQ 17
[Inheritance] Assume that class Check implements interfaces A and B. How many times will the method…
Locked. Enroll to open this MCQ.
MCQ 18
[Data Structure] The Central Processing Unit (CPU) scheduling follows the principle of __________…
Locked. Enroll to open this MCQ.
MCQ 19
[Data Structure] For the given Binary Tree, which traversal order will arrange the elements in…
Locked. Enroll to open this MCQ.
MCQ 20
[Data Structure] __________ is called a Self-Referential Data Structure.
Locked. Enroll to open this MCQ.
MCQ 21
[Recursion] Assertion (A): Recursion utilizes more memory as compared to iteration. Reason (R):…
Locked. Enroll to open this MCQ.
MCQ 22
[Boolean Algebra] Assertion (A): In Boolean Algebra, dual of the Boolean expression (A + B)’ . 1 is…
Locked. Enroll to open this MCQ.
MCQ 23
[Boolean Algebra] Assertion (A): The truth table for the XOR gate shows that the output is HIGH…
Locked. Enroll to open this MCQ.
MCQ 24
[Propositional Logic] Assertion (A): The Equivalence expression is p ↔ q. Reason (R): An…
Locked. Enroll to open this MCQ.
MCQ 25
[Boolean Algebra] Assertion (A): The contrapositive of p ⇒ q is q̅ ⇒ p̅. Reason (R): Contrapositive…
Locked. Enroll to open this MCQ.
Get Computer Science - 10 Years Solved Papers ISC Class XII updates by email
Short, practical lessons and course updates from Rumman Ansari. No spam.