Uploaded by fogeb90551

Class 11 Computer Science BT-1 PRACTICAL

advertisement
DELHI PUBLIC SCHOOL RUBY PARK KOLKATA
11 BLOCK TEST-I
PRACTICAL EXAMINATION 2021
COMPUTER SCIENCE (083)
Max. Time: 1 Hours 15 Minutes
Max.Marks:15
General Instructions:
 All questions are compulsory.
 Write both Source code and Sample output in the answer scripts.
1. Write a program to take input of a number from user and check the number is a Neon
number or not.
[5]
[A neon number is a number where the sum of digits of square of the number is equal
to the number.
Example: 9 is a Neon Number as square of 9 is 81. And 8+1=9 which is equal to
original number]
Example:
Input: 9
Output: It is a Neon Number
Input: 11
Output: It is not a Neon Number
2. Write a program to print the following pattern:
A
AB
ABC
ABCD
3. Write a program to take input of a string from user and count number of vowel,
consonant, digit and special case character present in the string.
Example:
Input:
Enter a String: Happy New Year 2021
Output:
Number of Vowel=4
Number of Consonant=8
Number of Digit=4
Number of Special Case Character=3
[5]
[5]
Download