Trending ▼   ResFinder  

Class 10 Notes 2016 : Computer Applications

12 pages, 73 questions, 0 questions with responses, 0 total responses,    0    0
Kavya Sekhar
St. Antony's Inter College (AIC), Lucknow
+Fave Message
 Home > aswmgirl17 >

Formatting page ...

TIWRI TUTORIALS ICSE-X Last Minute Revision Package [ COMPUTER] Date: - 18-02-2015 Study start from 6 PM evening: Topic: - Array Total Time for Array = 2Hrs Do the Following Program for Practice:1. WAP to accept 10 nos. integer type numbers in an array and print the largest and smallest number present within the array along with their positions. (Consider the ZEROth subscript as position ONE) 2. WAP to enter 10 numbers in an integer type array and search a given number from within that array using Binary Search technique. 3. WAP to accept 10 integer type numbers in an array and sort the array in descending order using Selection Sort Technique. Display the elements of the array before and after sorting. Also display the largest and the smallest element. 4. WAP to create two arrays of size 20 each and store 20 country names along with their capital cities. Followed by which when user enters the name of the country the program displays the name of the capital if found otherwise displays DATA NOT FOUND 5. WAP to store names of 5 cities in a String type array and display only the ones that starts with a consonant and ends with a vowel. E.g. STR [ ] = { Agra , Bhopal , Patna , Jamshedpur , Kolkata } then the output is - Patna , Kolkata 6. WAP to input 15 nos. in array A[ ] and 10 nos. in array B[ ] and merge the two dissimilar sized array end to end into a third array C [ ] of size 25 and Display all the three arrays. 7. WAP to initialize the given data in an array & find minimum and maximum values along with the sum of given elements. 8. WAP to read the marks of 50 students in a class and display the following: i) Average marks obtained by each student ii) Print the roll no and average marks of students whose average marks is above 80 iii) Print the roll no and average marks of students whose average marks is below 40 9. Total size of char arr[ 25 ] is .. 10. State the output : intarr[ ] =new int [ 5 ] ; System .out .println( arr [ 0 ] + arr [ 4 ] ); 11. Find and Correct the errors in the following program segment : int n [ ] = ( 2 , 4 , 6 , 8 , 10 ) ; for ( inti =0 ; i< = 5 ; i++ ) System .out. println ( n[ +i+ ] = +n[ i ]); Note: - If you have more time then also solve the program& theory of other sample paper or from 10 Year Papers. TIWRI TUTORIALS After taking rest of 30 min (For Dinner) Study start from 8:30PM: Topic: - String Total Time for String = 3Hrs First revise all string function from book. Then Do the Following Program for Practice:1. Write a program to input a string and print out the text with the uppercase and lowercase letters reversed, but all other characters should remain the same as before. Example: INPUT : WelComE TO School OUTPUT : wELcOMe to sCHOOL 2. WAP to input any string and check it is Palindrome or not. 3. W.A.P. that encodes a word into Pig Latin. To translate word into a Pig Latin word, convert the word into uppercase and then place the first vowel of the original word as the start of the new word along with the remaining alphabets. The alphabets present before the vowel being shifted towards the end followed by AY . Sample Input : London Sample Output : ONDONLAY 4. WAP to accept a string. Covert the string to Uppercase. Count and output the number of double letter sequences that exit in the string. Sample Input: SHE WAS FEEDING THE LITTLE RABBIT WITH AN APPLE 5. WAP to input any string and find longest word. SAMPLE INPUT: January 26 is celebrated as the Republic Day of India SAMPLE OUTPUT: longest word is: celebrated and length is: 10 6. WAP to input any string and find smallest word. SAMPLE INPUT: January 26 is celebrated as the Republic Day of India SAMPLE OUTPUT: smallest word is: 26 and length is: 2 7. WAP to accept a name and display the in following form. SAMPLE INPUT: Sunil Kumar Singh SAMPLE OUTPUT: i) ii) SKS SK Singh 8. WAP to accept a name and display the in following form. SAMPLE INPUT: SUNIL KUMAR SINGH SAMPLE OUTPUT: i) SINGH SK ii) SUNIL K SINGH 9. Write a program to enter a sentence from the keyboard and count the number of times a particular word occurs in it. Display the frequency of the search word. Example: TIWRI TUTORIALS INPUT Enter a sentence: the quick brown fox jumps over the lazy dog. Enter a word to be searched: the OUTPUT Searched word occurs. 2 times. 10. Consider the following statement: January 26 is celebrated as the Republic Day of India WAP to change 26 to 15, January to August, Republic to Independence and finally print August 15 is celebrated as the Independence Day of India . 11. Write a program to input a string in uppercase and print the frequency of each character. Example : INPUT : HELLO OUTPUT : CHARACTERS FREQUENCY E 1 H 1 L 2 O 1 12. Write a program to accept a two word and check whether it is Anagram or not. Example: INPUT : WOLF FLOW OUTPUT: ANAGRAM 13. WAP to count how many nos of digits is present and also display sum of digits which present in given string. SAPMLE INPUT: COM345MTO91QA SAMPLE OUTPUT: 22 14. Write a program to accept a string and encode the string by replacing each alphabets with the next fourth alphabet in cyclic order. Sample Input-"ZEBRA" Sample Output-"DIFVE" 15. Give output of the following: 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)); System.out.println(s.indexOf( a )); System.out.println(s.lastIndexOf( a )); TIWRI TUTORIALS System.out.println(s.replace( a , r )); 16. State the values stored in the variables str1 and str2 String str1= good ; String str2 = world matters ; String str1 = s2.subString(5).replace( t , n ); 17. State the output of the following pogram segment : String s = Examination ; int n = s . length ( ) ; System.out.println( Math.min( s.startsWith(s.subString(5 , n))) ; System.out.println( s.charAt (2)==s.charAt(6)) ; 18. State the data type and values of a and b after th following segment is executed. String s1 = Computer , s2 = Applications ; a = s1.compareTo (s2) ; b = s1 .equals ( s2 ) ; 19. What will be the following code output ? String s= malayalam ; System.out.println( s.indexOf ( m )) ; System.out.println (s.indexLastOf ( m )) ; 20. Give the output of the following : String n = Computer Knowledge ; String n = Computer Application ; System.out.println(n.subString(0,8).concat(m.subString(9))); System.out.println(n.endsWith( e ))); 21. Write the output of the following : System.out.println(Character.isUpperCase( R )); System.out.println(Character.isUpperCase( j )); 22. State the purpose and return data type of the following String functions: indexOf ( ) compareTo ( ) Note: - If you have more time then also solve the program & Theory of other sample paper or from 10Year Papers. TIWRI TUTORIALS Morning 6:00 A.M. to 9:00PM coaching Time for Problem Solving. Breakfast Time: - 9:00 A.M. To 10:00 A.M. After that Again Starts Study from 10:00 A.M. Topic: - Function & Constructor Total Time for Function & Constructor = 2 Hrs. Do the Following Program for Practice:1. Write a function prototype of the following: Function divide that takes two integer values and return the quotient of double type. A static method named divide that takes short type values and return the quotient of double type. A function search which receives a sentence and a word and returns 1 or 0? Give the prototype of function check which receives a character ch and an integer n and returns true and false. Write the function prototype for the function sum that takes an integer variable (x) as its argument and returns a value of float data type. 2. WAP to create a function isprime (in n): to display the Prime factors of the number e.g if the no. entered by the user is 24 the output is 2, 2, 2, 3. 3. Create a class 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.) with the following specifications: Class Name : Duck Member functions : int count( int n ) :for counting presence of zero digit in a number void check( int n) : to check and print whether number is duck no or not . 4. Define a class called library with the following description : Instance variables / data members intacc_num: stores the accession number of the book String title : stores the title of the book String author : stores the name of author Member Methods : void input ( ) : to input and stores the accession number ,title and author void compute ( ) : to accept the number of days late , calculate and disply the fine charge at the rae of r 2 per day void display ( ) : to display he details in the following format : Accession Number Title Author Write a main method to create an object of the class and call the above member methods. 5. Define a class called mobike with the following description : Instance variable / data members: intbno : to store the bike s number intphno : to store the phone number of the customer [ 2011 ] TIWRI TUTORIALS String name : to store the name of the customer int days : to store the number of days the bike is taken on rent int charge : to calculate and store the rental charge Member Methods: void input ( ) : too input and store the detail of customer void compute ( ) : to compute the rental charge The rent for mobike is charged on the following basis: First five days Rs 500 per day Next five days Rs 400 oer day Rest of the days Rs 200 per day void display ( ) : to display the details in the following format : Bike No. Phone No. __________ ________ Name No. of days _______ charge ________ ________ 6. Design a class to overload a function num_calc( ) as follows: voidnum_calc(intnum, char ch) : one integer argument and one character argument, computes the square of Integer argument if chis s otherwise find its cube. voidnum_calc(inta,int b char ch): two integer argument and one character argument, Computes the product of Integer argument if ch is p otherwise adds the integers. voidnum_calc(String s1, String s2): two String argument, which prints whether the strings Are equal or not. 7. Design a class over loading a function calculate ( ) as follows : a) void calculate (int m ,char ch) :It checks whether the integer argument is divisible by 7 or Not, if chis s otherwise it checks the last digit of the integer argument contains 7 or not. b) void calculate (int a , int b , char ch) : displays the greater of integer arguments if ch is g Otherwise, display the smaller of integer arguments. Write a main ( ) to create an object of the class and call the above member method on the basis of user s choice. TIWRI TUTORIALS 8. Design a class to overload a function decode( ) as follows: void decode ( ) : to decode the string by adding 1 to the ASCII of each character in circular Way. void decode (int a) : to decode the string by adding the value of a to the ASCII of each Character in circular Way. 9. Design a class to overload a function largest( ) as follows: void largest (int n) : to find the largest digit in the number n void largest (String txt): to find the largest word in the text txt . 10. Design a class to overload a function polygon ( ) as follows : void polygon ( ) : with one argument and one character type argument that draws a filled square Of side n using the character stored in ch void polygon ( ) : with two integer arguments that draws a filled rectangle of length x and breath y using the symbol @ void polygon ( ) : with no argument that draws a filled triangle shown below . Example : i. ii. Input value of n =2 ,ch = O Output : OO OO Input value of x =2 , y = 5 Output : @@@@@ @@@@@ iii. Input value of n = 3 Output : * ** *** 11. Design a class to overload a function compare () as follows : void compare (int ,int ) : compare to integer values and print the greater of the two integers. void compare (char ,char) : compare the numeric value of the two characters and print the Character with higher numeric value. void compare (String ,String) : to compare the length of two strings and print the longer of the Two. TIWRI TUTORIALS 12. Create a class Bill with the following data members and member functions: Class Name : Bill Data Members : ProductName, quantity, rate, billamount Member Functions: Bill ( ) - constructor to assign 0 to data members void read( ) - to input the data members void calculate( ) - to calculate the bill amount void display( ) - to print all the data members Note: - If you have more time then also solve the program & Theory of other sample paper or from 10Year Papers. Lunch Time: - 12:30 P.M. To 1:00 P.M. Rest 1hrs After that Again Starts Study from 2:00 P.M. Topic: - Series and Number Based Program Total Time = 3Hrs. Do the Following Program for Practice:1. 2. 3. 4. 5. 6. 7. 2, 4, 6, 8, 10 upto n terms 0, 3, 8, 15 upto 25 terms. 1, 11, 111, 1111, 1111 ...upto 25 terms. 1!, 2!, 3!, 4!.............................................................................................upto 20th terms. 1,(1*2),(1*2*3),(1*2*3*4) (1*2*3*4 ..*n) 0, 1, 1, 2, 3, 5, 8, 13 up to n terms(Fibonacci series) (1*2) + (2*3) + (3*4) + (4*5) (19*20) 8. What will happen if the keyword break is replaced by continue in the below code? inti =60; while (true) { if (i<= 12 ) break; i = i 12; } System.out.println( i = +i); TIWRI TUTORIALS 9. Convert the following For Loop into While Loop public void calc (int n) { int f = 1; for(inti = 1; i<=n; i++) f = f * i; System.out.println( Factorial = +f); } 10. What will be the output of the below code when n=145 int number(int n) { int s=0; while(n>0) { s=s+n%10; n/=10; } return n; } 11. W.A.P. to input a no and print the frequency of each digit of a no. 12. W.A.P. to accept a number and check number is automorphic or not. 13. W.A.P. to accept a number and check number is twin prime or not. 14. W.A.P. to input a no and check whether it is Prime Palindrome no or not 15. W.A.P. to input a no and check whether it is Smith no or not. 16. W.A.P. to accept a number and check number is karprekar or not. 17. W.A.P. to input a no and check whether it is Unique no. or not. 18. W.A.P. to accept a two numbers and find their GCD and LCM using division and prime factorization method 1. Break Statement terminates the current loop and proceeds to the first statement that follows the loop. Example: class display { Public static void main (String args[ ]) { inti ; for(i=1 ; i<10 ; i++) { if(i==5) break; System.out.print(i); } } } Output: 1 2 3 4 2. Continue Statementcan be used in any of the loop control structures. It causes the loop to immediately jump to the next iteration of the loop. Syntax: class display { Public static void main (String args[ ]) { inti ; TIWRI TUTORIALS for(i=1 ;i<10 ;i++) { if(i==5 || i==9) continue; System.out.print(i); } } } Output: 1 2 3 4 6 7 8 19. What is the difference between a break statement and a continue statement when they occur in a loop? 20. Name two jump statements and their use. Note: - If you have more time then also solve the program & Theory of other sample paper or from 10 Year Papers. Starts Study from 5:00 P.M. Topic: - Slab based & Menu driven Program Total Time = 2Hrs. Do the Following Program for Practice:- 1. W.A.P. to accept the sales amount and calculate the commission, print sales, commission rate and commission. A salesman is paid commission on the following basis: Sales UptoRs. 10000 Commission Rate 2% Rs. 10001 to Rs. 20000 3% Rs. 20001 to Rs. 50000 5% Rs. 50001 to Rs. 70000 8% Above Rs. 70000 10% TIWRI TUTORIALS 2. A student appears for a test in 3 subjects. Each test is out of 100 marks. The percentage of each student has to be calculated and depending on the percentage calculated, grades are given as under. Percentage >=90 80 89 70 79 60 69 50 59 <50 Grade A+ A B+ B C+ Fail 3. W.A.P. to find the roots of a quadratic equation given by ax2 + bx + c =0. if b2- 4ac > 0 then print the roots are real and unequal. b b 2 4ac b b 2 4ac 2a 2a Root1 = , Root2 = b if b2- 4ac = 0 then print the roots are real and equal. Root= 2a b , Root= 2a If b2- 4ac < 0 then print the roots are complex and imaginary. 4. W.A.P. to output whether the person should be insured or not, his/her premium rate and maximum amount for which he/she can be insured. An Insurance company follows following rules to calculate premium. a. If a person s health is excellent and the person is between 25 and 35 years of age and lives in a city and is a male then the premium is Rs. 4 per thousand and his policy amount cannot exceed Rs. 2 Lakhs. b. If a person s satisfies all the above conditions except that the sex is female then the premium is Rs. 3 per thousand and her policy amount cannot exceed Rs. 1 Lakhs. c. If a person s health is poor and the person is between 25 and 35 years of age and lives in a village and is a male then the premium is Rs. 6 per thousand and his policy amount cannot exceed Rs. 10,000. d. In all the other cases the person is not insured. 5. W.A.P. to calculate the amount for telephone bill as per the given instructions: For first 100 calls = Rs. 100 /For additional 50 calls = Rs. 2 per call For calls more than 150 = Rs. 2.50 per call. 6. W.A.P. to compute income tax. The rates of income tax applicable on income of the individuals for the assessment year 2003-2004 were as follows: TIWRI TUTORIALS Net Income Range Rates of Income Tax UptoRs. 50000 Nil Above Rs. 50000 but up to Rs. 60000 10% of the amount by which the total income exceeds Rs 50000 Above Rs 60000 but up to Rs. 150000 Rs 1000 plus 20% of the amount by which the total income exceeds Rs 60000 Above Rs. 150000 Rs. 19000 plus 30% of the amount by which the total income exceeds Rs 150000. 7. W.A.P. which calculates the monthly bill based on the number of units consumed. The monthly electricity bill is to be computed as follows: Minimum Rs. 250 for the first 100 units Plus Rs 0.40 per unit for next 50 units Plus Rs 0.50 per unit for next 50 units Plus Rs 0.60 per unit for any unit beyond 200 units W.A.P. to create a menu based program to find the following depending on the user choice using switch Absolute value of a number Square root of a number Random number between 0 to 1 Natural logarithm of a number. 8. Using a switch statement, write a menu driven program to convert a given temperature from Fahrenheit to Celsius and vice versa. For an incorrect choice, an appropriate error message should be displayed. C=5/9 * (F-32) and F=1.8* (C+32) Note: - If you have more time then also solve the program & Theory of other sample paper or from 10 Year Papers. Evening 7:00 P.M. to 9:00 PM coaching Time for Problem Solving. After That Solve The Following Paper. Also Learn Theory from Book ***************************************************GOOD LUCK*********************************************

Formatting page ...

Related ResPapers
Class 10 Notes 2016 : Computer Applications (Ryan International School, Nerul, Navi Mumbai)
by anushka_gulvane 
Class 10 Notes 2016 : Computer Applications
by aswmgirl17 
model questions: Computer Applications (Modern High School for Girls (MHS), Kolkata)
by saika 

Formatting page ...

Formatting page ...

Formatting page ...

Formatting page ...

Formatting page ...

Formatting page ...

Formatting page ...

Formatting page ...

Formatting page ...

Formatting page ...

 

  Print intermediate debugging step

Show debugging info


 

 


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

 

aswmgirl17 chat