Docsity

ICSE Class X Computer Applications: Competency-Focused Practice Questions, Exercises of Computer science

Partial preview of the text

Download ICSE Class X Computer Applications: Competency-Focused Practice Questions and more Exercises Computer science in PDF only on Docsity!

PREFACE

With a growing emphasis on competency-based education globally, the educational landscape in India has also steered towards high-quality learning experiences that allow learners to incorporate critical thinking and problem-solving approaches. This approach goes beyond rote memorisation and focuses on developing the skills and knowledge that students need to apply in their real-world scenarios. The Council for the Indian School Certificate Examinations (CISCE), as a national-level progressive examination board, has taken several steps to infuse competency-based education in CISCE schools through teacher capacity-building on item development for competency-based assessments and the incorporation of competency-focused questions at the ICSE and ISC levels from the examination year

To further facilitate the adoption of competency-based assessment practices in schools and to support teachers and students towards the preparation for attempting higher-order thinking questions in future board examinations, Item Banks of Competency-Focused Practice Questions for selected subjects at the ICSE and ISC levels have been developed. This Item Bank consists of a rich variety of questions, both objective and subjective in categories, aimed at enhancing the subject-specific critical and analytical thinking skills of the students. In this Item Bank, each question is accompanied by the topic and cognitive learning domain/s that it intends to capture. The cognitive domains reflected in these questions include understanding, analysis, application, evaluation and creativity, along with some questions of the higher-order recall domain. The Answer Key at the end presents the possible answers to a given question, but it is neither limiting nor exhaustive. These practice questions are also meant to serve as teacher resources for classroom assignments and as samplers to develop their own repository of competency-focused questions. Apart from offering a good practice of higher-order thinking skills, engaging with these questions would allow students to gauge their own subject competencies and use these assessments for learning to develop individual learning pathways. During the development of this Item Bank, a large pool of questions was prepared by a team of experienced CISCE teachers. The questions that were finalised by the internal and external reviewers as being higher-order competency-focused questions have been collated in this item bank. I acknowledge and appreciate all the ICSE and the ISC subject matter experts who have contributed to the development and review of these high-quality competency-focused questions for CISCE students. We are hopeful that teachers and students will utilise these questions to support their teaching-learning processes. September 2024 Dr. Joseph Emmanuel Chief Executive & Secretary CISCE

COMPETENCY-FOCUSED PRACTICE QUESTIONS

ICSE - CLASS X

Computer Applications

I: Multiple Choice Questions (1 mark)

S.No Questions

1. [User Defined Methods] What is the type of error, if any, when two methods have the same method signature? (a) Runtime error (b) Logical error (c) Syntax error (d) No error [Understanding] 2. [User Defined Methods] The advantage/s of user-defined methods are/is: (i) Reusability (ii) Complexity (iii) Modularity (a) Only (i) (b) (ii) and (iiii) (c) Only (iiii) (d) (i) and (iii) [Understanding] 3. [User Defined Methods] Parameters which receive the values from the called method are termed as _______ parameters. (a) actual (b) formal (c) reference (d) class [Understanding]

S.No Questions

