English

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

Advertisements
Subjects
Topics
Subjects
Popular subjects
Topics

Please select a subject first

Advertisements
Advertisements
< prev  7841 to 7860 of 19036  next > 

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

Advertisements

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

Differentiate between searching and sorting.

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

If int x [ ] = { 4, 3,7, 8, 9,10}; what are the values of p and q ?

(i) p = x.length
(ii) q = x[2] + x[5] * x[1]

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

Write a difference between the functions isUpperCase() and toUpperCase().

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

int res = ‘A’; 

What is the value of res?

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

What is a parameterized constructor?

[7] Constructors
Chapter: [7] Constructors
Concept: undefined >> undefined

Write a program to input forty words in an array. Arrange these words in descending order of alphabets, using selection sort technique. Print the sorted array.

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

Write the return data type of the following function:

log( )

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

Name the two types of constructors.

[7] Constructors
Chapter: [7] Constructors
Concept: undefined >> undefined

Write the output of the following program code:

char ch ;
int x=97;
do
{
ch=(char) x;
System.out.print(ch + “ ” );
if(x%10 == 0)
break;
++x;
}while(x<=100);

[7] Constructors
Chapter: [7] Constructors
Concept: undefined >> undefined

Write a program to accept a number and check and display whether it is a Niven number or not. 
(Niven number is that number which is divisible by its sum of digits).
Example:
Consider the number 126.
The Sum of its digits is 1+2+6 = 9 and 126 is divisible by 9.

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

Write a program to accept a name and total marks of N number of students in two single subscript array name[] and totalmarks[].

Calculate and print:

  1. The average of the total marks obtained by N Number of students.
    [average = (sum of total marks of all the students)/N]
  2. Deviation of each student’s total marks with the average
    [deviation = total marks of a student – average] 
[3] Arrays (Single Dimensional and Double Dimensional)
Chapter: [3] Arrays (Single Dimensional and Double Dimensional)
Concept: undefined >> undefined

Using the switch statement, write a menu driven program to:
(i) To find and display all the factors of a number input by the user (including 1 and excluding number itself).

Example:
Sample Input: n=15
Sample Output: 1, 3, 5.
(ii) To find and display the factorial of a number input by the user (the factorial of a non-negative integer n, denoted by n\ is the product of all integers less than or equal to n.
Example:
Sample Input: n=5
Sample Output: 5! = 1×2×3×4×5 = 120.
For an incorrect choice, an appropriate error message should be displayed.

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

State one difference between the floating point literals float and double.

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

Find the errors in the given program segment and re-write the statements correctly to assign values to an integer array.
int a = new int (5);
for (int i = 0; i < = 5; i++) a [i] = i;

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

What is the data type returned by the library function?
compareTo()

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

What will be the output when the following code segment is  executed?
String s = “1001”;
int x = Integer. valueOf(s);
double y = Double.valueOf(s);
System.out.println(“x=”+x);
System.out.println(“y=”+y); 

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

What will be the output when the following code segment is executed?

System.out.println(“The king said\”Begin at the beginning!\“to me.”);

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

Englishहिंदीमराठी


      Forgot password?
Use app×