Class – X
Subject – Computer
Application
Time: 2hrs Marks: 100mks
Answer to this paper must be written on the paper
provided separately. You will not be allowed to write during the first 15
minutes. This time is to be spent in reading the question paper. Time given at
the head of this paper is the time allowed for writing the answers. This paper
is divided in 2 sections. Attempt all questions of section A and any 4
questions of section B. The intended marks for questions or part of questions
are given in square brackets [ ]. In programs give appropriate variable names
and comments wherever necessary.
Section A
Question 1:
1. Write 2 advantages of arrays. [2]
2. Give the difference between
length() and length along with the example. [2]
3. Give the use of return typr
and argument type of the function of CompareTo( ). [2]
4. Write a note of explicit
conversion. [2]
5. Write a note on parameterized
constructor. [2]
Question
2:
1. Distinguish between linear and
binary search. [3]
2. Give use of dot operator with
example. [2]
3. Give the syntax for arrayCopy(
). [1]
4. Write a function prototype for
function calculate which accepts a word wrd and a character chr and returns no
value. [2]
5. Explain the syntax of while
loop. [2]
Question 3:
1. Convert the following
for loop in to do-while loop: [2]
for(int
i=10,j=0;j<=10;i++,j=j+3)
System.out.print(i+" "+j);
2. Write scope and lifetime for a
argument variable. [2]
3. Write a note on call by
reference. [2]
4. Write
a java expression for the following. [2]
i. 

ii. 

5. Give
the output for the following [4]
String s="Global",
st="citizen";
i. System.out.print(st.compareTo(s));
ii. System.out.print((s+st).length());
iii.
System.out.print(s+st.substring(0,4));
iv. System.out.print(s.length()+st);
6. Determine how many
times the loop will execute and give the output [2]
for(int
i=2;i<=20;i=i+2)
{
if(i%2==0)
continue;
System.out.print(i);
}
7. Solve the following expression. [1]
int a,b=30,c=40;
a=b+c++
+b+c;
8. Correct
the error [2]
int n[ ]=(2,4,6,8,10)
for(int
i=0;i<=5;i++)
{
System.out.print("n["+I+"]="n[1]);
}
9. Name the keywords that [2]
i.
Informs that an error has occurred in input and output operations.
ii.
Distinguishes between instance and class variable.
10. Define scanner class. [1]
Section B [Any 4]
Question
4: [15]
Write a program
to reverse the given string.
e.g.
enter string::(input a space at
the end)
Brown fox is mad
nworB
xof si dam
Question
5: [15]
Write
a program that stores a list of countries & % of people owning P.C as below
Country % people owning P.C
India 78.2
Japan 36.7
USA 89.7
Germany 42.3
Singapore 47.8
U.K 37.8
Use
the above data & bubble sorting technique to print the list in decreasing
order of its % people owning P.C.
Question
6: [15]
Write a program
to accept a number and reverse it and check whether given number is palindrome
or not.
Question
7: [15]
Midland bank offers the following rates of
interest for the fixed deposits made by the customers.
Time Rate
Upto 6 mnts 7%
Above 6mnts & upto 12mnts 8%
Above 12mnts & upto 36mnts 9%
Above 36mnts 10%
The
amount after 'm' months is calculated by using the formula:
A = P * (1 + R/100)^m
Using
switch case, write a menu driven program to allow customers to deposit the sum
for a period of time.
Question
8: [15]
Define a class student as described
below
Data members:
Name, age, mks1,
mks2, mks3 (marks in 3 subjects), maximum, average.
Member methods:
i. A parameterized constructor to initialize the data members
ii. To accept the details of the students
iii. To compute the average & max out of 3 marks
iv. To display the name, age, marks in 3 subjects, maximum &
average
Write
a main method to create object of the class & call all the above member
methods.
Question
9: [15]
Write a program to print the pattern as :
aaaaaaaaa
aaaaaaa
aaaaa
aaa
a
aaa
aaaaa
aaaaaaa
aaaaaaaaa
We need the program codes for your given programs..
ReplyDelete.
CaesarsCasino Review - Welcome Bonus up to ₹10,000!
ReplyDeleteThe 벳매니아 casino is a safe place to play and 바카라 노하우 a good place to go for bonuses. However, if you 인스타 셀럽 are looking for a fun and 룰렛 사이트 rewarding 러시안 룰렛 casino, then CaesarsCasino.ca