Trending ▼   ResFinder  

ICSE Class X Prelims 2019 : Computer Applications (St. Clare's School, Lokai, Koderma)

5 pages, 30 questions, 21 questions with responses, 25 total responses,    3    0
Sujit Kumar
  
+Fave Message
 Home > sujit28 >   F Also featured on: School Page

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

Formatting page ...

ST. CLARE S SCHOOL, LOKAI PRE-BOARD EXAMINATION 2018-2019 COMPUTER APPLICATIONS (Theory) (two hours) Answer to this paper must be wrriten on the paper provided separately. You will not be allowed to write during the first 15 minutes. This time is to be spent reading the question paper. The time given at the head of this paper is the time allowed for writing the answers. This paper is devided into two Sections. Attempt all questions from Section A and any four questions from Section B. The intended marks for questions are given in brackets[ ]. SECTION- A (40 Marks) Attempt all questions Question 1 (a) (b) (c) (d) (e) What is byte code? What is JVM? [2] Define with an example: 1) syntax error 2) logical error? [2] Define an impure function,giving an example. [2] What is a constructor?What does it do?Explain in brief. [2] Write an equivalent java statement for the following: F=sin 2x+cos2x Question 2 (a) (b) (c) (d) What is the return type of the following functions 1) compareTo() 2) trim() [2] What are preconditions for binary search? [2] What is method overloading? Give an example. [2] Rewrite the following code snippet making necessary correction(s), [1] If any error exists. Float a=3.7+5.8 Char c=66; System.out.println(a+ - +c); (e) If int n[]={1,2,3,4,5,7,8,9,16}.What is the values of x? X=Math.pow(n[5],n[2]) (f) [1] What is an exception in java? What is the use of throws keyword? [2] Question 3 (a) (b) (c) (d) (e) What do you mean by type conversion?How is implicit conversion Different from explicit conversion? [2] What is the difference between length and length() functions?give example. [2] Differentiate between break and continue statement with an example.[2] Predict output: String s1= java For , s2= School Students ; [2] System.out.println( L +s1.substring(1,4); System.out.println(s2.indexOf(s1.charAt(6))); System.out.println(s1.concat(s2)); System.out.println(s1.compareTo(s2)); Differentiate between call by value and call by reference. [2] Question 4 (a) If int a[]={1,2,3,4,5};What will be the output? 1. System.out.println(a[2]++ * --a[3]); 2. System.out.println(a[0] % (a[4]/5)); (b) Rewrite using ternary operator: If amount is greater than 1000 and less than 10000, the commission is Rs 4000 else it is 0. (c) Write a function prototype of a function search which receive a sentence sentnc and a word wrd and returns 1 or 0. [2] (d) (e) What is array?What do you mean by the subscript of an array? What is Access specifier? give example. [2] SECTION-B(40 MARKS) [2] Attempt any four questions from this Section B.The answer 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 variable description so that the logic of the program is clearly depicted. Flow-charts and algorithms are not required. Question 5 Using a switch-case statement,write a menu driven program to print the following pattern and sum of series: [10] (a) 5 5 5 5 5 54444 54333 54322 54321 (b) S=a-a3/5+a5/9+a7/13+ ..to n. Question 6 A company announces revised Dareness Allowance(DA) and Special Allowance(SA) for their employees as per the tariff given below: Basic Dareness Special Allowance(SA) Allowance(DA) Up to Rs 10,000 15% 5% Rs 10,001-Rs 20,000 20% 8% Rs 20,001-Rs 30,000 25% 10% Rs 30,001 30% 12% Write a program to accept Basic Salary(BS) of an employee.Calculate and display gross Salary. Gross salary=Basic +Dearness Allowance+Special Allowance Print the information in the given format: Basic xxx DA xxx Spl. Allowance xxx Gross Salary xxx Question 7 [10] Write a program in java to enter a String and display all the palindrome words present in the String. Sample Input: MOM AND DAD ARE NOT AT HOME. Sample Output: MOM DAD Question 8 [10] Write a program to accept 10 different numbers in a single Dimensional Arrays(SDA).Now,enter a number and by using binary search technique,check whether number is present in the list of array elements.If the number is present then display the message search successful otherwise,display search unsuccessfull . Question 9 Design a class to overload a function compare() as follows: I. II. III. Void compare(int,int) : to compare two integers values and print the greater of the two integers. Void compare(char,char) :to compare the numeric value of two charactes and print with the higher numeric values. Void compare(String,String): to compare the length of the two Strings and print the longer of the two. Question 10 Define a class called Student to check Whether a Student is eligible for taking admission in std XI with the following specification: Instance variables/data memebers: String name: to store name int mm : to store Maths mark int scm : to science mark int comp : to store Computer mark methods: Student() : parameterized constructor to initialize the data memebers by accepting the details of a student. Check() : to check the eligibility for course with the following conditions: Marks 90% or more in all the subjects Eligibility Science with Computer Average marks 90% or more Bio-Science Average marks 80% or more and Science with Hindi less than 90% Write the main method to create an object of a class and call all the avobe member methods. **********************************************

Formatting page ...

Top Contributors
to this ResPaper
(answers/comments)


Ansh Anand

(8)

Srinivasulu Tho...

(7)

Trisha

(6)

Rg

(5)

Formatting page ...

Formatting page ...

Formatting page ...

 

  Print intermediate debugging step

Show debugging info


 

 

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

 

sujit28 chat