Trending ▼   ResFinder  

ICSE Class X Computer Applications : MUST KNOW Questions (Chatrabhuj Narsee Memorial School (CNM), Mumbai)

4 pages, 76 questions, 70 questions with responses, 210 total responses,    2    0
Yogesh Gm
Chatrabhuj Narsee Memorial School (CNM), Mumbai
+Fave Message
 Home > yoge5h9 >   F Also featured on: icse aaghnya and 1 more

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

Formatting page ...

Shri Vile Parle KelavaniMandal s C.N.M.School & N.D.ParekhPre-PrimarySchool Std. X Academic Year 2017 18 Subject : Computer Applications (Group III) Must know question .. Section A Q1. a) b) c) d) e) f) g) h) Explain four OOP s principle with an example. Differentiate with an example of a primitive data type and composite data type. Differentiate between call by value or pass by value and call by reference or pass by reference. What is a compound statement? Give an example. State the difference between Constructor and Method. What is meant by an infinite loop? Give one example. State one similarity and one difference between while and do while loop. Differentiate between static and non-static data members. a) b) c) d) e) f) g) h) i) j) k) What is the difference between an object and a class? Differentiate between private and public visibility modifiers. Why class is also known as object factory? State the difference between entry controlled loop and exit controlled loop. Write differences between Linear Search and Binary Search. Differentiate between actual parameter or argument and formal parameter or parameter. What are libraryclasses? Give an example. Define wrapper class with an example. Differentiate between private and protected visibility modifiers. Why is an object called as instance of a class? Describe the function of following keywords: i) void iv) static ii) return v) this iii) import vi) token Q2. Q3. a) State the purpose and return data type of the following String functions: (i) indexOf ( ). (iv) charAt( ) (ii) compareTo ( ) (v) replace( ) (iii) substring(n,n1) (vi) length( ) b) Rewrite the syntax in for and do while. int i=1, j=2; while(i<=25) { i++; j=j+2; } c) Write function prototype -inverse, which accept two floating value (x, y) with a string (str) and return a boolean value. d) Rewrite the following segment in ternary operator if(marks>40&&marks<=100) Grage= A ; else Garde= F ; e) Write one word/keyword answer of the following: i) A Package that contain scanner class. ii) Convert a variable into a constant. iii) Indicates that a method has no return type. iv) Default value of Boolean datatype. v) Pass the control to the calling method. vi) Used for allocating memory to an array vii) Unit of the class gets called, when the object of the class is created. vii) Distinguishes between instance variable and class variables. viii) Informs that an error has occurred in an input/output operation. ix) A package that is invoked by default. x) A key word, to use the classes defined in a package. xi) The default value of a String. xii) Stores the address of the currently calling object. f) What will be the output of following segments:i) chararr[]={'J','A','V','A'}; int b=2; System.out.println(arr[b++]); System.out.println(arr[b++]); ii) String s="Examination"; int n=s.length(); System.out.println(s.startsWith(s.substring(5,n))); System.out.println(s.charAt(2)==s.charAt(6)); iii) System.out.println("JAVA".length()+ "For school".length()); iv) System.out.println(Math.max(-7, Math.min(-2,-9))); v) System.out.println(Math.min(Math.ceil(32.7), Math.floor(2.9))); g) Write the corresponding expression for the following mathematical operations: 1. 2x3 3y4 2. Z=(a+b)2 *(a-b)3 2ab h) Read the following class carefully and answer the question that follows: class school { int roll; String name; school() // method 1 { roll=32; } static void data() //method 2 { double mark=0.0; name= student ; //statement 1 } void show() //method 3 { System.out.println(roll + + name + + mark); } public static void main( ) { school exam =new school( ); data(); exam.show( ); }} i) ii) iii) iv) v) Name the instance variables and local variable. Give the type of method1? Give the name of classmethod? Explain why? Can variable mark be used in method show()? Justify. What is the name of the object of the above class. Section B Q4. Write a program to accept the year of graduation from school as an integer value from the user. Using the Binary Search technique on the sorted array of integers given below, output the message Record exists if the value input is located in the array. If not, output the message Record does not exist . {1982, 1987, 1993, 1996, 1999, 2003, 2006, 2007, 2009, 2010} Q5. Define a class and accept 10 students names in a single dimensional array. Sort these names in alphabetical order using the Bubble Sort technique only. Q6. Write a menu driven program in java to input a number and check whether it is a : i) DISARIUM number or not ii) DUCK number or not Note : DISARIUM : A number will be called DISARIUM if sum of its digits powered with their respective position is equals to the original number. Example 135 is a DISARIUM number (Working 11+33+55 = 135, some other DISARIUM are 89, 175, 519 etc) DUCK : A Duck number is a number which has zeroes present in it, but there should be no zero present in the beginning of the number. Example 3210, 7056, 8430709 are all Duck numbers whereas 08237 is not. Q7. Write a program to accept a sentence form user in lowercase and capitalized the first and the last letter of each word in capital. Example : Input : i love my school Output : I LovE MY SchooL Q8. Write a program to input a word from the user and remove the consecutive repeated characters by replacing the sequence of repeated characters by its single occurrence. Example: INPUT : Jaaavvvvvaaaaaaaa OUTPUT : Java Q9. Write a program to accept the names of 10 countries in a single dimension string array and their famous place in another single dimension array. Search for a name of a country input by the user in the list. If found, display search successful and print the name of the country along with famous place, or else display the message search unsuccessful, no such country in the list . Q10. An airline announces discount on tickets depending upon destination chosen by the passenger from the following: Destination Rate of ticket (per person) America Rs. 50,000/Singapore Rs. 20,000/Thailand Rs. 40,000/Japan Rs. 30,000/The discount will be given as per the given criteria: Ticket Amount Discount on total amount Above Rs. 200000 25% Rs. 150001 to Rs. 200000 20% Rs. 100001 to Rs. 150000 15% Less than Rs. 100000 10% Write a Java program to input group name, number of passengers and destination code viz: A ora for America, S or s for Singapore, J or j for Japan, and T or t for Thailand. Calculate the total ticket amount and discount amount. Find the net balance to be paid excluding the discount. Print the group name, number of passengers, destination code, discount and total ticket amount to be paid. Q11. Write a menu driven program to perform following task as per user choice: a) Find the sum of all the multiples of 3 or 5 below 1000. (If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23.) b) Check whether number is an neon number or not. (, if sum of all the digit of square of a number is equals to the number itself. Example 1) Input : 9 - It s square = 81 = 8+ 1 = 9 (so 9 is a neon number) 2) Input : 25- It s square = 625 = 6+2+5 = 13 (so 25 is not a neon number) ) Q12. Crate a class stock as given : Class name Data members/variables : : stock bname (String type data for book name) qty (integer as quantity of book) price (double data as unit price of book) total (double data as total cost) discount (double data as discount) netprice (double data to find net price) Members function of class : i) stock () A constructor to declare instance variables empty. ii) void accept() to accept book name,quantity, and price of book. iii) void calculation() to calculate total cost and discount as 20% on total cost if quantity of book is more than 30 otherwise no discount. Find the net price excluding discount. iv) void printAmount() to display product name, price, quantity, total cost, discount, net price to be paid. Write a main methodto create an object of a class and invoke all methods. Q13. Design a class to overload a function series() as follows: (i) double series(double n) with one double argument and returns the sum of the series. sum = 1/1 + 1/2 + 1/3 + 1/n (ii) double series(double a, double n) with two double arguments and returns the sum of the series. sum = 1/a2 + 4/a5 + 7/a8 + 10/a11 to n terms (iii) int series(int a) to print the series 0, 3, 7, 15, 24 . n terms (value of n is to be an input by the user). iv) double series(int x, int y) to print the sum of the series(S) = x + x + x + x + .. + x 2 5 8 11 n Q14. Write a class to accept a sentence and print the word containing more than two characters beginning with a Vowel. (ignore cases) and how many such words. Example Input India won the gold medal in the shooting event of Beijing Olympics - 08 Output No. of words 3 and Words are India event Olympics Q15. Define a class array to accept list of integers in a single subscripted variable where the list will be terminated when a zero is entered as input from the keyboard. Perform the following on the basis of created array: a) Print elements of array in a single line. b) Sum of all the elements of array divisible by 5. c) Factorial of single digit integers less than or equal to 7. Q16. Write a program to input your name and print it in bibliography format. For example : if input is : Lok Manya Bal Gangadhar Tilak The output should be : Tilak, L.M.B.G. Q17. Write a java program to accept 10 players name with score. Find and print the highest scorer and lowest scorer with score. **********ALL THE BEST************

Formatting page ...

Top Contributors
to this ResPaper
(answers/comments)


Aquaman- King o...

(74)

Ashish Mathew

(63)

Not productions

(48)

Disha Lohia

(30)

Formatting page ...

Formatting page ...

 

  Print intermediate debugging step

Show debugging info


 

 

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

 

yoge5h9 chat