हिंदी

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

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

Please select a subject first

Advertisements
Advertisements
< prev  7921 to 7940 of 21419  next > 

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

Advertisements

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

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

(i) void Joystring (String s, char ch1 char ch2) with one string argument and two character arguments that replaces the character argument ch1 with the character argument ch2 in the given string s and prints the new string.
Example:
Input value of s = “TECHNALAGY”
ch1=‘A’,
ch2=‘O’
Output: TECHNOLOGY
(ii) void Joystring (String s) with one string argument that prints the position of the first space and the last space of the given string s.
Example:
Input value of = “Cloud computing means Internet based computing”
Output: First index: 5
Last index: 36
(iii) void Joystring (String s1, String s2) with two string arguments that combines the two string with a space between them and prints the resultant string. Example :
Input value of s1 =“COMMON WEALTH”
Input value of s2 =“GAMES”
Output: COMMON WEALTH GAMES
(use library functions)

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

State the output of the following program segment:
String str1 = “great”; String str2 = “minds”;
System.out.println (str1.substring (0,2).concat(str2.substring (1)));
System.out.println ((“WH”+(str1.substring (2).toUpperCase())));

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

Rewrite the following program segment using if-else statements instead of the ternary operator: 
String grade = (mark >= 90) ? “A” : (mark >= 80) ? “B” : “C”;

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

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

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
< prev  7921 to 7940 of 21419  next > 
Advertisements
Advertisements
CISCE (English Medium) ICSE Class 10 Question Bank Solutions
Question Bank Solutions for CISCE (English Medium) ICSE Class 10 Biology
Question Bank Solutions for CISCE (English Medium) ICSE Class 10 Chemistry
Question Bank Solutions for CISCE (English Medium) ICSE Class 10 Commercial Applications
Question Bank Solutions for CISCE (English Medium) ICSE Class 10 Commercial Studies
Question Bank Solutions for CISCE (English Medium) ICSE Class 10 Computer Applications
Question Bank Solutions for CISCE (English Medium) ICSE Class 10 Economic Applications
Question Bank Solutions for CISCE (English Medium) ICSE Class 10 Economics
Question Bank Solutions for CISCE (English Medium) ICSE Class 10 English 1 (English Language)
Question Bank Solutions for CISCE (English Medium) ICSE Class 10 English 2 (Literature in English)
Question Bank Solutions for CISCE (English Medium) ICSE Class 10 Environmental Applications
Question Bank Solutions for CISCE (English Medium) ICSE Class 10 Environmental Science
Question Bank Solutions for CISCE (English Medium) ICSE Class 10 Geography
Question Bank Solutions for CISCE (English Medium) ICSE Class 10 Hindi
Question Bank Solutions for CISCE (English Medium) ICSE Class 10 History and Civics
Question Bank Solutions for CISCE (English Medium) ICSE Class 10 Home Science
Question Bank Solutions for CISCE (English Medium) ICSE Class 10 Mathematics
Question Bank Solutions for CISCE (English Medium) ICSE Class 10 Physical Education
Question Bank Solutions for CISCE (English Medium) ICSE Class 10 Physics
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×