Professional Documents
Culture Documents
Sample Ut2
Sample Ut2
Sample Ut2
Sample paper
Sub: - Computer Applications
STD: IX Date:
Marks: - 50 Time: 1 ½ Hrs.
SECTION – A
(Attempt all the questions.)
Q-1 Do as directed.
[A] Define the terms : Class and Objects. [2]
[B] Consider the given class declaration and answer the questions that follows:
Class Pet
{
String breed;
Float price;
}
(i) Make an object ‘Romeo’ from the ‘Pet’.
(ii) Assign the data values “Beagle” , 3450 to Romeo. [2]
[C] Demonstrate the concept of ‘Fall Through’ with a simple example. [2]
[D] Differentiate between the statements (i) “a” and(ii) ‘a’ [1]
[E] Write a statement to make an object name ‘Kavya’ from the class ‘Topper’ [1]
[F] “main is a keyword in java’ – true/false [1]
[G] Give an example of a body less loop. [1]
SECTION – B
(Attempt any TWO questions. Each one carry 15 marks.)
Methods
void accept() – accept material ,color ,brand of a shirt
void calcAmt() – calculate the price as per the following :
Color Price
Yellow 600
Green 700
White 500
Material Price
Cotton Same price
Linen 200 more than the ordinary price.
Calculate the amount as price x qty