मराठी

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

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

Please select a subject first

Advertisements
Advertisements
< prev  7781 to 7800 of 19036  next > 

Write a program to initialize the seven Wonders of the World along with their locations in two different arrays. Search for the name of the country input by the user. If found, display the name of the country along with its Wonder, otherwise display “Sorry Not Found!”. 
Seven wonders — CHICHEN ITZA, CHRIST THE REDEEMER, TAJMAHAL, GREAT WALL OF CHINA, MACHU PICCHU, PETRA, COLOSSEUM
Locations — MEXICO, BRAZIL, INDIA, CHINA, PERU, JORDAN, ITALY
Example —

Country Name: INDIA     Output: INDIA-TAJMAHAL
Country Name: USA        Output: Sorry Not Found!

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

Give the output of the following string methods.

"MISSISSIPPI".indexOf('S') + "MISSISSIPPI".lastIndexOf('I')

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

Advertisements

Define a class to accept two strings, convert them into uppercase, check and display whether two strings are equal or not, if the two strings are not equal, print the string with the highest length or print the message both the strings are of equal length.

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

Define a class to accept a string, convert it into lowercase and check whether the string is a palindrome or not.

A palindrome is a word that reads the same backward as forward.

Example:

madam, racecar etc.

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

The keyword used to call package in the program:

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

State the type of loop in the given program segment

for (int i = 5;i! = 0; i = 2)

System.out.println(i);

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

The String class method to join two strings is ______.

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

The output of the function "COMPOSITION". substring(3, 6):

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

Give the output of the following String class method:

"COMMENCEMENT".lastIndexOf('M')
[4] String Handling
Chapter: [4] String Handling
Concept: undefined >> undefined

Give the output of the following String class method:

"devote". compareTo("DEVOTE")
[4] String Handling
Chapter: [4] String Handling
Concept: undefined >> undefined

Define a class to accept a String and print the number of digits, alphabets and special characters in the string.

Example: S = "KAPILDEV@83"
Output: Number of digits - 2 '
Number of Alphabets - 8
Number of Special characters - 1
[4] String Handling
Chapter: [4] String Handling
Concept: undefined >> undefined

int x = 98; char ch = (char)x; what is the value in ch?

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

The output of the statement "CONCENTRATION" indexOf('T') is ______.

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

The output of the statement "talent". compareTo("genius") is ______.

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

Which of the following are entry-controlled loops?

  1. for
  2. while
  3. do..while
  4. switch
[8] Iterative Constructs in Java
Chapter: [8] Iterative Constructs in Java
Concept: undefined >> undefined

Consider the above picture and choose the correct statement from the following:

[2] Elementary Concept of Objects and Classes
Chapter: [2] Elementary Concept of Objects and Classes
Concept: undefined >> undefined

Write Java expression for:

`(|a + b|)/(sqrt(a^2 + b^2))`

[6] Mathematical Library Methods
Chapter: [6] Mathematical Library Methods
Concept: undefined >> undefined

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);
[9] Nested Loop
Chapter: [9] Nested Loop
Concept: undefined >> undefined

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);
  }
[4] String Handling
Chapter: [4] String Handling
Concept: undefined >> undefined

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
[5.2] Input in Java
Chapter: [5.2] Input in Java
Concept: undefined >> undefined
< prev  7781 to 7800 of 19036  next > 
Advertisements
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×