English

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

Advertisements
Subjects
Topics
Subjects
Popular subjects
Topics

Please select a subject first

Advertisements
Advertisements
< prev  7701 to 7720 of 19099  next > 

Design a class name ShowRoom with the following description :
Instance variables/ Data members :

String name – To store the name of the customer
long mobno – To store the mobile number of the customer
double cost – To store the cost of the items purchased
double dis – To store the discount amount
double amount – To store the amount to be paid after discount
Member methods: –
ShowRoom() – default constructor to initialize data members
void input() – To input customer name, mobile number, cost
void calculate() – To calculate discount on the cost of purchased items, based on following criteria

Cost Discount (in percentage)
Less than or equal to ₹ 10000 5%
More than ₹ 10000 and less than or equal to ₹ 20000 10%
More than ₹ 20000 and less than or equal to ₹ 35000 15%
More than ₹ 35000 20%

void display() – To display customer name, mobile number, amount to be paid after discount
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

Using the switch-case statement, write a menu driven program to do the following :

(a) To generate and print Letters from A to Z and their Unicode Letters Unicode

(b) Display the following pattern using iteration (looping) statement: 1

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

Advertisements

Name the operators listed below are
(i) <
(ii) + +
(iii) &&
(iv) ? :

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

Write one difference between / and % operator.

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

Give the output of the following program segment and also mention the number of times the loop is executed:

int a,b;
for (a=6, b=4; a< =24; a=a + 6)
{
if (a%b= =0)
break;
}
System, out .println(a);

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

Write the output:
charch= ‘F’;
int m= ch;
m=m+5;
System.out.println(m+ ” ” +ch);

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

Write a Java expression for the following :
ax5 + bx3 + c 

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

What is the value of xl if x=5?
x1 = + +x – X+ + + –x

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

Why is an object called an instance of a class?

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

Name any two OOP’s principles.

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

Convert following do-while loop into for loop.
int i = 1;
int d = 5;
do {
d=d*2;
System.out.println(d);
i+ + ; } while (i< =5);

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

What are identifiers?

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

What are keywords ? Give an example.

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

Analyze the given program segment and answer the following questions : 

for(int i = 3; i <= 4; i++){
    for(int j = 2; j <i; j++){
        System.out.print("");
    }
    System.out.println("WIN");
}

(i) How many times does the inner loop execute ?
(ii) Write the output of the program segment.

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

Name any two library packages.

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

Name the type of error ( syntax, runtime or logical error) in each case given below: 

(i) Math.sqrt (36 – 45)
(ii) int a;b;c;

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

What is the difference between the Scanner class functions next () and nextLine()?

[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

State the difference between == operator and equals () method. 

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

What is the type of casting shown by the following example: 

char c = (char) 120;

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

Write a function prototype of the following: 

A function PosChar which takes a string argument and a character argument and returns an integer value.

[1] Introduction to Object Oriented Programming Concepts
Chapter: [1] Introduction to Object Oriented Programming Concepts
Concept: undefined >> undefined
< prev  7701 to 7720 of 19099  next > 
Advertisements
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×