हिंदी

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

Advertisements
[object Object]
[object Object]
विषयों
मुख्य विषय
अध्याय
Advertisements
Advertisements
Computer Applications
< prev  181 to 200 of 259  next > 

Name the two types of constructors.

[7] Constructors
Chapter: [7] Constructors
Concept: undefined >> undefined

Write the output of the following program code:

char ch ;
int x=97;
do
{
ch=(char) x;
System.out.print(ch + “ ” );
if(x%10 == 0)
break;
++x;
}while(x<=100);

[7] Constructors
Chapter: [7] Constructors
Concept: undefined >> undefined

Advertisements

Write a program to accept a number and check and display whether it is a Niven number or not. 
(Niven number is that number which is divisible by its sum of digits).
Example:
Consider the number 126.
The Sum of its digits is 1+2+6 = 9 and 126 is divisible by 9.

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

Write a program to accept a name and total marks of N number of students in two single subscript array name[] and totalmarks[].

Calculate and print:

  1. The average of the total marks obtained by N Number of students.
    [average = (sum of total marks of all the students)/N]
  2. Deviation of each student’s total marks with the average
    [deviation = total marks of a student – average] 
[3] Arrays (Single Dimensional and Double Dimensional)
Chapter: [3] Arrays (Single Dimensional and Double Dimensional)
Concept: undefined >> undefined

Using the switch statement, write a menu driven program to:
(i) To find and display all the factors of a number input by the user (including 1 and excluding number itself).

Example:
Sample Input: n=15
Sample Output: 1, 3, 5.
(ii) To find and display the factorial of a number input by the user (the factorial of a non-negative integer n, denoted by n\ is the product of all integers less than or equal to n.
Example:
Sample Input: n=5
Sample Output: 5! = 1×2×3×4×5 = 120.
For an incorrect choice, an appropriate error message should be displayed.

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

State one difference between the floating point literals float and double.

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

Find the errors in the given program segment and re-write the statements correctly to assign values to an integer array.
int a = new int (5);
for (int i = 0; i < = 5; i++) a [i] = i;

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

What is the data type returned by the library function?
compareTo()

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

What will be the output when the following code segment is  executed?
String s = “1001”;
int x = Integer. valueOf(s);
double y = Double.valueOf(s);
System.out.println(“x=”+x);
System.out.println(“y=”+y); 

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

What will be the output when the following code segment is executed?

System.out.println(“The king said\”Begin at the beginning!\“to me.”);

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

Design a class to overload a function area( ) as follows:
(i) double area (double a, double b, double c) with three double arguments, returns the area of a scalene triangle using the formula:

area = `sqrt ("s" ("s" - "a")("s" - "b")("s" - "c"))  "2ab"`

where `"s" = ("a" + "b" + "c")/2`

(ii) double area (int a, int b, int height) with three integer arguments, returns the area of a trapezium using the formula:

area = `1/2` height (a+b)

(iii) double area (double diagonal 1, double diagonal 2) with two double arguments, returns the area of a rhombus using the formula :

area = `1/2` (diagonal 1 × diagonal 2)

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

Give the output of the following code.

String A = "26.0", B= "74.0";

double C = Double.parseDouble(A);

double D = Double.parseDouble(B);

System.out.println((C+D));

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

A mechanism where one class acquires the properties of another class:

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

Predict the output of the following code snippet: String P = "20", Q = "22";

int a = Integer.parseInt(P);

int b = Integer.value0f(Q);

System.out.println(a + " " + b);

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

Give the output of the following Character class method:

Character.toUpperCase('a')
[2] Library Classes
Chapter: [2] Library Classes
Concept: undefined >> undefined

Give the output of the following Character class method:

Character.isLetterOrDigit('W')
[2] Library Classes
Chapter: [2] Library Classes
Concept: undefined >> undefined

Consider the given array and answer the question given below:

int x[ ] {4; 7,9,66,72,0,16);

What is the length of the array?

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

Consider the given array and answer the question given below:

int x[ ] {4; 7,9,66,72,0,16);

What is the value in x[4]?

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

Write the value of n after execution:

char ch = 'd';
int n = ch + 5;
[2] Library Classes
Chapter: [2] Library Classes
Concept: undefined >> undefined

Define a class to accept 10 characters from a user. Using bubble sort technique arrange them in ascending order. Display the sorted array and original array.

[3] Arrays (Single Dimensional and Double Dimensional)
Chapter: [3] Arrays (Single Dimensional and Double Dimensional)
Concept: undefined >> undefined
< prev  181 to 200 of 259  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×