Professional Documents
Culture Documents
ISC2021 Computer Science Practical Paper
ISC2021 Computer Science Practical Paper
ISC2021 Computer Science Practical Paper
Paper-2
(PRACTICAL)
(Maximum Marks: 30)
Time allowed:
1-Planningsession:
90minutes
Day
session: 90 minutes
Examination the paper
Day 2- reading
additional 15minutes
for only
candidates are allowed
(On Day 1, time.)
writing during this
TheymustNOT start candidates a r e
reguired to
attempt
from which
I s paper
consists ofthree problems
any one problem.
the following:
Candidates are expected to do
Question1
one which whenthemultiplied by 2 and 3 and ther
agtingnu the rioinal number,
new number
contains all the after the
digits froresultstoare
oigi
A Fas
concatenated
with any number of zeros and are to be ignored.
cana
There
once.
exactly
Example: 273
Exanp 273xI=273
546
273x 2
273 x3 8 1 9
Example
INPUT: m=100
n = 500
Example 2
INPUT: m= 900
n 5000
Example 3
INPUT: m 400
n = 900
OUTPUT: THE
FASCINATING NUMBERS ARE:
NIL
FREQUENCY OF FASCINATING NUMBERS IS: 0
1221-868B 2
Example 4
m= 70
INPUT: n =450
OUTPUT: INVALID INPUT
Question 2
Write a program to accept a paragraph containing TWO sentences only. The
Sentencesmay be terminated by either ' , " or " only. Any other charactermay
be ignored. The words are to be separated by a single blank space and must be in
UPPER CASE.
Perform the following tasks:
Check for the validity of the accepted paragraph for the number of sentences
(a)
and for the terminating character.
(b) Separate the two sentences from the paragraph and find the common words in
the two sentences with their frequency of occurrence in the paragraph.
Display both the sentences separately along with the common words and their
frequency, in the format given below:
Test your program for the following data and some random data:
Example 1
INPUT: IS IT RAINING? YOU MAY GET WET IF IT IS RAINING.
OUTPUT: IS IT RAINING?
YOU MAY GET WET IF IT IS RAINING.
COMMON WORDS FREQUENCY
IS 2
IT 2
RAINING 2
Example 2
INPUT: NDIA IS MY MOTHERLAND AND I AM PROUD OF MY
MOTHERLAND. ALL INDIANS ARE MY BROTHERS AND
SISTERS.
3
1221-868B Turn over
Example 3
NO COMMON WORDS
Example 4
INPUT: AT LAST, THE TIGER WAS SAVED
Question 3
1221-868B
SORTED MATRIX
13 11 9 8
5 4
1 -3
2 1
1 INM OF THE BOUNDARY ELEMENTS (SORTED)= <5
Example2
M=3
INPUT:
N3
MATRIX
ELEMENTS OF
2 S
E N T E R
6
14 1 17
9 4 8
OUTPUT: ORIGINAL MATRIX
6 2
14 1 17
94 8
SUM OF THE BOUNDARY ELEMENTS
SORTED MATRIX
(UNSORTED) 65
17 14 9
8 6 5
4 2 1
SUM OF THE BOUNDARY ELEMENTS
(SORTED) =60
Example 3
INPUT: M 2
N 6
Example 4
INPUT: M=4
N 9
In addition to the above, the practical file of the candidate containing the practical work
Frelated to programming assignments done during the year will be evaluated as follows:
Programming assignments done throughout the year (by the teacher) [10marks
Programming assignments done throughout the year (by the Visiting Examiner) [Smarks]
1221-868B