Trending ▼   ResFinder  

ICSE Class X Prelims 2023 : Computer Applications (St. Francis Convent School, Meerut)

4 pages, 47 questions, 0 questions with responses, 0 total responses,    0    0
Alka S
St. Francis Convent School, Meerut
+Fave Message
 Home > alka12345 >   F Also featured on: School Page neha8991

Instantly get Model Answers to questions on this ResPaper. Try now!
NEW ResPaper Exclusive!

Formatting page ...

CLASS X IInd PREBOARD EXAMINATION COMPUTER APPLICATIONS Time : 2 hrs Section a Attempt all questions from this section. [40 marks] Max. Marks 100 Question 1: a. b. c. d. What do you mean by Abstractiion? Differentiate between nextInt() and hasnextInt(). What do you mean by constructor? Give any two features of constructor. What do you mean by Function overloading? Which concept of OOP is used in function Overloading? e. Name the two ways of invoking a function. How are primitive and non primitive data types passed to a function [2] [2] [2] [2] [2] Question 2: a. Differentiate between pure and impure functions with example . [2] b. If int a[] ={3,5,6,2,4,15,9,164,20} what will be the value of x and y after the execution of the following statements. [2] i. int x=a.length. int y =Math.pow (a[0],a[3]); c. What is the value of x after evaluating the following expression? [1] int x; x - = 50%++y + ++y/5; if x= 10 and y=6. d. Do as directed in the following code [2] String s= Uttar Pradesh ; String t= Akhand Bharat ; [2] i. Write the statement to print Uttarakhand by using proper string functions from String s and String t. ii. System.out.println(s.length()); iii. System.out.println( Character.isUpperCase(t. charAt(s.indexOf( r ))); iv. System.out.println(s.charAt(3)==t.charAt(3)) e. Predict the output of the following. [2] i. Math.pow(64,0.5) +Math.sqrt(Math.abs(-16)); ii. Math.ceil(34.7)+Math.max(5,30); iii. CAMERA .compareTo( CAMEL ); iv. System.out.println ( Make .concat( Made in India .substring(4))); Question 3: a. Give the keyword for i. Using/ Calling a package to a program [2] b. c. d. e. f. ii. Unit of the class that is called automatically as soon as you create an object iii. Informs that an error occurs in an Input /Output operation iv. Stores the address of the currently calling object Differentiate between static variable and instance variable [2] What do you mean by fall through Explain with example . [2] What do you mean by errors? Identify the type of errors in the following . 1. Using > in place of < [2] Convert the following string into integer data type [1] String x = 258 ; Name the following [ 2] i. Forced conversion of one data type to another data type. ii. Convert one primitive data type into an object iii. First line of function definition iv. A group of classes defined under a single name Question 4: a. If School is the constructor in a class i. what is the class name of the program. ii. Create an object student for the class. [2] b. Write java expression for the following. [2] x =|a| + 5 + + c. Name the concept of OOP explained in the statement class xyz extends abc. [1] a. Consider the following part of program and answer the questions given below. class TV { static int channelno; String Channelname; double amount void tatasky( int r) { int g = r+5; Channelname = Starplus ; } void dishtv( int x) { x=x+5; Channelname = Zee TV ; } a. Name the class variable, instance variable and local variable. b. Name the pure function and impure function from the above code. [2] b. Write the prototype of a function called attitude that accepts two integer numbers, one character and returns a double value. [1] SECTION B Attempt any four questions from this section. Each program carries 15 marks. Each question should contain variable descriptions/Mnemonic codes so that the logic of the program is clearly depicted. Question 5: Design a class named ShowRoom with the following description: Instance variables/data members: String name: to store the name of the customer. long mobno: to store the mobile number of the customer. double cost: to store the cost of the items purchased. double dis: to store the discount amount. double amount: to store the amount to be paid after discount. Member methods: ShowRoom(): default constructor to initialize data members. void input(): to input customer name, mobile number, cost. void calculate(): to calculate discount on the cost of purchased items, based on the following criteria: void display(): to display customer name, mobile number, amount to be paid after discount. COST Less than or equal to Rs. 10000 More than Rs 10000 and less than or equal to Rs 20000 More than Rs 20000 and less than or equal to Rs 35000 More than Rs 35000 DISCOUNT IN PERCENTAGE 5% 10% 15% 20% Write a main() method to create an object of the class and call the above member methods. Question 6: Write a program to input 10 numbers in a Single Dimension Array. Input a number and search whether the number is present in the array or not by using Linear Search technique. If it is present print the position of array along with the message Element found in array else print Element not found in Array . Question 7: Write a program to input a number and find whether the number is an ADAM number or not A number is said to be ADAM if the square of the number is equal to square of the reversed number Use a function called reverse to reverse the numbers. Sample Input : 12 Reverse of 12 =21 Sample Output : square of 12 =144 square of 21 =441 144 and 441 are reverse to each other Question 8: Design a class to overload a function Sum( ) as follows: (i) int Sum(int A, int B) with two integer arguments (A and B) calculate and return sum of all the even numbers in the range of A and B. Sample input: A=4 and B=16 Sample output: sum = 4 + 6 + 8 + 10 + 12 + 14 + 16 (ii) double Sum( double N ) with one double arguments(N) calculate and return the product of the following series: sum = 1.0 x 1.2 x 1.4 x . x N (iii) int Sum(int N) - with one integer argument (N) calculate and return sum of only odd digits of the number N. Sample input : N=43961 Sample output : sum = 3 + 9 + 1 = 13 Write the main method to create an object and invoke the above methods. Question 9: Write a program to input integer elements into an array of size 20 and perform the following operations: i) Display largest number from the array ii) Display sum of all the elements of the array Question 10: Write a program to input a number and find whether the number is a Dudeny number or Narcissist number A number is said to be Dudeny number is the sum of all digits of the number is equal to the cube root of the number. Sample Input 512. Sample Input 64 Cube root of 512 8 Cube root of 64 4 Sum of digits 5 + 1 +2 = 8 Sum of Digits 6+4 =10 Sample Output 512 is Dudeny no Sample Output 64 is not Dudeny no A number is said to be Narcissist number where the sum of the digits raised to the power of the number of its digits is equal to the same number Eg 13 + 53 +33 = 153 1634 14 +64 + 34 + 44 = 1634

Formatting page ...

Formatting page ...

Formatting page ...

 

  Print intermediate debugging step

Show debugging info


 

 

© 2010 - 2025 ResPaper. Terms of ServiceContact Us Advertise with us

 

alka12345 chat