हिंदी

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

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

Please select a subject first

Advertisements
Advertisements
< prev  7901 to 7920 of 19036  next > 

Define a class with the following specifications:

Class name: Bank

Member variables:

double p - stores the principal amount

double n - stores the time period in years

double r - stores the rate of interest

double a - stores the amount

member methods:

void accept () - input values for p and n using Scanner class methods only.

void calculate () - calculate the amount based on the following conditions:

Time in (Year) Rate %
Upto `1/2` 9
>`1/2` to 1 year 10
> 1 to 3 year 11
> 3year 12

`a = p (1+r/100)^n`

void display () - display the details in the given format.

Principal Time Rate Amount
xxx xxx xxx  xxx

Write the main method to create an object and call the above methods.

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

State a difference between call by value and call by reference. 

[5] User - Defined Methods
Chapter: [5] User - Defined Methods
Concept: undefined >> undefined

Advertisements

Missing a semicolon in a statement is what type of error?

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

The number of bits occupied by the value ‘a’ are:

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

When an object of a Wrapper class is converted to its corresponding primitive data type, it is called as ______.

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

The number of bytes occupied by a character array of four rows and three columns is ______.

[3] Arrays (Single Dimensional and Double Dimensional)
Chapter: [3] Arrays (Single Dimensional and Double Dimensional)
Concept: undefined >> undefined

Consider the following two-dimensional array and answer the questions given below:

int x[ ][] = {{4,3,2}, {7,8,2}, {8,3,10}, {1,2,9}};
  1. What is the order of the array?
  2. What is the value of x [0] [0] + x [2] [2]?
[3] Arrays (Single Dimensional and Double Dimensional)
Chapter: [3] Arrays (Single Dimensional and Double Dimensional)
Concept: undefined >> undefined

Differentiate between boxing and unboxing.

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

Primitive data types are built in data types which are a part of the wrapper classes. These wrapper classes are encapsulated in the java.lang package. Non primitive datatypes like Scanner class are a part of the utility package for which an object needs to be created.

  1. To which package the Character and Boolean classes belong?
  2. Write the statement to access the Scanner class in the program.
[3] Values and Data Types
Chapter: [3] Values and Data Types
Concept: undefined >> undefined

The statement that brings the control back to the calling method is ______.

[5] User - Defined Methods
Chapter: [5] User - Defined Methods
Concept: undefined >> undefined

Consider the following program segment and answer the questions given below:

int x[][]={{2,4,5,6}, {5,7,8,1}, {34,2,10,9}};
  1. What is the position of 34?
  2. What is the result of x[2][3] + x[1][2]?
[3] Arrays (Single Dimensional and Double Dimensional)
Chapter: [3] Arrays (Single Dimensional and Double Dimensional)
Concept: undefined >> undefined

Define a class to accept values into a 4 × 4 array and find and display the sum of each row.

Example:

A[][]={1,2,3,4),{5,6,7,8},{1,3,5,7},{2,5,3,1}}

Output:

sum of row 1=10 (1+2+3+4)

sum of row 2=26 (5+6+7+8)

sum of row 3=16 (1+3+5+7)

sum of row 4=11 (2+5+3+1)

[3] Arrays (Single Dimensional and Double Dimensional)
Chapter: [3] Arrays (Single Dimensional and Double Dimensional)
Concept: undefined >> undefined

What are the two ways of invoking functions?

[5] User - Defined Methods
Chapter: [5] User - Defined Methods
Concept: undefined >> undefined

Differentiate between formal parameter and actual parameter. 

[5] User - Defined Methods
Chapter: [5] User - Defined Methods
Concept: undefined >> undefined

How are private members of a class different from public members?

[5] User - Defined Methods
Chapter: [5] User - Defined Methods
Concept: undefined >> undefined

Write a menu-driven program to display the pattern as per the user’s choice. 

For an incorrect option, an appropriate error message should be displayed.

[5] User - Defined Methods
Chapter: [5] User - Defined Methods
Concept: undefined >> undefined

int x = (int) 32.8; is an example of ______ typecasting.

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

Method which is a part of a class rather than an instance of the class is termed as ______.

[5] User - Defined Methods
Chapter: [5] User - Defined Methods
Concept: undefined >> undefined

Invoking a method by passing the objects of a class is termed as ______.

[5] User - Defined Methods
Chapter: [5] User - Defined Methods
Concept: undefined >> undefined

Assertion (A): Static method can access static and instance variables.

Reason (R): Static variables can be accessed only by static method.

[5] User - Defined Methods
Chapter: [5] User - Defined Methods
Concept: undefined >> undefined
< prev  7901 to 7920 of 19036  next > 
Advertisements
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×