Trending ▼   ResFinder  

ICSE Class X Mid-term 2024 : Computer Applications (St. Francis Convent School, Meerut)

4 pages, 28 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

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

Formatting page ...

HALF YEARLY EXAMINATION CLASS X COMPUTER APPLICATIONS This paper is divided into two Sections. Section A and Section B. Answer all questions from Section A and four questions from Section B. Section A Answer all questions from this section. Question 1 : Choose the correct option and write the correct answer. 16 1. Which concept of OOP is followed in Function Overloading? a. Encapsulation b. Polymorphism c. Abstraction d. Inheritance 2. The data type which specify that the method or function does not have a return type. a. VOID b. void c. Void d. Boolean 3. The output of the method Cinderalla .indexOf( a ) is a. 5 b. 9 c. 6 d. 10 4. The first line of the function which defines the name of the function along with it return type and argument is called a. Function Signature c. b. Function Prototype Function Definition d. Function Calling 5. The method to check whether a Character is a Digit or not is a. isnumber(char) b. isDigit(char) c. isLowerCase(char) d. isUpperCase(char) 6. How many return type will work in a function a. 1 b. 2 c. 3 d4 7. Which of the following is a valid declaration of an object of class Box? a) Box obj = new Box(); c) obj = new Box(); 8. b) Box obj = new Box; d) new Box obj; Which type of function will increase or decrease the value of the arguments/parameters when ever it is called a. Impure b. Pure c static d. Non static 9. Two or more functions can have the same name in a class a. True b. False 10. The parameters in function calling (in the main program ) is known as a. Actual Parameter b. Formal Parameter c. Mutual Parameter 11. How will you call the function int search (int a, int b) in your program with object ob. a. int y = ob.search(a,b); b. ob.search(a,b); c. int y =ob.search(int a, int b) ; d. ob.search(int a, int b); 12. Which function is used to extract more than one characters from a String a. charAt() b. substring() c. SubString() d. remove() 13. How can the functions given below can be called to the main program if the object of the class is ob. i. int specimen(int a, char b) ii. void space(double x) a. i. ob.specimen(a,b) ; ii. ob.space(x) b. i. int y =ob.specimen() ii. int y = ob.space() c. i. int g= ob.specime(a,b); ii. int d = ob.space(x); d. i.int p = ob.specimen(a,b); ii. ob.space(b); 15. Centuary .compareTo( Casual ) will give a. 4 b. -4 c. 5 d. -5 16. Give the output System.out.println( Computer.charAt(0,2)+ Dare .substring(1); System.out.println( Character.toUpperCase( Chair .charAt(2))); a. cre , A b. Cre, A c. care, A d. Care, A Question 2: a.Write a prototype of a function swap which accepts two integer numbers and a character and returns a double value. 2 b. Write output for the following 2 String a = Happy New Year ; String b = Good Luck! ; System.out.println(a.lastIndexOf ( x ) + b.length(); System.out.println(Character.isLowerCase(a.charAt(11))); System.out.println(a.lastIndexOf ( x ) + b.length(); System.out.println(a.charAt(1)==a.charAt(12)); c. What are the two ways of invoking a function. ? 1 d. What is the purpose and return type of the following function? 1 a. compareTo() b. lastIndexOf() e. Give the output of 2 REDUCE .compareTo( REVOLT )+ ANTARTICAL .lastIndexOf( A ) f. How are the following data types invoked in a java program. i. Primitive Data Types 2 ii. Non Primitive Data Types g. What do you mean by a constructor. What are the different types of consructors . 2 h. . Name the keyword that 2 i. indicates that the method has no return type ii. Store the address of the currently calling object Section B Answer Any four questions from this section . Each program should be written using variable description/mnemonic codes that the logic of the program is clearly depicted Question 3: Define a class to accept two strings, convert them into lowercase, check and display whether two strings are equal or not, if the two strings are not equal, print the string with the highest length or print the message both the strings are of equal length Question 4: Write a program to input a String and check whether the string is a palindrome word or not.. A word is said to be palindrome if the word is same while reading from left to right and right to left Eg LEVEL, MALAYALAM, MADAM Question 5 Design a class to overload a class called perimeter in the following way void perimeter(int s) To print the perimeter of a square void perimeter(int l, int b) To print the perimeter of a rectangle void perimeter(double r) To print the perimeter of a circle Question6. Write a program to input a number and find whether the number is an Armstrong number or not. Pass the number to a function called cube which will return the sum of cube of its digits. The main program will check whether the sum of cube is equal to the original number or not. A number is said to be Armstrong if the sum of cube of its digits is equal to the original number. Eg 153 13+53+33 = 1+125+27 =153 Question 7 Define a class to overload a function called print as follows i. void print() to print the following pattern 1 2 3 4 5 6 7 8 9 10 ii. void print(int n) to check whether the number is Dudeny number or not. A number is said to be Dudeny, the sum of the cube of digits of the number is equal to the original number eg. 512 53 +13+23 =83 =512 iii. void print(int a, char ch) if the character is s print the square of the number else print the cube of the number

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