0% found this document useful (0 votes)
85 views7 pages

2025 COPPER Maneckji

The document is an examination paper for Computer Applications for STD X at Laneckji Cooper Education Trust School, scheduled for December 4, 2024. It consists of two sections: Section A, which includes multiple-choice questions, and Section B, which requires programming tasks. Students are instructed to attempt all questions from Section A and any four from Section B, with specific marks allocated for each question.

Uploaded by

devdeulghosh109
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
85 views7 pages

2025 COPPER Maneckji

The document is an examination paper for Computer Applications for STD X at Laneckji Cooper Education Trust School, scheduled for December 4, 2024. It consists of two sections: Section A, which includes multiple-choice questions, and Section B, which requires programming tasks. Students are instructed to attempt all questions from Section A and any four from Section B, with specific marks allocated for each question.

Uploaded by

devdeulghosh109
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

EOUCAROA

laneckji Cooper Ebucation Trust School


Juhu Tara Road, Mumbai - 400 049

PRE-PRELIMINARY EXAMINATION,2024-25
~COMPUTER APPLICATIONS

DATE: 4/12/2024 TIME:2 hours

STD: X MARKS: 100

Answers 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.
Thetime given at the head of this paper is the time allowed for writing the answers.

Attempt all questions from Section A and any four guestions from Section B.
The intended marks for questions or parts of questions are given in brackets [J.

SECTION A

(Attempt all questions.)


Question 1 [1X20-20]
i. Automatic conversion of primitive data into an object of wrapper class is called

1. autoboxing
2. explicit conversion
3. shifting
4. none

i. "One thing in many different form" goes with the 00Psconcept


l.Inheritance
2.encapsulation
3.classification
4. Polymorphism

1
Il1. Which of the following functions is used to remove leading and trailing white spaces from the
string?
1. trim( )
2. trail( )
3. truncate( )
4. slice()

1V. What will be the output of the following statement, when executed?

System.out.printin("COMPUTER".charAt(4));
1. M 2.U 3.P 4. None

v.
"school".substring(2,5)
1. hÍo
willresult
2. ool, 3.sch 4.schoo

vi. By default, package is imported in a Java program.


(a)java.lang (b) java.io (c) java.awt (d) java.Scanner

vii. The expression which uscs >= operator is known as:


1. relational

2. logical
3. arithmetic

4. assignment

vi. The number of bytes occupied by acharacter array of 10 elements.


1. 20 bytes
2. 60 bytes
3. 40 bytes
4. 120 bytes

ix. The method of Scanner class used to accept a double value is:

nextdouble()
2 nextDouble)
3 next()
4 nextlnteger()

x. The output of Math.round(6.6) + Math.ceil(3.4) is:


1. 9.0
2. 11.0
3. 10.0
4. 11

statement?
XI. The absence of which statement leads to fall through situation in switch case

1. continue
2. break
3. return
4. Systen.exit(0)

xii. State the type of loop in the given program segment:


for (int i = 5; i!=0: i-=2)
System.out.println(i);

1. finite
2. infinite
3. null
4. fixed

argument and returns a char:


xiii. Write amethod prototype name check() which takes an integer
1. char check()
2. void check (int x)
3. check (int x)
4. char check (int x)

xiv. Java statement to access the 5th element of an array is:

