हिंदी

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

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

Please select a subject first

Advertisements
Advertisements
< prev  7721 to 7740 of 19099  next > 

Name any two types of access specifiers.

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

Using switch statement, write a menu-driven program for the following : 

(i) To find and display the sum of the series given below :
S = x1 -x2 + x2 – x4 + x5 – x20 
(where x = 2)
(ii) To display the following series :
1 11 111 1111 11111
For an incorrect option, an appropriate error message should be displayed.

[4] Operators in Java
Chapter: [4] Operators in Java
Concept: undefined >> undefined

Advertisements

Give the output of the following string functions:

  1. "MISSISSIPPI".indexOf('S') + "MISSISSIPPI".lastIndexOf('I')
  2. "CABLE".compareTo("CADET") 
[4] String Handling
Chapter: [4] String Handling
Concept: undefined >> undefined

Give the output of the following Math functions: 

(i) Math.ceil(4.2)
(ii) Math.abs(-4)

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

State the difference between while and do-while loop.

[9] Nested Loop
Chapter: [9] Nested Loop
Concept: undefined >> undefined

Write down java expression for:

`"T" = sqrt("A"^2 + "B"^2 + "C"^2)`

[4] Operators in Java
Chapter: [4] Operators in Java
Concept: undefined >> undefined

Rewrite the following using ternary operator:

if (x%2 == o)
System.out.print(“EVEN”);
else
System.out.print(“ODD”);

[4] Operators in Java
Chapter: [4] Operators in Java
Concept: undefined >> undefined

Convert the following while loop to the corresponding for loop: 

int m = 5, n = 10;
while (n >= 1)
{
System.out.println(m*n);
n--;
}
[9] Nested Loop
Chapter: [9] Nested Loop
Concept: undefined >> undefined
System.out.print("BEST "); 
System.out.println("OF LUCK"); 

Choose the correct option for the output of the above statements. 

[6] Class as the Basis of All Computation (Objects and Classes)
Chapter: [6] Class as the Basis of All Computation (Objects and Classes)
Concept: undefined >> undefined

Analyze the given program segment and answer the following questions:

(i) Write the output of the program segment.
(ii) How many times does the body of the loop gets executed?

for (int m=5; m<=20;m+=5)
{   if(m%3==0)
   break;
else
if(m%5==0)
System.out.println(m);
continue;
}

[9] Nested Loop
Chapter: [9] Nested Loop
Concept: undefined >> undefined

Give the output of the following expression:
a+= a++ + ++a + -- a + a--; when a = 7;

[1] Introduction to Object Oriented Programming Concepts
Chapter: [1] Introduction to Object Oriented Programming Concepts
Concept: undefined >> undefined

Write the return type of the following library functions: 

  1. isLetterOrDigit(char)
  2. replace(char, char) 
[6] Mathematical Library Methods
Chapter: [6] Mathematical Library Methods
Concept: undefined >> undefined

Evaluate the value of n. if value of p = 5, q = 19  
int n = (q – p) > (p – q) ? (q – p) : (p – q) 

[3] Values and Data Types
Chapter: [3] Values and Data Types
Concept: undefined >> undefined

Arrange the following primitive-data types in ascending order of their size:
(i) char (ii) byte (iii) double (iv) int

[3] Values and Data Types
Chapter: [3] Values and Data Types
Concept: undefined >> undefined

Write a Java expression for the following :

`sqrt(3"x"+"x"^2)/"a+b"`

[4] Operators in Java
Chapter: [4] Operators in Java
Concept: undefined >> undefined

What is the value of y after evaluating the expression given below?

y+= ++y + y-- + --y; when int y=8; 

[3] Values and Data Types
Chapter: [3] Values and Data Types
Concept: undefined >> undefined

What are the values of a and b after the following function is executed if the values passed are 30 and 50?

void paws(int a, int b) 
{ a = a + b; 
  b = a - b; 
  a = a - b;' 
System.out.println(a + "," + b); 
} 
[3] Values and Data Types
Chapter: [3] Values and Data Types
Concept: undefined >> undefined

State the data type and value of y after the following is executed: char x = 7; y = Character.isLetter(x); 

[3] Values and Data Types
Chapter: [3] Values and Data Types
Concept: undefined >> undefined

Give the output of the following :

(i) Math.floor (- 4.7)

(ii) Math.ceil(3.4) + Math.pow(2,3)

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

Name the mathematical function which is used to find sine of an angle given in radians.

[6] Mathematical Library Methods
Chapter: [6] Mathematical Library Methods
Concept: undefined >> undefined
< prev  7721 to 7740 of 19099  next > 
Advertisements
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×