Thursday, February 14, 2019

2019 ISC Computer Practical Paper And Solutions

2019 ISC Computer practical paper with solutions are posted in this page.

Program 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 further date corresponding to 'N' days after the generated date. Display an error message if the value of the day 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:     255
       YEAR:           2018
       DAY AFTER (N):  22

OUTPUT: DATE:               12 TH SEPTEMBER, 2018
        DATE AFTER 22 DAYS: 4 TH OCTOBER, 2018

Example 2:

INPUT: DAY NUMBER:     360
       YEAR:           2018
       DAY AFTER (N):  45

OUTPUT: DATE:               26 TH DECEMBER, 2018
        DATE AFTER 45 DAYS: 9 TH FEBRUARY, 2019

Example 3:

INPUT: DAY NUMBER:     500
       YEAR:           2018
       DAY AFTER (N):  33

OUTPUT: DAY NUMBER OUT OF RANGE

Example 4:

INPUT: DAY NUMBER:     150
       YEAR:           2018
       DAY AFTER (N):  330

OUTPUT: DATE AFTER (N DAYS) OUT OF RANGE

For Solution: CLICK HERE

           


Program 2




Write a program to declare a single dimensional array a[] and a square matrix b [][] of size N, where N is greater than 2 and at the same time N is less than 12

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:

1  2  5  8
1  2  5  1
1  2  1  2
1  1  2  5


Sample Input and Output



INPUT: N=3

ENTER ELEMENTS OF SINGLE DIMENSIONAL ARRAY: 3 1 7

OUTPUT:

SORTED ARRAY: 1 3 7

FILLED MATRIX

1  3  7

1  3  1

1  1  3

INPUT: N=13

MATRIX SIZE OUT OF RANGE



For Solution: CLICK HERE





In this program, the sorted 1-d array elements are stored in the 1st row of the 2-d array. Then in the second row, all elements of the 1-d array excepting the last are stored and the last location is filled with the first element of the 1-d array. Similarly, in the third row, all elements of the 1-d array excepting the last two elements are stored and the last two locations are filled with the first two elements of the 1-d array and so on.


Program 3



Write a program to accept a sentence which may be terminated by either '.', '?' or '!' only. The words are separated by a single blank space and are in UPPER CASE.

Perform the following tasks:
(a) Check 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 word of 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.

[Palindrome word: Spells same from either side. Example: DAD, MADAM etc]

(c) Display the original sentence along with the converted sentence


Test your program with the following data and some random data:

Example 1:

INPUT: THE BIRD IS FLYING.

OUTPUT: THE BIRD IS FLYING
        THEHT BIRDRIB ISI FLYINGNIYFL 

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 MOBILELIMOB APPA LOOKSKOOL FINENIF

Example 4:

INPUT: YOU MUST BE CRAZY#

OUTPUT: INVALID INPUT
.

        

For Solution: CLICK HERE

No comments:

Post a Comment

Subscribe via email

Enter your email address:

Delivered by FeedBurner