0 ratings0% found this document useful (0 votes) 13 views22 pagesComputer Application
Computer class 10 hand-written notes
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here.
Available Formats
Download as PDF or read online on Scribd
COMPUTER APPLICATIONS.
axiom Marks: 100
Time allowed: Two hous
You will not be allowed to write during the first 15 minutes
2 in reading the question paper
The time given atthe head ofthis Paper is the tne allowed for writing the answers.
1 two Sections
mpt all questions from Section A and any four questions fi
rhe intended marks for questions oF parts of questions are given ImBrackets{ J
SECTION A (40 Maris)
all questions from this Section.)
Qhestion 1
Choose the correct answers to the questions from th
(Damot copy the questions, write the
: | Polygon
Consider the above picture and choose the correct statement fiom the following:
(@) Polygon is the object and the pictures ae classes
(b) Both polygon and the pictures are classes
(©) Polygon is the class and the pictures are objects
(a) Both polygon and the pictures are objec
This paper consists of 11 printed pages and 1 blank page
124861 Turn Overrhe ouput of thé sunt “CONCENTRATION ago f nD
(© protected
© private
¥) The output ofthe statement "talent™.compareT0(” genius") i
@n
® -
@B
a Java?
@
10)
T4861 Ta
2
ity
ww
©
oi)(©) wrong expression
(0) Whats he ouput of Matheils4)¢Mtath e592
@ 100
® 10
© Roe
@ 90
OP _"What ste method to check whether characters alter o digi?
(@) isDigithar)
©) ishenerorDiging
(©) isLeterOrDigit(chay
@ isLETTERoDIGH(char)
0 The extension ofa Java source code file is
(exe
(b) obj
© ivm
@ java
(<) The number of bytes occupied! by a chacise amuy of four rows ‘and three
columns are
@ 2
99 24
© 9%
@ 48
Turn Overnot be used with switch ease construct?”
sn
(@) Destructor '
Gm) _H the name ofthe elass is “Yellow”, what can be the posible alan for its
constructors?
(@) yellow
() YELLOW
© Yel
CO)
Yellow(xix)
»
© Call by method
(© Callby constructor
The correct statement to create an object named mango of class fruit:
it Mango= neve fit);
(©) fruit mango = new fr
(©) Mango frut-new Mango();
(2) fruit mango= new mango;
Assertion (A): Static method can access static and instance variables
Reason (R): Si
ie variable can be accessed only by static method
8) Assertion and Reason both are correc.
(b) Assertion is true and Reason is fale
(©) Assertion is false and Reason is true.
(@ Assertion and Reason both are false
‘What isthe output of the Java code given below?
String color [] = {"Blue", "Red", *Violet");
System.out printin(color[2}-length();
@ 6
o 5sent using for:
Rewrite the following do while program s
} while (x<=20);
System out printings * y
Give the output ofthe following program segment. How man
¥ times is the loop
executed?
” a
for(x=10; x>203x+4)
System.out println(x); c
System. out printin(x*2)
a
2
Q
a @&>N
String t= 94550 Sing "5450 a)
double dt-DoubleparseDoublest,
Able d2-DonbiepareDeubeay
int x= Cinna
What is vale of
Cini loa oe aia hiya lah uestions given ay
z inea{ I) (643.29, 782), (8,310), (12,99)
(9) Wha isthe onder ofthe aay
©) Whoa the value of oojeay2y2
a (71) Dilfsrennte between bong ad unboxing e
(8) The ellowing cade o compare ive sng i compl the flow sax]
2}
tor Was displayed — incompatible
le types —int cannot be converted to boolean,
entity the statement which has
he error and write the correct statement. Give
the output of the program segment,
void ealeulateg)
String a= "KING", b="KINGDOM!
boolean x = a.compareTo
System.outprintn(9);
RI (@s) onside the piven program and answer the questions given below
a
class temp.
{
temp()
T2861
Turn Overtemp (= new temp;
emp x= new temp(30);
prim;
x print);
(®) What concept of OOPs is depicted in the above program with two
(©) What is the output of the method main()?
© dua types are builtin datatypes Which are a part of the wrapper
These wrapper classes are encapsulated in the
@
java.lang package. Non
Primitive datatypes lke Scanner class are a part ofthe ut
ilty package for which
an object needs tobe create,
(©) To which package the Charset and Boolean lasses belong?
5) _ Write the statement to access he Scanner
lass inthe program,
724 861
Question
TDC,
Member
void pr
void m
124861SECTION B (60 Marks)
(Answer any four questions fom tis Section)
"nstsof the programs tn ether BlueS environment or an
Program environment with Java asthe base.
"rtten using varlable description / mnemonle codes
sa that the logic ofthe
Program is clearly depicted
rts and algorithms are not required.
Question 3
115)
DIDC a courier company charges f
“bes for the courier based onthe weight ofthe parcel. Define
‘class with the following specifications
ber variables: name ~name of the customer
‘eight — weight ofthe parel in kilograms
address — address ofthe recipient
bill ~ amount tobe pai
type —"D’
lomesti,‘T-intemational
Member methods:
oid a
pt () to aceept the details using the methods of the Scanner class only
void calculate ()~ to caleulate the bill as per the following criteria:
WeightinKgs Rate per Kg,
inst 5 Kgs Rs.800
Next 5 Kes Rs.700
Above 10 Kes Rs.500
p ‘An additional amount of Rs.1500 is charged ifthe type ofthe courier
is I (Intemational)
} vei print) To print the details
| void main()- to create an object of the class and invoke the methods
- 124861 ae
Tura Oversean ie and return the value of
csA=nrt b=
; following format
r=4,c=Souput- 12345
12345
12345
12345
e division of m and
void perform (it m, int n, char ch) to print the quotient of the di f
nif'ch is Q else print the remainder of the
division of m and n ifch is R
Question 5
Define class to accept @ number fiom user and check if its an EvenPal number or not,
(The number is said to be EvenPal number when number is palindrome number (a number
‘s palindrome ifit is equa to its reverse) and sum ofits digits is an even number.)
Example: 121 —is a palindrome number
‘Sum of the digits —142+1 = 4 which is an even number
Question 6
Define a class o accept values into an integer array of order 4x 4 and check whether
4 DIAGONAL array o not. An aay is DIAGONA\
IL if the sum of the left diagonal
@
> - dor)
@ gmail.com is a valid gmail i,
724.861
110023, 110055, 110006, 110019, 110033
Display