Trending ▼   ResFinder  

ISC Class XII Board Exam 2019 : Computer Science Paper 2 (Practical)

5 pages, 3 questions, 0 questions with responses, 0 total responses,    0    0
Sneha Lohar
The Heritage School, Kolkata
+Fave Message
 Home > snehalol >

Formatting page ...

COMPUTER SCIENCE Paper 2 (PRACTICAL) (Maximum Marks: 30) (Time allowed: Three hours) (Candidates are allowed additional 15 minutes for only reading the paper. They must NOT start writing during this time.) -----------------------------------------------------------------------------------------------------------------------The total time to be spent on the Planning Session and the Examination Session is three hours. Planning session: 90 minutes rin di a. co m Examination session: 90 minutes Note: Candidates are to be permitted to proceed to the Examination Session only after 90 minutes of the Planning session are over. -----------------------------------------------------------------------------------------------------------------------This paper consists of three problems from which candidates are required to attempt any one problem. Candidates are expected to do the following: Write an algorithm for the selected problem. (Algorithm should be expressed clearly using any standard scheme such as pseudo code or in steps which are simple enough to be obviously computable.) [3] 2. Write a program in JAVA language. The program should follow the algorithm and should be logically and syntactically correct. [5] 3. Document the program using mnemonic names / comments, identifying and clearly describing the choice of data types and meaning of variables. [2] 4. Code / Type the program on the computer and get a printout ( hard copy ). Typically, this should be a program that compiles and runs correctly. [2] 5. Test run the program on the computer using the given sample data and get a printout of the output in the format specified in the problem. [5] 6. Viva-Voce on the Selected Problem. [3] w w .c a re e 1. w In addition to the above, the practical file of the candidate containing the practical work related to programming assignments done during the year is to be evaluated as follows: [5] Programming assignments done throughout the year (by the teacher) Programming assignments done throughout the year (by the Visiting Examiner) [5] -----------------------------------------------------------------------------------------------------------------------This Paper consists of 5 printed pages and 1 blank page. 1219-868B Turn over Copyright reserved. Solve any one of the following Problems. Question 1 Design a program to accept a day number (between 1 and 366), year (in 4 digits) from the user to generate and display the corresponding date. Also, accept N (1 <= N <= 100) from the user to compute and display the future date corresponding to N days after the generated date. Display an error message if the value of the day number, year and N are not within the limit or not according to the condition specified. Test your program with the following data and some random data: Example 1 INPUT: DAY NUMBER: YEAR: DATE AFTER (N DAYS): Example 2 INPUT: DAY NUMBER: YEAR: DATE AFTER (N DAYS): OUTPUT: DATE: DATE AFTER 45 DAYS: 500 2018 33 DAY NUMBER: YEAR: DATE AFTER (N DAYS): 150 2018 330 w w INPUT: 26 TH DECEMBER, 2018 9 TH FEBRUARY, 2019 DAY NUMBER OUT OF RANGE. w Example 4 DAY NUMBER: YEAR: DATE AFTER (N DAYS): 360 2018 45 .c a OUTPUT: re e Example 3 INPUT: 12 TH SEPTEMBER, 2018 4 TH OCTOBER, 2018 rin di a. co m OUTPUT: DATE: DATE AFTER 22 DAYS: 255 2018 22 OUTPUT: DATE AFTER (N DAYS) OUT OF RANGE. -----------------------------------------------------------------------------------------------------------------------2 1219-868B Question 2 Write a program to declare a single dimensional array a[ ] and a square matrix b[ ] [ ] of size N, where N>2 and N<10. Allow the user to input positive integers into the single dimensional array. Perform the following tasks on the matrix: (a) Sort the elements of the single dimensional array in ascending order using any standard sorting technique and display the sorted elements. (b) Fill the square matrix b[ ][ ] in the following format. If the array a[ ] = { 5, 2, 8, 1 } then, after sorting a[ ] = {1, 2, 5, 8} Then, the matrix b[ ][ ] would fill as below: 2 5 8 1 2 5 1 1 2 1 2 1 1 2 rin di a. co m 1 5 (c) Display the filled matrix in the above format. Test your program for the following data and some random data: Example 1 INPUT: N=3 ENTER ELEMENTS OF SINGLE DIMENSIONAL ARRAY: 3 1 7 OUTPUT: SORTED ARRAY: 1 3 7 3 7 1 3 1 1 1 3 .c a 1 w Example 2 re e FILLED MATRIX w INPUT: MATRIX SIZE OUT OF RANGE w OUTPUT: N = 13 ----------------------------------------------------------------------------------------------------------------------3 1219-868B Turn over Example 3 INPUT: N=5 ENTER ELEMENTS OF SINGLE DIMENSIONAL ARRAY: 10 2 5 23 6 OUTPUT: SORTED ARRAY: 2 5 6 10 23 FILLED MATRIX 5 6 10 23 2 5 6 10 2 2 5 6 2 5 2 5 2 5 6 2 2 5 6 10 rin di a. co m 2 Question 3 Write a program to accept a sentence which may be terminated by either . , ? or ! only. The words are to be separated by a single blank space and are in UPPER CASE. Perform the following tasks: Check for the validity of the accepted sentence. (b) Convert the non-palindrome words of the sentence into palindrome words by concatenating the word by its reverse (excluding the last character). Example: The reverse of the word HELP would be LEH (omitting the last alphabet) and by concatenating both, the new palindrome word is HELPLEH. Thus, the word HELP becomes HELPLEH. Note: The words which end with repeated alphabets, for example ABB would become ABBA and not ABBBA and XAZZZ becomes XAZZZAX. .c a re e (a) [Palindrome word: Spells same from either side. Example: DAD, MADAM etc.] Display the original sentence along with the converted sentence. w (c) w Test your program for the following data and some random data: Example 1 THE BIRD IS FLYING. OUTPUT: THE BIRD IS FLYING. THEHT BIRDRIB ISI FLYINGNIYLF w INPUT: -----------------------------------------------------------------------------------------------------------------------4 1219-868B Example 2 INPUT: IS THE WATER LEVEL RISING? OUTPUT: IS THE WATER LEVEL RISING? ISI THEHT WATERETAW LEVEL RISINGNISIR Example 3 INPUT: THIS MOBILE APP LOOKS FINE. OUTPUT: THIS MOBILE APP LOOKS FINE. THISIHT MOBILELIBOM APPA LOOKSKOOL FINENIF Example 4 YOU MUST BE CRAZY# OUTPUT: INVALID INPUT w w w .c a re e rin di a. co m INPUT: ----------------------------------------------------------------------------------------------------------------------5 1219-868B Turn over

Formatting page ...

Formatting page ...

Formatting page ...

Formatting page ...

 

  Print intermediate debugging step

Show debugging info


 

Additional Info : ISC Class XII Board Exam 2019 : Computer Science Paper 2 (Practical)
Tags : ISC Class XII Board Exam 2019 : Computer Science Paper 2 (Practical),  

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

 

snehalol chat