Trending ▼   ResFinder  

ICSE Class X Prelims 2018 : Computer Applications (The Hyderabad Public School (HPS), Begumpet, Hyderabad)

3 pages, 29 questions, 0 questions with responses, 0 total responses,    1    0
Radhika Jawaji
The Hyderabad Public School (HPS), Begumpet, Hyderabad
+Fave Message
 Home > radumasup >   F Also featured on: School Page

Formatting page ...

Pre-Board-2 January 2017 COMPUTER APPLICATIONS Class: 10 Time: 2 Hr Date: 27/ 01/ 2017 Max Marks: 100 Answers to this paper must be written on the paper 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. This paper is divided into two Sections. Attempt all questions from Section A and any four questions from Section B. SECTION - A (40 Marks) Attempt ALL questions from the following. Question 1 a) Mention any two rules for naming identifiers. b) How do we invoke a constructor? Explain with an example. c) Write a Java statement to create an object named 'jfs' of a class 'Computer' that invokes a parameterized constructor that accepts two integer type values. d) Given that int y[][]={{2,4,6},{2,6,89}}; what will be the value of y[1][0] and y[1][2]? e) Write the expression for the absolute value of 2a 3+ 3 b4 Question 2 a) What is the purpose of this keyword in java? b) What will the following function return? System.out.print(Math.sqrt(Math.abs(-5)+20)); c) What is a wrapper class? Give an example. d) Convert the following segment into equivalent for loop. int k=1,i=2; while(++i<6) k*=i; e) Give output of the following code snippet [2] [2] [2] [2] [2] [1] [2] [2] [2] [3] String str = new String("IPSC Principal's Conclave 2017"); System.out.println(Integer.parseInt(str.substring(str.length()-3))+ str.length()+ 30 + str.substring(17,25)); System.out.println(str.substring(0,4)+"-"+str.lastIndexOf("C")); Question 3 a) What is a default constructor? b) State the difference between final and finally{ }. c) Give the size in bytes, of the arrays a[5] of int data type and d[4] of double data type. Page 1 of 3 [2] [2] [2] d) Answer the following questions based on the given function: class employee [4] { static int a,b; int x,y; public employee(int p, int q) //Function1 { x=p; y=q; } void print() //Function2 { System.out.println(x+ +y); } } i) what is the Funtion1 in the above code? ii) What Function2 Does? iii) Name the class Variables iv) Name the Local variables Question 4 a) What will be the result of the following code: String s1 = "Feeling Sleepy"; String s2 = "Watching Television"; (i) System.out.println(s1.compareTo(s2)); (ii) System.out.println(s1.concat(" Still ").concat(s2)); b) State the difference between Selection Sort and Bubble Sort. c) What is Syntax error? Give an example of Syntax error. d) How is I/O Exception helpful in handling I/O errors? e) Find the output of z: int y = 14; int z = ++y * (y-- + --y); [2] [2] [2] [2] [2] SECTION- B (4 X 15 = 60 Marks) Attempt any FOUR questions from this Section. The answers in this Section should consist of the programs in either Blue J environment or any program environment with Java as the base. Each program should be written using comments, Variable descriptions / Mnemonics Codes such that the logic of the program is clearly depicted. Flow charts and algorithms are not required. Question 5 Create a class called Shares with the following specifications: [15] Member Variable Name, No_Shares (No. of shares an applicant has) Face_value (Face value of share) Total_Value (Total value of the shares) Member methods Parameterized constructor // accepts name, no. of shares and face value Total_Val() // finds value of No_Shares * Face_value and stores in Total_Value. Write a main() method to call the above methods by creating an object. Question 6 Write a program to overload a function compute() as follows. [15] void compute(int m, int g, int h) with three integer arguments to compute Potential Energy Page 2 of 3 using the formula PE=m.g.h void compute(int m, int v) with two integer arguments to compute Kinetic Energy using the formula KE = m.v2 void compute(double u, double t, double a) with three double type arguments to calculate the distance covered by the body using the formula S = ut + at2 Write a main() method to call the above methods using an object. Question 7 Write a program to read a list of numbers from user and terminate input when 0 is entered by user. Print count of double digit numbers, count of triple digits and count of more than 3 digits numbers separately. [15] Sample Input: 12, 56, 89, 100, 1000, 999, 2567, 0 Sample Output: Double digit numbers = 3 Triple digit numbers = 2 More than three digit numbers = 2 Question 8 Write a program to menu driven program to print the following patterns: [15] 1) 1 2 3 4 5 1 2 3 4 1 1 2 3 1 2 1 2 1 2 3 1 1 2 3 4 2) 5 4 3 2 4 3 2 3 2 2 1 1 1 1 1 Question 9 An anagram is a word or phrase made by transposing the letters of another word or a phrase. For example Debit Card is an anagram of Bad Credit some more anagrams are: School master The Classroom Dormitory Dirty room Astronomer Moon starrer The eyes They see The Hurricanes These churn air Mother-in-law The earthquakes Woman Hitler That queer shake Write a program that figures out whether one string is an anagram of another string. Question 10 Write a program to create a double dimensional array of the N X N order and display the elements below the diagonal line. Sample input: Enter the value of N:3 Sample Output: 10 20 30 40 50 60 70 80 90 Elements below the diagonal line are: 40, 70 and 80. **************** Page 3 of 3 [15] [15]

Formatting page ...

Related ResPapers
ICSE Class X Prelims 2025 : Computer Applications (Queen of Angels Convent Higher Secondary School (QACS), Vadadla, Bharuch)
by ghostttt 
ICSE Class X Prelims 2025 : Computer Applications (St. Augustine's Day School, Kolkata)
by hiiuo 
ICSE Class X Prelims 2025 : Computer Applications (Gopalan National School (GNS), Bangalore)
by mv101 
ICSE Class X Prelims 2025 : Computer Applications (St. Xaviers Institution (SXI), Panihati, Kolkata)
by soma2295 

Formatting page ...

 

  Print intermediate debugging step

Show debugging info


 

 


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

 

radumasup chat