Trending ▼   ResFinder  

ISC Class XI Prelims 2024 : Computer Science : Practical Examination

3 pages, 3 questions, 1 questions with responses, 1 total responses,    0    0
Sumalya Dey
Maria's Day School (MDS), Howrah
+Fave Message
 Home > rickthetopper >

Formatting page ...

MARIA'S DAY SCHOOL, HOWRAH COMPUTER SCIENCE (PAPER_ 2 ) PRACTICAL EXAMINATION 2023 - 2024 (Maximum Marks: 30) Class: XI Second Term Exam. 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. After completing the Planning Session , the candidate may begin w ith the Examination Session . A maximum of 90 minutes is permitted for the Planning Session . However, if candidates fin ish earlier, they are to be permitted to begin the Examination Session . This paper consists of Three problems from which candidates are required to attempt any one problem. Candidates are expected to do the following: A. 1. Planning Session: Write an Algorithm for the selected problem . ( 3 Marks] (Algorithm should be expressed clearly using any standard scheme such as pseudo code or in steps which are simple enough to be obviously computable.) 2 . Write a program in JAVA language. The program should follow the algorithm and [ 7 Marks] should be logically and syntactically correct. Document the program using mnemonic names/ comments, identifying and clearly describing the choice of data types and meaning of variables. B. Examination Session: 1. 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. 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. ( 2 Marks] ( 3 Marks 1 Note: The candidates must not carry any stationery, items such as pen I pencil I eraser to the Computer Laboratory for the Examination Session. Solve any one of the following problems Question 1 A unique-digit integer is a positive integer (without leading zeros) with no duplicate digits. For example 7 , 135, 214 are all unique-digit integers whereas 33, 3121 , 300 are not. Given two positive integers m and n, where m < n, write a program to determine how many unique-digit integers are there in the range between m and n (both inclusive) and output them . The input contains two positive integers m and n. Assume m < 30000 and n < 30000 . You are required to output the number of unique-digit integers in the specified range along with their values in the format specified below: Test your program for the following data and some random data. Example 1 INPUT: m = 100 OUTPUT: THE UNIQUE-DIGIT INTEGERS ARE: n = 120 1 102. 103. 104, 105, 106, 107 , 108, 109, 120 FREQ UENC Y OF UNIQU E-DIG IT INTEG ERS IS 9 Example 2 INPUT : m = 2520 n = 2529 OUTPUT: THE UNIQU E-DIG IT INTEG ERS ARE: NIL FREQ UENC Y OF UNIQU E-DIG IT INTEG ERS IS 0 Question 2 Write a progra m to declar e a square matnx A ( ] ( ) of order ( M X M ) where 'M' 1s the numbe r of rows and the numbe r of column s. such that M must be greate r than 2 and less than 10 Accep t the value of M as user input. Displa y an appropriate messa ge for an invalid input. Allow the user to input intege rs into this matrix . Perfor m the following tasks (a) Display the ongina l matrix . (b) Check 1f the given matrix is Symm etric or not. (A square matrix 1s said to be Symm etric, if the eleme nt of the th the j row and ith column .) ith row and jth colum n is equal to the element of (c) Find the sum of the eleme nts of left diagonal and the sum of the eleme nts of right diagon al of the matrix and display them Test your program for the following data and some random data: Example 1 INPUT: M=3 OUTPUT: 1 2 3 2 3 4 5 5 6 ORIGINAL MATRIX 1 2 4 2 3 3 5 6 5 THE GIVEN MATRIX IS SYMMETRIC The sum of the left diagonal = 11 The sum of the right diagonal = 10 Example 2 INPUT: M=4 OUTP UT: 7 8 9 2 4 8 5 5 6 3 3 1 7 6 4 2 ORIGI NAL MATRI X 7 8 9 2 4 5 6 3 8 7 5 6 3 4 1 2 THE GIVEN MATR IX IS NOT SYMMETRIC The sum of the left diagonal = 17 The sum of the right diagonal = 20 Example 3 2 ( - ------..maa:~ ~1;:a111:~a::::::a~--" a ?4 lllZFJ99C:NiiN! I INPUT: OUTPUT: P - ,- M = 12 SIZE IS OUT OF RANGE Question 3 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: 360 YEAR 2023 DATE AFTER (IN DAYS) 45 OUTPUT: DATE 26 TH DECEMBER, 2023 DATE AFTER 45 DAYS: 9 TH FEBRUARY, 2024 Example 2 INPUT: DAY NUMBER: 500 YEAR: 2023 DATE AFTER (IN DAYS): 33 OUTPUT: DAY NUMBER OUT OF RANGE Example 3 INPUT: DAY NUMBER: 150 YEAR: 2023 DATE AFTER (IN DAYS): 330 OUTPUT: DAY AFTER (N DAYS) OUT OF RANG E. 3

Formatting page ...

Top Contributors
to this ResPaper
(answers/comments)


siyani

(1)

Formatting page ...

 

  Print intermediate debugging step

Show debugging info


 


Tags : Computer Science XI Practical Examination,  

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

 

rickthetopper chat