0% found this document useful (0 votes)
4 views6 pages

Document 10

The document outlines the structure and instructions for the Class 9 ICSE Computer Applications Annual Examination for 2023-24. It includes details on the exam format, time allocation, and types of questions in two sections: Section A with multiple-choice questions and Section B with programming tasks. Students are instructed to follow specific guidelines while answering, including writing only on the provided answer script.

Uploaded by

Arsh Verma
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
4 views6 pages

Document 10

The document outlines the structure and instructions for the Class 9 ICSE Computer Applications Annual Examination for 2023-24. It includes details on the exam format, time allocation, and types of questions in two sections: Section A with multiple-choice questions and Section B with programming tasks. Students are instructed to follow specific guidelines while answering, including writing only on the provided answer script.

Uploaded by

Arsh Verma
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 6
ANNUAL EXAMINATION 2023-24 Class 9 (ICSE) COMPUTER APPLICATIONS Time: Two hours Maximum marks: 100 Instructions: Answer to this paper must be written on the answer script provided separately. You will NOT be allowed to write during the first 15 minutes. This time is to be spent in reading the question paper. The time given at the head of this paper is the time allowed for writing the answers. The intended marks for questions or parts of questions are given in brackets [.]. Alll subsections of each question must be answered in the correct order. Please do not write anything on your question paper except your name and roll number. This paper is divided into two sections Section A (40 marks) and Section B (60 marks). Attempt ALL questions from Section A and any four from Section B. ee eeee SECTION A [40 marks] Attempt all questions in this Section. Question 1 Choose correct answers to the questions from t! he given options. (Do not copy the question, write the correct answer only.) * [20] @ Which Java concept does the following picture depict: (a) exit controlled loop (b) nested loop (©) entry controlled loop (@) nested if Gi) Mechanism where one class acquires the properties of another class, (@) Inheritance (0) Abstraction (c) Polymorphism (d) Encapsulation eS ee This paper consists of Six printed pages, Turn over (iii) @) ) (vi) (vii) (iii) (ix) @) Identify the type of the operator ‘=” : (a) ternary operator (b) assignment operator (c) relational operator (d) logical operator Size of boolean data type in bytes is: @ 1 (b) 2 © 4 @ 8 ‘What value will be returned by the statement: Math sqrt(Math.ceil(15.3)); (@) 160 () 16 © 4 @ 40 Assertion (A): In java, variables written in lowercase letters and uppercase letters are not treated as same. Reason (R): Java is a case sensitive language. (@) Both Assertion (A) and Reason (R) are true and Reason (R) is the correct explanation of Assertion (A). (b) Both Assertion (A) and Reason (R) are true but Reason (R) is NOT the correct explanation of Assertion (A). (© _ Assertion (A) is true and Reason (R) is false. (@ Assertion (A) is false and Reason (R) is true. Which of the following statement is NOT used with switch-case: (@) continue () break (© case @ default Which type of loop is represented here? for (inta=5;a<=10;a+4) System.out.print(a); (2) Empty loop (8) Finite loop (©) Infinite loop (@) Nullloop Using > operator in place of < represents what type of error? (@) Syntax error (b) Logical error (©) Runtime error (Compile time error Which of the following is a valid double constant? @ Oe () 4.08 (@) “4.0a” OR (2) (xi) Assertion (A):_A do-while loop is always executed at least once. Reason (R): A do-while loop is an entry controlled loop. (a) Both Assertion (A) and Reason (R) are true and Reason (R) is the correct explanation of Assertion (A). (b) Both Assertion (A) and Reason (R) are true but Reason (R) is NOT the correct explanation of Assertion (A). (c) Assertion (A) is true and Reason (R) is false. (d) Assertion (A) is false and Reason (R) is true. (xii) System.out.print(“Result ” + 5 + 6); will print: (a) Result 11 (b) Result 56 (©) will give error @ u (xiii) Program coded by the programmer for compilation is: (a) Java byte code (6) Machine code (©) Object code (@)_ Source code (xiv) What is the default value of a variable of boolean data type? @ 0 (oe) 1 (©) true (@) false (xv) _ Read the following text and answer the question that follows: Increment and decrement operators are +++ and ~~ respectively. These are unary operators as we require a single variable with increment and decrement operators. ++ increases the value of variable by 1 and —— decreases the value ofa variable by 1. Which of the following statement will give same result as ++a? @ a- () a=atl © -- @ a=1+1 (xvi) System.out.print(“Local \t Global”) will print? (@) Local t Global (b) Local \t Global (©) Local Global (4) LocalGlobal (xvii) A sequence of statements enclosed between a pair of curly brackets is? (a) Annull statement (6) A compound statement (c) An empty statement (@) Logical statement sc csc aan rare a R-4 (3) Turn over (xviii) What is the result of the expression: 100 + 100 * 0 in Java? (a) 200 (&) 1000 (© 100 @ 0 (xix) Which of the following statement is correct for declaring a variable as constant? @ intk=49; (0) int final k= 40; (©) const int k = 40; (@ final int k= 40; (0) Which of the following is used to give a single line comment in Java programs? @ \ (Om © F @/ Question 2 @ Give two differences between for loop and do-while loop. (i) Write Java expression for the following mathematical expression. Jatb| +e Gi) __Re-write the following code using ternary operator: if (marks >= 60) System.out.printin(“PASS”); else System.out.printin(“FAIL”); Gv) _ Give the output of the following program part: int intk=+a%5 + at+-+ta; System.out printin(k); () Rewrite the following code using for loop: int i= 1; while (j-<= 20) { 2) eB) System.out.printin(i * i); i; } p) = (4) (vi) What will be the result retumed by each of the following: (2) Math.floor (7.4) + Math.pow (3, 2) (b) Math.abs(Math.min(-11, -66)) (2) (vii) Give the name of: (a) _ the package that contains Scanner class (b) a keyword that does not terminate the loop and forces the next iteration. [2] (viii) Write a Java statement to display the square root of a number stored in variable n. 2) (ix) What are “Escape Sequences”? Give one example along with its purpose. 2) (x) Give the output of the following program code. int i; for (i= 5 ;i>=1;i--) { if(i%2==1) continue; System.out.print(i+ “ ”); } (2) SECTION B [60 marks] (Attempt any four questions from this section, Each program should be written using variable description/Mnemonic codes so that the logic of the program is clearly depicted.) Question 3 A pre-paid Taxi charges from the passengers as per the tariff given below: U5) Distance Rate upto 5km Rs 100 for the next 10 km Rs 12 per km for the next 10 km Rs 8 per km for above 25 km Rs 5 per km Write a program in Java to accept the distance travelled. Compute and display the net amount to be paid by the passenger. Question 4 Write a program in Java to generate and display the first 20 terms of the Fibonacci Series. Fibonacci series : 0, 1, 1, 2, 3, 5, 8, ...-.- (20 terms), From third term and onwards each term is the sum of previous two terms, Ls) (5) Turn over epuy shoo oo Question 5 pare ‘Write a program in Java to input the values of variables X and Y and print all the prime numbers between them. A Number is said to be a prime number if it has only two factors, | and the number itself. e.g. 2, 3, 5,7, 11 etc. [15] Question 6 Write a menu driven program in Java to calculate and print the Arithmetic mean or the Geometric mean of two numbers depending upon the choice of the user. (Make use of switch — case — default structure.) Arithmetic mean = ?) Geometric mean = vab (Take a and b as inputs from the user.) [15] Question 7 ‘Write a program in Java to display Floyd’s Triangle using nested loop. aaANE a 58 3S = Os) Question 8 Write a program in Java to input a number, check and print whether the number is a Lead number or not, “A number is a Lead Number if the sum of its even digits is equal to the sum of its odd digits”, Consider a number : 1254 Sum of odd digits = 1+5=6 ‘Sum of even digits =2+4= 6 +, 1254 is a Lead Number. us) Pe R-4 (6)

You might also like