1. X{4]
2. X[5]
3. X[3]
4. X[0j
Xv. Assertion (A): In Java, statements written in lower case letter or upper case letter are treated as
the same.
Reason (R): Java is a case sensitive language.

1. Both Assertion (A) and Reason (R) are true and Reason (R) is a correct explanation of
Assertion (A)
2. Both Assertion (A) and Reason (R) are true and Reason (R)is not a corrcct explanation of
Assertion (A)
3. Assertion (A) is true and Reason (R) is false
4. Assertion (A)is false and Reason (R)is true
3
NI. Assertion (A): Array is a data type whichcan store multiple homogenous variables.
Reason (R): Elements of array are stored in an indexed manner starting with index 0.

(a) Both Assertion (A)and Reason (R) are true and Reason(R) is correct explanation of Assertion
(A).

(b) BothAssertion (A) and Rcason (R)are true and Reason(R) is not a correct explanation of
Assertion (A).
(c) Assertion (A) is true and Rcason (R) is false.

(d) Assertion (A) is false and Reason (R)is true.

xvi. What will be the output for:


System.out.print(Character.toLowerCasc('1);
1. 0
2. 1
3. A
4. True

xviii. Give output of the following String methods:


"SUCESS".indexOf(S') + "SUCCESS". lastindexOf('S')
1. 0
2. 5
3. 6
4. -5

xix. Corresponding wrapper ciass of float data type is


1. FLOAT
2.. float
3. Float
4. Floating
XX. The access modifier that gives lcast accessibility is:
1. private
2. public
3. protected
4. package

4
Question 2 [2X10=20]

What willbe the final value of a, b and c after executing the following code int a=5, b=6,
C=12;
Ct= --a + at+/++b -c*a++%c++--b;

ii. Evaluate the expression when the value ofx = 4:


x *= -X + Xt+ + x

iii. Rewrite the following using if else int c=(a!=b)?5:7;


iv. Convert the following do...while loop to for loop:
int x = 10;
do

X
System.out.print(x);
}while (x=1);
V. Give the output of the fo!lowing Character class methods:

(a) Character.toUpperCase ('a')


(b) Character.isLetterOrDigit('#")
vi. Give the output of the following code:
String A="26", B="100"
String D=A+B+"200;
int x=Integer.parselnt {A);
inty=Integer.parselnt(B);
int d=x+y;
System.out.printin("Result 1="+D);
System.out.println("Result2="td);

vii Give a difference between a constructor and a method with example.

viii. Give the outputof the following String class methods:

(a) "COMMENCEMENT".lastindex of('M)


(b) "devote".compareTo("DEVOTE")
ix. Give the output of the following code :
String A= "56.0", B ="94.0";
double C = Double.parseDouble(A);
double D = Double.parseDouble(B);
System.out.printin((C+D):

5
x. Write a Javacxpression for the
following:

a+b

SECTION B
(Answer any four questions from this Section)
The answers in this section should consist of the programs in either BlueJ
environment or any
program environment with java as the base. Each program should be written using variable
description / mnenmonic codes so that the logic of the program is clearly depicted.
Flowcharts and algorithms are not required

Question 3

Define aclass to accept a string and convert it into uppercase. Count and
number of vowels in it.
display the
Input: robotics
Output: ROBOTICS
Number of vowels: 3

Question 4

Define a class to accept a string, and print the characters with the uppercase and
but all the other lowercase reversed,
characters should remain the same as before.
EXAMPLE:
INPUT: WelCoMe 2025
OUTPUT :wELCOmE 202s
Question 5

Definea class to accept values into a 3x3 array and check if it is a special array. An array is a
special array if the sum of the even elements = sum of the odd elements.
Example:
AJ[[={{ 4,5, 6}. {5,3, 2}, { 4, 2, 5}}:
Sum ofeven elements = 4+6+2+4+2 =18

Sum of odd elements= 5+5+3+5=18

6
Question 6

DTDC acourier company charges for the courier bascd on the weight of the parcel. Define a
class with the following specifications:

class name: courier


Member variables:
name - name of the customer
weight - weight of the parcel in kilograms
address - address of the recipient
bill amount to be paid
type D' -domestic, I international
Member methods:
Scanner class only.
void accept() - to acccpt the details using the methods of the
void calculate() - to calculate the bill as per the following criteria:

Weight in Kgs Rate per Kg

Rs. 800
First 5 Kgs

Rs. 700
Next 5 Kgs

Rs. 500
Above 10 Kgs
courier is I (International).
An additional amount of Rs. 1500 is charged if the type of the
void print() - To print the details
void main() to create an object of the class and invoke the methods.

Question 7
Sort these pin
Define a class pin code and store the given pin codes in a single dimensional array.
sorted array.
codes in ascending order using the selection sort technique only. Display the
110061, 110001, 110029, 110023, 110055, 110006, 110019, 110033

Question 8
calculate and
Write a program to accept number into a 3X4 matrix. Display the original array. Then
display the sum of each column.

You might also like