Class 10 1st Term Paper - Retest
Class 10 1st Term Paper - Retest
ST
1 TERM EXAMINATION –SEPTEMBER 2023-24
COMPUTER APPLICATIONS
CLASS: 10
TIME: 2 hrs. MARKS:
100
(ii) A java expression that contains all the elements of same data
type is _____________ expression.
(a) Simple
(b) Complex
(c) Pure
(d) mixed
(a) 36
(b) 58
(c) 48
(d) 60
(vii) The access modifier that gives the least accessibility is:
(a) private
(b) public
(c) protected
(d) Package
(xii) What is the value of ‘a’ after executing the following code?
int arr[ ]={1,2,3,4,5};
int a=arr[1]*arr[4]+arr[2]%arr[3];
(a) 6
(b) 5
(c) 11
(d) 13
(a) F10
80
(b) F10
112
(c) 80
80
(d) 112
112
(a) 0
(b) Garbage value
(c) Syntax error
(d) Run time error
QUESTION NO 2:-
(v) In the program given below, state the name and the value of
the [2]
a) Argument variable b) class variable
c) local variable d) instance variable
class Myclass
{
static int x=7;
int y=2;
void sampleMethod(int n)
{
System.out.println(n);
System.out.println(y);
}
public static void main( )
{
Myclass obj = new Myclass( );
System.out.println(x);
0bj.sampleMethod(5);
int a=6;
System.out.println(a);
}
}
1 3
(viii) Write the Java expression for q= + 2
√ a+b c
[2]