ISC Computer Science - Competency Focused Practice Questions (CISCE, August 2024) with Answers
All 75 questions of the ISC Computer Science - Competency Focused Practice Questions (CISCE, August 2024), in printed order. Open a question to read it in full and see its answer.
- Q1 For the given code snippet: … 1 mark · MCQ
- Q2 m and n are two StringBuffer objects. The method call, m.append(n) will: 1 mark · MCQ
- Q3 The code snippet given below will result in: … 1 mark · MCQ
- Q4 Recursion takes toll on memory. Which of the following option is the reason for it? 1 mark · MCQ
- Q5 If binary search technique uses recursion instead of iteration, the code: i. will contain two base cases. ii. will contain two… 1 mark · MCQ
- Q6 Assume int [ ] [ ] x = { {8,9} , {5,6,7},{1,2,3,4}}, what are x[0].length, x[1].length, and x[2].length? 1 mark · MCQ
- Q7 String Description StringA Password entered by the user StringB Password stored by the system Passwords are stored as two… 1 mark · MCQ
- Q8 What is the outcome of the following code snippet: … 1 mark · MCQ
- Q9 For the following code snippet choose the correct output: … 1 mark · MCQ
- Q10 Software developers of Banayan High School have created a class to store the name, age and height of students. If the class shown… 1 mark · MCQ
- Q11 Which of the following statements are valid for static member methods of a class? I. They can access static as well as non-static… 1 mark · MCQ
- Q12 Which one of the following keywords will make the data member as a class variable? 1 mark · MCQ
- Q13 What is the constructor's implicit return type? 1 mark · MCQ
- Q14 Which of the following is a valid prototype of the non-parameterised constructor for the class Book? 1 mark · MCQ
- Q15 Which one of the given exceptions is raised when a user enters a String literal “hello” on the execution of following code: … 1 mark · MCQ
- Q16 In single inheritance, which one of the following keywords should NOT be used. 1 mark · MCQ
- Q17 … Assume that class Check implements interfaces A and B, how many times the method abc( ) will be defined in class Check ? 1 mark · MCQ
- Q18 The Central Processing Unit (CPU) scheduling follows the principle of _________ data structure. 1 mark · MCQ
- Q19 For the given Binary Tree, which traversal order will arrange the elements in ascending order? 1 mark · MCQ
- Q20 ___________ is called a Self-Referential Data structure. 1 mark · MCQ
- Q21 Recursion utilises more memory as compared to iteration. 1 mark · Assertion-reason
- Q22 In Boolean Algebra, dual of the Boolean expression $(A+B)'.1$ is equal to $0$. 1 mark · Assertion-reason
- Q23 The truth table for the XOR gate shows that the output is HIGH only when an odd number of inputs are HIGH. 1 mark · Assertion-reason
- Q24 The Equivalence expression is $p \leftrightarrow q$. 1 mark · Assertion-reason
- Q25 The contrapositive of $p' \Rightarrow q$ is $q' \Rightarrow p$. 1 mark · Assertion-reason
- Q26 Study the given two classes below and identify the error if any, in the given code. … 1 mark · Short answer
- Q27 What will happen if data members of super class are made private instead of protected? 1 mark · Short answer
- Q28 What will happen if void show( ) in subclass Car is given access specifier as private? 1 mark · Short answer
- Q29 All methods declared in the interface are abstract. Where will the body of these abstract methods be defined? 1 mark · Short answer
- Q30 Based on the given image, write the java statement to create the class Child. 1 mark · Short answer
- Q31 In the given code snippet, which feature of object-oriented programming concept is being exhibited by the substring( ) method? … 1 mark · Short answer
- Q32 Following is a code to convert a String into Double. Fill the missing parts of the code: … 1 mark · Fill in
- Q33 How many bytes of data is passed when public void stu_data(int, double, char) is invoked? 1 mark · Short answer
- Q34 Since a byte can represent 256 different numbers, why is its maximum value 127? 1 mark · Short answer
- Q35 The following statement will generate a compile time error. This can be rectified in 2 different ways, without losing precision… 1 mark · Short answer
- Q36 Ram and Hari are coder friends, who are debating effective usage of memory while using variables, without compromising on… 1 mark · Short answer
- Q37 What gets printed? … 1 mark · Short answer
- Q38 While using Wrapper classes, we do not need to import any package. Give a reason. 1 mark · Short answer
- Q39 Teachers of class XII are calculating the average attendance for 3 months. The class attendance for 3 months is stored in double… 1 mark · Short answer
- Q40 Consider the following snippet, calculate the time complexity assuming the code compiles successfully. … 1 mark · Short answer
- Q41 “Finding the greatest common divisor (GCD) of two positive integers results in the time complexity of $O(\log N)$ where $N$ is… 1 mark · Short answer
- Q42 A student had written the following method to display “Hello World” four times on the output screen. … The student modified the… 1 mark · Short answer
- Q43 Find the output of the following snippet: … 1 mark · Short answer
- Q44 The java statement to print the position of 2nd occurrence of the letter 'I' within the word "MICHIGAN". 1 mark · Short answer
- Q45 Find the output: … 1 mark · Short answer
- Q46 What is the length of the array int arr[ ], if its first index is $x$ and the last index is $y$ ? 1 mark · Short answer
- Q47 … How many String objects are created in the above snippet? Justify your answer. 1 mark · Short answer
- Q48 Find the output of following snippet: … 1 mark · Short answer
- Q49 Why is the lang package termed as the default package in Java? 2 marks · Short answer
- Q50 State the purpose of the following keywords in Java: package import 2 marks · Short answer
- Q51 Given the following code snippet: … Predict the output for n = “Abhay”; Explain the difference between the two statements: import… 2 marks · Short answer
- Q52 A 2 to 4 decoder contains 2 inputs denoted by A1 and A0 and 4 outputs denoted by D0, D1, D2, D3. Write the minterm… 2 marks · Short answer
- Q53 Write the cardinal Product-of-Sum (POS) expression for the sum and carry of a full adder. 2 marks · Short answer
- Q54 Following is the circuit diagram of a full adder. Redraw the circuit diagram by adding missing logic gates. 2 marks · Drawing
- Q55 Draw the logic circuit diagram for the simplified form of the following expression: $AB'C' + AB'C + ABC$ The circuit diagram… 2 marks · Drawing
- Q56 Following method is a part of a class MyArray. … Predict the output of the code considering there is no compilation error. Show… 2 marks · Short answer
- Q57 A student has written the following code. It is written to check whether a string is palindrome or not. However, the code is not… 2 marks · Short answer
- Q58 Following code gives a StackOverException. … Stack is a data structure whereas recursion is related to a method. Why does the… 2 marks · Short answer
- Q59 What is the difference between the following two statements? 1. FileWriter fw = new FileWriter(<file name>); 2. FileWriter fw =… 2 marks · Short answer
- Q60 What is the difference between the two methods, nextToken( ) and hasMoreTokens( ) of StringTokenizer class ? 2 marks · Short answer
- Q61 A class teacher has kept the records of the marks obtained in Physics and Computer Science of 3 students along with the students’… 2 marks · Short answer
- Q62 At Get It All supermarket, a POS (Point of Sale) system is designed. The cart management is visible to the POS operator. The… 5 marks · Short answer
- Q63 Answer the questions based on the binary trees: Observe the following binary tree and identify its type. Justify your answer… 5 marks · Short answer
- Q64 Consider the class definitions and answer the questions: Complete the missing parts of the code given below: … Answer the… 5 marks · Short answer
- Q65 Fix the following keywords at the right places: extends, super, protected, abstract, implements … … … … … 5 marks · Short answer
- Q66 Answer the following questions related to object-oriented programming: In Java, polymorphism is exhibited in two different ways… 5 marks · Short answer
- Q67 A student from the Electronics department is asked to design a digital alarm for a smart home security system for the outside… 5 marks · Short answer
- Q68 Given the Boolean function $F(P,Q,R,S) = \Sigma(2,3,5,7,8,10,11,12,13,15)$. Reduce the above expression by using a 4-variable… 5 marks · Short answer
- Q69 Answer the following Boolean algebra questions: $f(a, b, c) = a.b' + a.c + b.c'$. Find its corresponding Cardinal and Canonical… 5 marks · Short answer
- Q70 Post pandemic, to encourage the tourism industry in India, the Ministry of Tourism started a policy in which a tourist would be… 5 marks · Short answer
- Q71 [Programme based on Numbers] An Automorphic number is a number whose square ends with the given number itself. E.g. $(5)^2 = 25$… 10 marks · Program
- Q72 [Programme based on Strings] Two words are called anagram of each other if both the words contain the same letters but they are… 10 marks · Program
- Q73 [Recursion program] Design a class Spy to check if a number is a Spy number or not. A spy number is a number where the sum of its… 10 marks · Program
- Q74 [Object as an Argument] A sports academy wants to conduct a friendly match between two teams with maximum fifteen players. A… 10 marks · Program
- Q75 [Arrays] Given below is an example of a double dimensional array with unequal number of rows and columns. It must be arranged in… 10 marks · Program