10th 1st Term Paper 2023-24
10th 1st Term Paper 2023-24
ST
1 TERM EXAMINATION –SEPTEMBER 2023-24
COMPUTER APPLICATIONS
CLASS: 10
TIME: 2 hrs. MARKS: 100
(ii) A data type that contains integer as well as fractional parts and
occupies 32 bits
space is:
(a) float
(b) char
(c) double
(d) byte
(iv) A java expression that contains all the elements of same data type
is _____________ expression.
(a) Simple
(b) Complex
(c) Pure
(d) Mixed
(a) 18
(b) 15
(c) 30
(d) 24
(viii) The access modifier that gives the most accessibility is:
(a) private
(b) public
(c) protected
(d) package
(ix) When the operators have the same priority, they are evaluated
from …………….. …………. in the order they appear in the
expression.
(a) right to left
(b) left to right
(c) any of the order
(d) depends on the compiler
(xii) Find and display the position of the last space in a String s.
(a) char d=s.lastIndexOf(“ “);
(b) int d=s.lastIndexOf(“ “);
(c) int d=s.lastIndexOf(‘ ‘);
(d) int d=indexOf(‘ ‘);
(a) 3
(b) 0
(c) 4
(d) 30
(a) F10
80
(b) F10
112
(c) 80
80
(d) 112
112
(xviii) To break a string apart, a Scanner needs a _______.
(a) Delimiter
(b) Text separator
(c) Text divider
(d) None of the above
QUESTION NO 2:-
(ii) (a) Calculate the memory space occupied by the following String:
functions. [2]
Define a class to declare a character array of size ten, accept the character
into the array and perform the following:
QUESTION NO 5: - [15]
i) Write a class 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.
Sample Input: C:\users\admin\pictures\flower.jpg
Sample Output: Path: C:\users\admin\pictures\
File name: flower
Extension: jpg
ii) A message is to be converted by adding 10 to the ASCII code
of characters in the statement given below. Write a program
to print the statement into a coded message.
Sample Input: YOKO HAS SMILED
ii) Define a class to input a string and convert into uppercase and print
the pair of vowels and number of pair of vowels occurring in the
String t.
Define a class to declare an array to accept and store 10 words. Display only
those words which begin with the letter ‘A’ or ‘a’ and also end with the letter
‘A’ or ‘a’.
Define a class to accept values into a double array of size 20 and arrange the
elements in ascending order using Bubble sort. Print original array and sorted
array.