Class 10 (24-25)
Class 10 (24-25)
Question 1
Question 2
Question 3
Question 4
Question 5
Question 6
Question 7
Write a program to assign a full path and file name as given below. Using
library functions, extract and output the file path, file name and file
extension separately as shown.
Input C:\Users\admin\Pictures\flower.jpg
Output :-
Path:C:\Users\admin\Pictures
Extension: jpg
Question 8
Question 9
OUTPUT:
CHARACTERS FREQUENCY
A 2
C 1
D 1
E 2
H 1
M 1
O 1
P 1
R 3
T 1
U 1
W 1
Question 10
Write a program to input a sentence and two words. Rewrite the sentence by
replacing all the occurrence of first word by second word.
Example :
Question 12
Member methods:
4. To display the name, age, marks in three subjects, maximum and average.
Write a main method to create an object of a class and call the above
member methods.
Question 13
Write a program to input a word of 4 characters and make all the possible
combination of the characters without repetition of the characters.(Jumbled
word)
Question 14
Write a program to input two words in uppercase and check whether they
are Anagram words are not.
[Hint :words of same length and having same characters but in different
positions. ]
Question 15
Write a program that encodes a word into Piglatin. To translate word into
Piglatin word, convert the word into uppercase and then place the first vowel
of the original word as the start of the new word along with the remaining
alphabets. The alphabets present before the vowel being shifted towards the
end followed by "AY".
Output: ONDONLAY
Output: OLYMPICSAY
Output: SKY
Question 16
int hours - To store the number of hours the vehicle is parked in the parking
lot
Member methods:
void calculate() - To compute the parking charge at the rate of Rs.3 for the
first hours or part thereof, and Rs. 1.50 for each additional hour or part
thereof.
Write a main method to create an object of the class and call the above
methods
Question 17
Define a class to accept the name of 10 students in an array and check for
the existence of the given name in the array using linear search, if found
print the position of the name, if not found print appropriate message. Also
bring the name which begins with “SRI”.
Question 18
Define the class to accepted string and print the same in reverse , also print
the number of vowels in the string.
Number of vowels: 5