(English Medium)
Academic Year: 2023-2024
Date & Time: 13th March 2024, 11:00 am
Duration: 2h
Advertisements
- 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 reading the question paper.
- The time given at the head of this Paper is the time allowed for writing the answers.
- This Paper is divided into two Sections.
- Attempt all questions from Section A and any four questions from Section B.
- The intended marks for questions or parts of questions are given in brackets [ ].
Consider the above picture and choose the correct statement from the following:
Polygon is the object and the pictures are classes
Both polygon and the pictures are classes
Polygon is the class and the pictures are objects
Both polygon and the pictures are objects
Chapter: [0.0102] Elementary Concept of Objects and Classes
int x = 98; char ch = (char)x; what is the value in ch?
b
A
B
97
Chapter: [0.04] String Handling
The output of the statement "CONCENTRATION" indexOf('T') is ______.
9
7
6
(-1)
Chapter: [0.04] String Handling
The access specifier that gives least accessibility is ______.
Package
Public
Protected
Private
Chapter: [0.08] Encapsulation
The output of the statement "talent". compareTo("genius") is ______.
11
-11
0
13
Chapter: [0.04] String Handling
Which of the following is an escape sequence character in Java?
/n
\t
/t
//n
Chapter: [0.0103] Values and Data Types
If (a>b&&b>c) then largest number is ______.
b
c
a
Wrong expression
Chapter: [0.0103] Values and Data Types
What is the output of Math.ceil(5.4) + Math.ceil(4.5)?
10.0
11.0
12.0
9.0
Chapter: [0.010700000000000001] Mathematical Library Methods
What is the method to check whether a character is a letter or digit?
isDigif(char)
isLetterOrDigit()
isLetterOrDigit(char)
isLETTERorDIGIT(char)
Chapter: [0.02] Library Classes
The extension of a Java source code file is ______.
exe
obj
jvm
java
Chapter: [0.0105] Introduction to Java
The number of bytes occupied by a character array of four rows and three columns is ______.
12
24
96
48
Chapter: [0.03] Arrays (Single Dimensional and Double Dimensional)
Advertisements
Which of the following data type cannot be used with switch case construct?
int
char
String
Double
Chapter: [0.0108] Conditional Statements in Java
Which of the following are entry-controlled loops?
- for
- while
- do..while
- switch
Only 1
1 and 2
1 and 3
3 and 4
Chapter: [0.0109] Iterative Constructs in Java
Method which reverses a given number is ______:
Impure method
Pure method
Constructor
Destructor
Chapter: [0.05] User - Defined Method
If the name of the class is "Yellow", what can be the possible name for its constructors?
yellow
YELLOW
Yell
Yellow
Chapter: [0.07] Constructors
Invoking a method by passing the objects of a class is termed as ______.
Call by reference
Call by value
Call by method
Call by constructor
Chapter: [0.05] User - Defined Method
The correct statement to create an object named mango of class fruit:
Fruit Mango = new fruit();
fruit mango = new fruit();
Mango fruit = new Mango();
fruit mango = new mango();
Chapter:
Assertion (A): Static method can access static and instance variables.
Reason (R): Static variables can be accessed only by static method.
Assertion and Reason both are correct.
Assertion is true and Reason is false.
Assertion is false and Reason is true.
Assertion and Reason both are false.
Chapter: [0.05] User - Defined Method
What is the output of the Java code given below?
String color [ J = {"Blue", "Red", "Violet"}; System.out.println(color[2].length();
6
5
3
2
Chapter: [0.0105] Introduction to Java
Which of the following mathematical methods returns only an integer?
Math.ceil(n)
Math.sqrt(n)
Math.floor(n)
Math.round(n)
Chapter: [0.010700000000000001] Mathematical Library Methods
Write Java expression for:
`(|a + b|)/(sqrt(a^2 + b^2))`
Chapter: [0.010700000000000001] Mathematical Library Methods
Evaluate the expression when x is 4:
x + = x + + * + + x %2;
Chapter: [0.0104] Operators in Java
Advertisements
Rewrite the following do while program segment using for:
x = 10; y = 20;
do
{
x++;
y++;
}while (x<=20);
System.out.println(x*y);
Chapter: [0.0105] Introduction to Java
Give the output of the following program segment. How many times is the loop executed?
for(x=10;x>20;x++)
System.out.println(x);
System.out.println(x*2);
Chapter: [0.011000000000000001] Nested Loop
String sl= "45.50";String s2="54.50";
double d1=Double.parseDouble(s1);
double d2=Doub1e.parseDouble(s2);
int x=(int)(d1+d2)
What is value of x?
Chapter:
Consider the following two-dimensional array and answer the questions given below:
int x[ ][] = {{4,3,2}, {7,8,2}, {8,3,10}, {1,2,9}};
- What is the order of the array?
- What is the value of x [0] [0] + x [2] [2]?
Chapter: [0.03] Arrays (Single Dimensional and Double Dimensional)
Differentiate between boxing and unboxing.
Chapter: [0.02] Library Classes
The following code to compare two strings is compiled, the following syntax error was displayed - incompatible types - int cannot be converted to boolean.
Identify the statement which has the error and write the correct statement. Give the output of the program segment.
void calculate()
{
String a="KING",b="KINGDOM";
boolean x=a.compareTo(b);
system.out.println(x);
}
Chapter: [0.04] String Handling
Consider the given program and answer the questions given below:
class temp
{
int a;
temp()
{
a=10
}
temp(int z)
a=z;
}
void print()
{
System.out.println(a);
}
void main()
{
temp t = new temp();
temp x = new temp(30);
t.print();
x.print();
}
}
- What concept of OOPs is depicted in the above program with two constructors?
- What is the output of the method main()?
Chapter: [0.0101] Introduction to Object Oriented Programming Concepts
Primitive data types are built in data types which are a part of the wrapper classes. These wrapper classes are encapsulated in the java.lang package. Non primitive datatypes like Scanner class are a part of the utility package for which an object needs to be created.
- To which package the Character and Boolean classes belong?
- Write the statement to access the Scanner class in the program.
Chapter: [0.0103] Values and Data Types
DTDC, a courier company, charges for the courier based 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: | ||
void accept ( )- | to accept the details using the methods of the Scanner class only. | |
void calculate ( )- | to calculate the bill as per the following criteria: | |
Weight in Kgs | Rate per Kg | |
First 5 Kgs | Rs.800 | |
Next 5 Kgs | Rs.700 | |
Above 10 Kgs | Rs.500 | |
An additional amount of Rs.1500 is charged if the type of the courier is I (International) | ||
void print )- | To print the details | |
void main ()- | to create an object of the class and invoke the methods |
Chapter: [0.0106] Input in Java
Define a class to overload the method perform as follows:
double perform (double r, double h) | to calculate and return the value of Curved surface area of cone CSA π rl `l = sqrt(r^2 + h^2)` |
void perform (int r, int c) | Use NESTED FOR LOOP to generate the following format r = 4, c = 5 output - 1 2 3 4 5 1 2 3 4 5 1 2 3 4 5 1 2 3 4 5 |
void perform (int m, int n, char ch) | to print the quotient of the division of m and n if ch is Q else print the remainder of the division of m and n if ch is R |
Chapter: [0.011000000000000001] Nested Loop
Define a class to accept a number from user and check if it is an EvenPal number or not. (The number is said to be EvenPal number when number is palindrome number (a number is palindrome if it is equal to its reverse) and sum of its digits is an even number.)
Example: 121 - is a palindrome number
Sum of the digits - 1 + 2 + 1 = 4 which is an even number
Chapter: [0.0106] Input in Java
Define a class to accept values into an integer array of order 4 x 4 and check whether it is a DIAGONAL array or not An array is DIAGONAL if the sum of the left diagonal elements equals the sum of the right diagonal elements. Print the appropriate message.
Example:
3 4 2 5 Sum of the left diagonal elements =
2 5 2 3 3 + 5 + 2 + 1 = 11
5 3 2 7 Sum of the right diagonal elements =
1 3 7 1 5 + 2 + 3 + 1 = 11
Chapter: [0.0106] Input in Java
Define a class pin code and store the given pin codes in a single-dimensional array. Sort these pin codes in ascending order using the Selection Sort technique only. Display the sorted array.
110061, 110001, 110029, 110023, 110055, 110006, 110019, 110033
Chapter: [0.03] Arrays (Single Dimensional and Double Dimensional)
Define a class to accept the gmail id and check for its validity.
A gmail id is valid only if it has:
→ @
→ . (dot)
→ gmail
→ com
Example: [email protected] is a valid gmail id.
Chapter: [0.0106] Input in Java
Other Solutions
Submit Question Paper
Help us maintain new question papers on Shaalaa.com, so we can continue to help studentsonly jpg, png and pdf files
CISCE previous year question papers ICSE Class 10 Computer Applications with solutions 2023 - 2024
Previous year Question paper for CISCE ICSE Class 10 Computer Applications-2024 is solved by experts. Solved question papers gives you the chance to check yourself after your mock test.
By referring the question paper Solutions for Computer Applications, you can scale your preparation level and work on your weak areas. It will also help the candidates in developing the time-management skills. Practice makes perfect, and there is no better way to practice than to attempt previous year question paper solutions of CISCE ICSE Class 10 .
How CISCE ICSE Class 10 Question Paper solutions Help Students ?
• Question paper solutions for Computer Applications will helps students to prepare for exam.
• Question paper with answer will boost students confidence in exam time and also give you an idea About the important questions and topics to be prepared for the board exam.
• For finding solution of question papers no need to refer so multiple sources like textbook or guides.