मराठी

(English Medium) ICSE Class 10 - CISCE Important Questions

Advertisements
[object Object]
[object Object]
विषय
मुख्य विषय
अध्याय

Please select a subject first

Advertisements
Advertisements
< prev  1521 to 1540 of 4320  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);
}
Appears in 1 question paper
Chapter: [4] String Handling
Concept: StringBuffer Functions

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)); 

Appears in 1 question paper
Chapter: [4] String Handling
Concept: StringBuffer Functions

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.

Appears in 1 question paper
Chapter: [4] String Handling
Concept: StringBuffer Functions

Give the output of the following string methods.

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

Appears in 1 question paper
Chapter: [4] String Handling
Concept: String Functions

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.

Appears in 1 question paper
Chapter: [4] String Handling
Concept: String Functions

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.

Appears in 1 question paper
Chapter: [4] String Handling
Concept: String Functions

A Identify the type of operator &&:

Appears in 1 question paper
Chapter: [4] Operators in Java
Concept: Types of Operators

The String class method to join two strings is ______.

Appears in 1 question paper
Chapter: [4] String Handling
Concept: String Functions

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

Appears in 1 question paper
Chapter: [4] String Handling
Concept: String Functions

The code obtained after compilation is known as ______.

Appears in 1 question paper
Chapter: [4] Operators in Java
Concept: Introduction of Operators in Java

Write the Java expression for (a + b)x.

Appears in 1 question paper
Chapter: [4] Operators in Java
Concept: Introduction of Operators in Java

Evaluate the expression when the value of x = 4;
x* = - - x + x + + + x

Appears in 1 question paper
Chapter: [4] Operators in Java
Concept: Introduction of Operators in Java

Give the output of the following String class method:

"COMMENCEMENT".lastIndexOf('M')
Appears in 1 question paper
Chapter: [4] String Handling
Concept: String Functions

Give the output of the following String class method:

"devote". compareTo("DEVOTE")
Appears in 1 question paper
Chapter: [4] String Handling
Concept: String Functions

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
Appears in 1 question paper
Chapter: [4] String Handling
Concept: String Functions

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

Appears in 1 question paper
Chapter: [4] String Handling
Concept: String Functions

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

Appears in 1 question paper
Chapter: [4] String Handling
Concept: String Functions

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

Appears in 1 question paper
Chapter: [4] String Handling
Concept: String Functions

Evaluate the expression when x is 4:

x + = x + + * + + x %2; 
Appears in 1 question paper
Chapter: [4] Operators in Java
Concept: Types of Operators

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);
  }
Appears in 1 question paper
Chapter: [4] String Handling
Concept: String Functions
< prev  1521 to 1540 of 4320  next > 
Advertisements
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×