Thursday, February 20, 2014

ISC 2014 Computer Practical Paper With Solutions



Question 1:

A composite Magic number is a positive integer which is composite as well as a magic number.
Composite number: A composite number is a number which has more than two factors. For example:
10
Factors are: 1,2,5,10
Magic number: A Magic number is a number in which the eventual sum of the digitd is equal to 1.
For example: 28 = 2+8=10= 1+0=1
Accept two positive integers m and n, where m is less than n as user input. Display the number of composite magic integers that are in the range between m and n (both inclusive) and output them along with frequency, in the format specified below:

Example:
Input: m=10
n=100
OUTPUT:
The composite magic numbers are 10,28,46,55,64,82,91,100
Frequency of composite magic numbers: 8

Input: m=120
n=90
OUTPUT:
Invalid input


Solution: CLICK HERE

Question 2:


Write a program to declare a square matrix A[][] of order MXM where M is an positive integer and represents row and column. M should be greater than 2 and less than 10.Accept the value of M from user. Display an appropriate message for invalid input.
Perform the following task:
a) Display the original matrix
b) Check if the given matrix is symmetric or not. If the element of the ith row and jth column is same s element of the jth row and ith column,.
c)Find the sum of the left and right diagonal of the matrix and display them


Example 1:
INPUT:
M=3
1 2 3
2 4 5
3 5 6

OUTPUT:
Original matrix
1 2 3
2 4 5
3 5 6
The given matrix is symmetric
Sum of the left diagonal=11
Sum of the right diagonal=10

Example 2:
INPUT: M=4
OUTPUT:
Original matrix:

7  8  9  2
4  5  6  3
8  5  3  1
7  6  4  2
The given matrix is not symmetric
Sum of the left diagonal=17
Sum of the right disgonal=20

Example 3:
INPUT: M=12
OUTPUT:
Matrix size is out of range


Solution: CLICK HERE

 Question 3:


Write a program to accept a sentence which may be terminated by either ',', '?' or '!'only.
Any other character may be ignored. The words may be separated by more than one blank space
and are in upper case.

Perform the following tasks:
a) Accept the sentence and reduce all extra blank spaces between two words to a single blank space.
b) Accept a word from the user which is a part of the sentence along with its position number and delete the word and display the sentence

Example 1:
INPUT: A  MORNING WALK IS A IS BLESSING FOR THE WHOLE DAY.
WORD TO BE DELETED: IS
WORD POSITION IN THE SENTENCE: 6
OUTPUT:A MORNING WALK IS A BLESSING FOR THE WHOLE DAY.

Example 2:
INPUT: AS YOU  SOW, SO SO YOU REAP
WORD TO BE DELETED: SO
WORD POSITION IN THE SENTENCE: 4
OUTPUT:AS YOU SOW, SO YOU REAP

Example 3:
INPUT: STUDY WELL ##
OUTPUT:INVALID INPUT

Solution: CLICK HERE

For the complete solution along with variable description and algorithm: CLICK HERE

2010 To 2018 Complete 9 Years Papers With Solutions: CLICK HERE

13 comments:

  1. in the first program therez a mistake..

    ReplyDelete
  2. in the programs written above..the loops are not complete..

    ReplyDelete
    Replies
    1. Thanks a lot - Yoshna. Actually the less than symbols (<) are ignored by the editor as html tags.

      Delete
  3. sir, what is the total marks allotted for the ISC board practical exam

    ReplyDelete
  4. Sir!! Some moments ago i was going through the ISC practical paper solutions of 2013 and if u remember then there was this programme on checking the validity of an ISBN number.Everything went fine for me untill i got stuck at this line which followed immediately after assiging the value of X as 10.it said (int dig=char ch-48;)Sir can u plz explain what this stands for????

    ReplyDelete
    Replies
    1. The ISBN number is stored as string and all digits in the ISBN number are characters of the string. For example numeric 1 is stored as '1' and ascii values of '0' to '9' are 48 to 57. When any numeric values is stored as character and if we want to get the numeric value from it, we have to subtract 48 from that character. Ascii value of '1' is 49 so '1'-48 will generate 1.

      Delete
  5. Sir, can u plz tell me the program of merging two nos.(question no.9 of isc2015 theory paper)

    ReplyDelete
  6. really helpful but you can make your site more interactive

    ReplyDelete
  7. Thanks a lot sir. This really helped.

    ReplyDelete

Subscribe via email

Enter your email address:

Delivered by FeedBurner