हिंदी

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

Advertisements
विषयों
अध्याय
विषयों
मुख्य विषय
अध्याय
Advertisements
Advertisements
Computer Applications
< prev  241 to 259 of 259  next > 

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

Advertisements

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

Identify the literal given below:

0.5

[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

What are the values stored in variables r1 and r2:

(i) double r1=Math.abs(Math.min(-2.83,-5.83));
(ii) double r2=Math.sqrt(Math.floor(16.3)); 

[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

Define a class named ParkingLot with the following description :
Instance variables/data members:
int vno — To store the vehicle number
int hours — To store the number of hours the vehicle is parked in the parking lot
double bill — Tb store the bill amount

Member methods:
void input( ) — To input and store the vno and hours.
void calculate( ) — To compute the parking charge at the rate of Rs.3 for the first hours or part thereof, and Rs. 1.50 for each additional hour or part thereof.
void display ( ) — To display the detail
Write a main method to create an object of the class and call the above methods.

[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

Design n class to overload a function SumSeriesO as follows: 

(i)

void SumSeries(int n, double x) – with one integer argument and one double argument to find and display the sum of the series given below:

`"s"  = "x"/1 - "x"/2 + "x"/3 - "x"/4 + "x"/5`...... ...... ...... to n terms

(ii)

void SumSeries() – To find and display the sum of the following series:
s = 1 + (1 x 2) + (1 x 2 x 3) + ….. + (1 x 2 x 3 x 4 x 20)

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

Identify the statement given below as assignment, increment, method invocation or object creation statement.

System.out.println(“Java”); 

[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

Design a class with the following specifications:

Class name: Student
Member variables: name - name of student
age - age of student
mks - marks obtained
stream - stream allocated
(Declare,the,  variables  using
appropriate data types)

Member methods:

void accept() - Accept name, age and marks using methods of Scanner class.
void allocation() - Allocate the stream as per following criteria:

 

" mks stream
>=300 Science and Computer
>=200 and <300 Commerce and Computer
>=75 and 200 Arts and Animation
<75 Try Again

void print() Display student name, age, mks and stream allocated.

Call all the above methods in main method using an object.

[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

Define a class to overload the function print as follows:

void print() to print the following format
  1 1 1 1
  2 2 2 2
  3 3 3 3
  4 4 4 4
  5 5 5 5
void print(int n) To check whether the number is a lead number. A lead number is one whose sum of even digits is equal to the sum of odd digits.
 

e.g. 3669 odd digits sum = 3 + 9 = 12
                even digits sum = 6 + 6 = 12
3669 is a lead number.

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

Define a class to overload the method display() as follows:

void display(): To print the following format using nested loop.

1 2 1 2 1

1 2 1 2 1

1 2 1 2 1

void display (int n, int m): To print the quotient of the division of m and n if m is greater than n otherwise print the sum of twice n and thrice m. double display (double a, double b, double c) - to print the value of z where

z = p × q

`p=(a+b)/c`    q = a + b + c

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

Method which reverses a given number is ______:

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

Englishहिंदीमराठी


      Forgot password?
Use app×