Record Book Questions CLASS 10

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

St.

Francis School (ICSE)


Koramangala, Bengaluru-34
CLASS X – COMPUTER APPLICATIONS

PROGRAMS TO BE DONE IN BLUEJ AND TO BE WRITTEN IN COMPUTER RECORD BOOK.

DATE : 02-04-2024
1. Write a menu driven program to generate the uppercase letters from Z to A and lowercase
letters from ‘a’ to ‘z’ as per the user’s choice. Enter 1 to display uppercase letters from Z to A
and Enter ‘2’ to display lowercase letters from ‘a’ to ‘z’.

2. Write a program in Java to display the pattern –


A*B*C*D*E*
A*B*C*D*
A*B*C*
A*B*
A*

3. To input a number and to calculate & display the factorial of each Digit.
Sample Input : 365
Output :
Factorial of 5 : 120
Factorial of 6 : 720
Factorial of 3 : 6

4. Write a menu driven program to


a) Input 5 binary numbers and convert each into decimal. Display it.
b) Input 5 decimal numbers and convert each into binary. Display it.

5. Write a menu driven program to display the pattern of a string entered by the user. If the user
enters a choice ‘F’ then it displays the first character of each word. In case the choice is ‘L’,
then it will display the last character of each word.
Sample Input : GOD IS REALLY GREAT
Enter your choice : L
Enter your choice : F
SAMPLE Output: G Sample Output: D
I
S
R
G Y
T

6. Write a program to generate a triangle or an inverted triangle based upon User’s choice.
If choice is 1, then display the following triangle -
B
L L
UUU
E E E E
J J J J J
If choice is 2, then display the following triangle
BLUEJ
BLUE
BLU
BL
B
7. Special words are those words which start and end with the same letter.
Example : EXISTENCE, COMIC, WINDOW
Palindrome words are those words which read the same from left to right and vice-versa.
Example: MALAYALAM, MADAM, LEVEL
All palindromes are special words but all special words are not palindromes.
WAP to accept a word. Check and display whether the word is a palindrome or only a special
word or none of them.
8. Write a program to input a sentence. Create a new sentence by replacing each consonant with
the previous letter. If the previous letter is a vowel, then replace it with the next letter ( i.e, if the
letter is B, then replace it with C as the previous letter of B is A). Other characters must remain
same. Display the new sentence.
Sample Input: THE CAPITAL OF INDIA IS NEW DELHI
Sample output : SGE BAQISAK OG IMCIA IR MEV CEKGI

Note :
✓ First four questions are already completed by 9th March 2024.
✓ Please check each page of your record book and do the corrections as mentioned by the
teacher. SUBMIT THE RECORD BOOK WITH THE CORRECTIONS on 12th April.
✓ Question 5, 6, 7 and 8 to be completed by 12th April.
✓ The variable names, data types and description of the variables to be written in table
format. [ Tables to be drawn in pencil only ]
✓ Write the input given and the output obtained (under heading OUPUT) when you
executed the program which depicts your program is working.
✓ Write the program neatly in your computer record book and make sure your work is
neat and without any errors.
✓ LATE SUBMISSION OF RECORD IS NOT ENTERTAINED.

HAPPY PROGRAMMING!

You might also like