4. [User Defined Methods] Which of the following is a valid method prototype? (a) public int perform (int a;int b) (b) public perform (int a, int b) (c) public int perform (int a, int b) (d) public perform int (int a, int b) [Analysis] 5. [User Defined Methods] Which of the following is the CORRECT statement to invoke the method with the prototype int display(int a, char ch)? (a) int m = display(‘A’, 45); (b) int m = display( ); (c) int m = display(A,45); (d) int m = display(45,‘A’); [Analysis] 6. [String handling] Which of the following is the CORRECT java statement to convert the word RESPECT to lowercase? (a) “RESPECT”. tolowercase( ); (b) ”RESPECT”.toLowerCase( ); (c) toLowerCase(“RESPECT”); (d) String. toLowerCase(“RESPECT”); [Analysis] 7. [Library Classes] Which of the following are Wrapper classes? (i) Boolean (ii) boolean (iii) character (iv) Character (a) (i) and ((iv) (b) (ii) and (iv) (c) (i) and (iii) (d) (ii) and (iii) [Understanding] 8. [Library Classes] Conversion of a wrapper class to its corresponding primitive type is known as : (a) unboxing (b) autoboxing (c) type casting (d) parsing [Understanding]

S.No Questions

14. [Arrays] In the bubble sort technique, during each iteration of the inner loop, two adjacent elements are __________and __________. (i) compared (ii) swapped (iii) selected (iv) deleted (a) (i) and (ii) (b) (ii) and (iii) (c) (iii) and (iv) (d) (ii) and (iv) [Understanding] 15. [Arrays] What is the highest index of any array with 100 elements? (a) 100 (b) 101 (c) 99 (d) 98 [Recall] 16. [User Defined Methods] Mr. Sanjay is an event manager, he plans and allots duties to each of his subordinates to handle different events. In a program, a task is divided into simple methods. Name the feature used in these contexts. (a) Complexity (b) Modularity (c) Reusability (d) Monolithic [Understanding & Analysis] 17. [Input in Java] Raj was asked to accept the phone number which has 10 digits, using the appropriate method of Scanner class. Which of the following statement he must choose? (a) Ob. nextInt() (b) Ob. nextDouble() (c) Ob. nextLong() (d) Ob. next().chatAt(0) [Analysis] 18. [String Handling] Raj wanted to count the number of digits in a given number without using a loop. Which of the following statements is correct to perform the above? (a) String.valueOf(n).length() (b) Integer.parseInt(n).length() (c) n.length() (d) All the above [Analysis]

S.No Questions

19. [String Handling] Sham was asked to encode a string S, by replacing the letter E with #. Select the appropriate statement: (a) S.replace(‘#’,’E’) (b) S. replace(‘E’) (c) S. replace(‘E’, ‘#’) (d) S. replace(‘#’) [Analysis] 20. [String Handling] When the String m is compared to n , the result obtained is greater than zero. Which of the following is true? (a) m c omes before n in the dictionary. (b) n co mes before m in the dictionary. (c) m and n are equal. (d) m and n have the same length. [Analysis] 21 [String Handling] Which of the following String methods has integer argument? (i) length (ii) substring (iii) indexOf (iv) charAt (a) Only (ii) (b) (i) and (iv) (c) (ii) and (iv) (d) (iii) and (iii) [Analysis] 22. [Introduction to Object-Oriented Programming Concepts] Assertion : Property by virtue of which one class acquires the properties of another class is termed as Inheritance. Reason: Inheritance promotes reusability. (a) Assertion is true, Reason is false. (b) Assertion is true, Reason is true. (c) Assertion is false, Reason is false. (d) Assertion is false, Reason is true. [Understanding] 23. [User Defined Methods] Which of the following is NOT true for polymorphism? (a) All methods have the same name. (b) Methods are invoked based on the arguments. (c) Methods should have the same number and the same type of arguments. (d) It is a principle of OOPs. [Analysis]

S.No Questions

27. [Iterative Constructs in Java] What is the type of looping statement depicted in the above picture? (a) Entry controlled loop (b) Exit controlled loop (c) Multiple branching statement (d) All the above. [Understanding & Application] 28. [Arrays] What is the process done in the above picture? (a) Sorting the list in descending order (b) Searching the character in the list (c) Sorting the list in ascending order. (d) None of the above. [Understanding & Application]

S.No Questions

29. [Arrays] Name the method of search depicted in the above picture. (a) Binary Search (b) Selection Sort (c) Bubble Sort (d) Linear Search [Understanding & Application] 30. [User Defined Methods] Name the feature of Java depicted in the above picture. (a) Encapsulation (b) Inheritance (c) Polymorphism (d) Data abstraction [Recall & Understanding]

S.No Questions

34. [Arrays] The sum of a[1] and a[3] in the array int a[]={20,40,60,80,100} is: (a) 80 (b) 100 (c) 120 (d) 60 [Evaluate] 35. [Encapsulation] State which access specifier is less restrictive. (a) private (b) protected (c) default (d) public [Recall] 36. [Mathematical Library Methods] The AMB hotel gives the amount to be paid by the customer as an integer, which of the following Math method rounds off the bill in decimals to an integer? (a) Math.round() (b) Math.pow() (c) Math.ceil() (d) Math.abs() [Recall & Understanding]

S.No Questions

37. [Constructors] Assertion : A class can have multiple constructors Reason: Multiple constructors are defined with same set of arguments. (a) Assertion is true, Reason is false. (b) Both assertion and Reason are false. (c) Both assertion and Reason are true. (d) Assertion is false, Reason is true. [Understanding & Analysis] 38. [Arrays] Assertion : An array can store elements of different data types Reason : An array is a user-defined data type with multiple values of the same data type but a different memory index. (a) Assertion is true, Reason is false. (b) Both Assertion and Reason are false. (c) Both Assertion and Reason are true. (d) Assertion is false, Reason is true. [Analysis] 39. [Values and Datatypes] Which of the following statement is an example for explicit typecasting? (a) int amount = 45; (b) int amount = 24*24;; (c) int amount = Integer.parseInt (“45”); (d) int amount = int (45.75); [Analysis] 40. [Mathematical Library Methods] The output of the statement Math.ceil. (89.9)+Math.floor(90.5) is: (a) 0. (b) 180 (c) 180. (d) 180.4 [Analysis] 41. [String Handling] The output of the statement of “TIGER”. indexOf(‘G’) is: (a) 3 (b) 2 (c) - 1 (d) 0 [Understanding]

S.No Questions

46 [Arrays] Sam performs bubble sort on the following array to organise the elements in ascending order: {5,1,2,3} After the first comparison the array is: {1,5,2,3} What would be the array after the next comparison? (a) {1,2,5,3} (b) {1,5,3,2} (c) {1,3,5,2} (d) {1,3,2,5} [Understanding & Analysis]

Very Short Answer Questions ( 2 marks)

S.No Questions

4 7. [Mathematical Library Methods] Write the java statement for: Sum of a raised to b and cuberoot of c [Understanding] 48. [User Defined Methods] Name the following: (a) Method with the same name as of the class and is invoked every time an object is created. (b) Keyword to access the classes of a package. [Understanding] 49. [Library Classes] Name the following: (a) A Character method that checks whether a character is an alphabet or a number. (b) A Math method that does not have an argument. [Understanding]

S.No Questions

50. [String Handling] Cyber police wanted to investigate a case; they wanted to check a list of phone numbers that had 945 anywhere in the phone number. Example: 7394567938, 7685483945.., a method was created to convert the phone number in long data type to a string and check for the existence of the number 945. Fill in the blanks (a) and (b) in the given method with appropriate Java statements: void check(long pno) { String s = _______ (a) _________; if(______ (b) _______) System. out.println(pno); } [Analysis] 51. [String Handling] A manager wants to check the number of employees with names ending with KUMAR, and fill in the blanks in the given program segment with appropriate Java statements: void count(String s[]) { int i, l=_________, c=0; for(i=0;i<l;i++) { if(________________) c++; } System.out.println(c); } [Application] 52. [String Handling] The output of a program which extracts a part of the string “COMPASSION” is as follows: (a) “PASS” (b) “PASSION” Write appropriate Java statements to get the above outputs. [Application]

S.No Questions

58. [Iterative Constructs in Java] Convert the following for loop segment to an exit-controlled loop. for(k=10;k>= - 1;k- - ) System. out. println(k2); System. out. println(k4); [Analysis] 59. [Arrays] Give the output of the following program segment: int x[]={2,45,7,67,12,3}; int i, t=0; for(i=0, t=5;i<3;i++,t- - ) { System. out. println(x[i]+x[t]; } [Analysis] 60. [Arrays] Write Java statements for the following: (a) Initialise the array with the three favourite subjects. (b) Declare an array to store the marks in 3 subjects of 40 students. [Understanding] 61. [Mathematical Library Methods] A Student executes the given program segment and it results in 1.0, irrespective of the value of n. State the type of the error, write the correct statement: void solve(int n) { double power=Math. pow(n, ⅔); System. out. println(power); } [Understanding] 62. [Encapsulation] Consider the following program segment and answer the questions given: for(int k=1;k<=5;k++) System. out. println(k); System. out. println(k); (a) Will the program segment get executed successfully? (b) If not, state the type of error? (c) How do you correct the program if it has any error? [Analysis]

S.No Questions

63. [Arrays] Consider the array: int a[]={12,35,40,22,56,9,70}; (a) In the above given array, using linear search, how many iterations are required to check for the existence of the value 56? (b) If the array is arranged in descending order, how many iterations are required to check for the existence of 56 using linear search? [Analysis] 64. [Evaluation of Expressions] Evaluate the expression: 36%54/2*7%5 [Evaluate] 65. [Arrays] Consider the following program which calculates the Norm of a matrix. Norm is square root of sum of squares of all elements. Fill in the blanks (a) and (b) with appropriate java statements: double norm() { intx[][]={{1,5,6},{4,2,9},{6,1,3}}; int r, c, sum=0; for(r=0;r<3;r++) { for( c=0;c<3;c++) sum=sum+_____ (a) _____; } ____(b) ________; } [Analysis] 66. [Nested for Loops] Give the output of the following program segment: for(r=1;r<=3;r++) { for(c=1;c<r;c++) { System.out. println(r); } } [Analysis]