ISC 2022 Computer Science - Specimen paper (Semester 2), Paper 1 with Answers
All 17 questions of the ISC 2022 Computer Science - Specimen paper (Semester 2), Paper 1, in printed order. Open a question to read it in full and see its answer.
- Q1(i) The keyword used by a class to acquire the properties of an interface is: 1 mark · MCQ
- Q1(ii) The ability of an object to take many forms is known as: 1 mark · MCQ
- Q1(iii) … With reference to the program code given above, what will the function Toy() return when the value of $n = 56$? 1 mark · MCQ
- Q1(iv) Write the statement in Java to extract the word “MISS” from the word “SUBMISSION”. 1 mark · Short answer
- Q1(v) State the principle by which the stack data structure works. 1 mark · Short answer
- Q1(vi) What is the output of the statement given below? … 1 mark · Short answer
- Q1(vii) Give one reason, why iteration is better than recursion. 1 mark · Short answer
- Q2 Differentiate between direct recursion and indirect recursion. 2 marks · Short answer
- Q3 Convert the following infix notation to postfix notation: $A * (B + C / D) - E / F$ 2 marks · Short answer
- Q4(i) Answer the following question on the diagram of a Binary Tree given below: State the degree of the nodes C and G. Also, state the… 2 marks · Short answer
- Q4(ii) Answer the following question on the diagram of a Binary Tree given below: Write the pre order and post order traversal of the… 2 marks · Short answer
- Q5(i) Design a class Check which checks whether a word is a palindrome or not. (Palindrome words are those which spell the same from… 6 marks · Program
- Q5(ii) Design a class Toggle which toggles a word by converting all upper case alphabets to lower case and vice versa. Example: The word… 6 marks · Program
- Q6(i) A class Fibo has been defined to generate the Fibonacci series 0, 1, 1, 2, 3, 5, 8, 13, ……. (Fibonacci series are those in which… 6 marks · Program
- Q6(ii) A class Gcd has been defined to find the Greatest Common Divisor of two integer numbers. Some of the members of the class are… 6 marks · Program
- Q7 A super class Godown has been defined to store the details of the stock of a retail store. Define a subclass Update to store the… 4 marks · Program
- Q8 A Queue is a linear data structure in which the operations are performed based on FIFO (First In First Out). Define a class Queue… 4 marks · Program