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
|