मराठी

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

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

Please select a subject first

Advertisements
Advertisements
< prev  7801 to 7820 of 19036  next > 

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

[5.2] Input in Java
Chapter: [5.2] Input in Java
Concept: undefined >> undefined

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

[5.2] Input in Java
Chapter: [5.2] Input in Java
Concept: undefined >> undefined

Advertisements

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.

[5.2] Input in Java
Chapter: [5.2] Input in Java
Concept: undefined >> undefined

Consider the array given below:

char ch[]={'A','E','I','O','U'};

Write the output of the following statements:

System.out.println(ch[0]*2);;
[4] String Handling
Chapter: [4] String Handling
Concept: undefined >> undefined

To execute a loop 10 times, which of the following is correct?

[8] Iterative Constructs in Java
Chapter: [8] Iterative Constructs in Java
Concept: undefined >> undefined

How many times will the following loop execute? Write the output of the code:

int x=10;
while(true) {
System.out.println(x++*2);
if(x%3==0)
break;
}
[8] Iterative Constructs in Java
Chapter: [8] Iterative Constructs in Java
Concept: undefined >> undefined

Write the output of the following String methods:

String x="Galaxy",y="Games";
(a)  System.out.println(x.charAt(0)==y.charAt(0));
(b)  System.out.println(x.compareTo(y));
[4] String Handling
Chapter: [4] String Handling
Concept: undefined >> undefined

Write the output for the following :

String s1 = “phoenix”; String s2 =”island”;

System.out.prindn (s1.substring(0).concat (s2.substring(2)));

System.out.println(s2.toUpperCase( ));

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

String x[ ] = {“Artificial intelligence”, “IOT”, “Machine learning”, “Big data”};
Give the output of the following statements:

(i) System.out.prindn(x[3]);
(ii) System.out.prindn(x.length);

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

Write a program to input a sentence and convert it into uppercase and count and display the total number of words starting with a letter ‘A’.

Example:
Sample Input: ADVANCEMENT AND APPLICATION OF INFORMATION TECHNOLOGY ARE EVER CHANGING.
Sample Output: Total number of words starting with letter A’ = 4.

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

A tech number has even number of digits. If the number is split in two equal halves, then the square of sum of these halves is equal to the number itself. Write a program to generate and print all four-digit tech numbers.

Example :
Consider the number 3025
Square of sum of the halves of 3025 = (30+25)2
= (55)2
= 3025 is a tech number.

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

String x[] = {“SAMSUNG”, “NOKIA”, “SONY”, “MICROMAX”, “BLACKBERRY”};

Give the output of the following statements:

  1. System.out.println(x[1]);
  2. System.out.println(x[3].length()); 
[4] String Handling
Chapter: [4] String Handling
Concept: undefined >> undefined

Differentiate between constructor and function.

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

Write the output for the following :

String s= “Today is Test”;
System.out.println(s.indexOf(‘T’)); System.out.println(s.substring(0, 7) + ” ” + “Holiday”);

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

Define Encapsulation.

[8] Encapsulation and Inheritance
Chapter: [8] Encapsulation and Inheritance
Concept: undefined >> undefined

 Define abstraction.

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

What is the function of catch block in exception handling? Where does it appear in a program?

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

State the output when the following program segment is executed:

String a = "Smartphone", b = "Graphic Art"; 
String h = a.substring(2, 5); 
String k = b.substring(S).toUpperCase(); 
System.out.println(h); 
System.out.println(k.equalsignoreCase(h)); 
[4] String Handling
Chapter: [4] String Handling
Concept: undefined >> undefined

Write the output for the following :

System.out.printIn(“Incredible” + “\n” + “world”);

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

If int y = 10 then find int z = (++y * (y++ +5));

[4] String Handling
Chapter: [4] String Handling
Concept: undefined >> undefined
< prev  7801 to 7820 of 19036  next > 
Advertisements
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×