हिंदी

(English Medium) ICSE Class 10 - CISCE Question Bank Solutions

Advertisements
विषयों
अध्याय
विषयों
मुख्य विषय
अध्याय

Please select a subject first

Advertisements
Advertisements
< prev  7841 to 7860 of 19099  next > 

Give the output of the following method:

public static void main (String [] args)
{
int a = 5;
a++;
System.out.println(a);
a -= (a--) − (--a); 
System.out.println(a);
}
[4] String Handling
Chapter: [4] String Handling
Concept: undefined >> undefined

State the value of characteristic and mantissa when the following code is executed:
String s = “4.3756”;
int n = s.indexOf(‘.’);
int characteristic=Integer.parseInt (s.substring (0,n));
int mantissa=Integer.valueOf(s.substring(n+1)); 

[4] String Handling
Chapter: [4] String Handling
Concept: undefined >> undefined

Advertisements

Define a class named movieMagic with the following description:
Instance variables/data members:
int year — to store the year of release of a movie.
String title — to-store the title of the movie

float rating — to store the popularity rating of the movie
(minimum rating=0.0 and maximum rating=5.0)

Member methods:
(i) movieMagic() Default constructor to initialize numeric data members to 0 and String data member to “ ”.
(ii) void accept() To input and store year, title and rating.
(iii) void display() To display the title of a movie and a message based on the rating as per the table below.

Rating Message to be displayed
0.0 to 2.0 Flop
2.1 to 3.4 Semi-hit
3.5 to 4.5 Hit
4.6 to 5.0 Super Hit

Write a main method to create an object of the class and call the above member methods.

[4] String Handling
Chapter: [4] String Handling
Concept: undefined >> undefined

Wrapper classes are available in ______ package.

[2] Library Classes
Chapter: [2] Library Classes
Concept: undefined >> undefined

A Identify the type of operator &&:

[4] Operators in Java
Chapter: [4] Operators in Java
Concept: undefined >> undefined

Evaluate the expression when x is 4:

x + = x + + * + + x %2; 
[4] Operators in Java
Chapter: [4] Operators in Java
Concept: undefined >> undefined

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

[3] Arrays (Single Dimensional and Double Dimensional)
Chapter: [3] Arrays (Single Dimensional and Double Dimensional)
Concept: undefined >> undefined

A single dimensional array has 50 elements; which of the following is the correct statement to initialize the last element to 100?

[3] Arrays (Single Dimensional and Double Dimensional)
Chapter: [3] Arrays (Single Dimensional and Double Dimensional)
Concept: undefined >> undefined

Assertion (A): Integer class can be used in the program without calling a package.

Reason (R): It belongs to the default package java lang.

[5.1] Introduction to Java
Chapter: [5.1] Introduction to Java
Concept: undefined >> undefined

Write the memory capacity (storage size) of short and float data type in bytes.

[2] Library Classes
Chapter: [2] Library Classes
Concept: undefined >> undefined

Differentiate between if else if and switch-case statements.

[2] Library Classes
Chapter: [2] Library Classes
Concept: undefined >> undefined

Give the output of the following code:

String P = “20”, Q = “19”,
int a = Integer .parselnt(P);
int b = Integer. valueOf(Q);
System.out.println(a+””+b);

[2] Library Classes
Chapter: [2] Library Classes
Concept: undefined >> undefined

State the data type and value of res after the following is executed :

char ch = ‘9’;
res = Character. isDigit(ch)

[2] Library Classes
Chapter: [2] Library Classes
Concept: undefined >> undefined

What is the difference between the linear search and the binary search technique?

[3] Arrays (Single Dimensional and Double Dimensional)
Chapter: [3] Arrays (Single Dimensional and Double Dimensional)
Concept: undefined >> undefined

Give the output of the following:
Math.sqrt(Math.max(9, 16))

[5] User - Defined Methods
Chapter: [5] User - Defined Methods
Concept: undefined >> undefined

Write a program to input 15 integer elements in an array and sort them in ascending order using the bubble sort technique. 

[3] Arrays (Single Dimensional and Double Dimensional)
Chapter: [3] Arrays (Single Dimensional and Double Dimensional)
Concept: undefined >> undefined

Design a class to overload a function series() as follows: 

(a) void series (int x, int n) – To display the sum of the series given below:
x1 + x2 + x3 + ……………. xn terms

(b) void series (int p) – To display the following series:
0, 7, 26, 63 p terms.

(c) void series () – To display the sum of the series given below:

`1/2 + 1/3 + 1/4 .....1/10`

[3] Arrays (Single Dimensional and Double Dimensional)
Chapter: [3] Arrays (Single Dimensional and Double Dimensional)
Concept: undefined >> undefined

State the number of bytes occupied by char and int data types.

[2] Library Classes
Chapter: [2] Library Classes
Concept: undefined >> undefined

Name the following :
(i) A keyword used to call a package in the program.
(ii) Any one reference data type.

[3] Arrays (Single Dimensional and Double Dimensional)
Chapter: [3] Arrays (Single Dimensional and Double Dimensional)
Concept: undefined >> undefined

State the data type and value of res after the following is executed:
char ch = ‘t’;
res=Character. toUpperCase(ch);

[2] Library Classes
Chapter: [2] Library Classes
Concept: undefined >> undefined
< prev  7841 to 7860 of 19099  next > 
Advertisements
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×