हिंदी

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

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

Define a class to accept a String and print the number of digits, alphabets and special characters in the string.

Example: S = "KAPILDEV@83"
Output: Number of digits - 2 '
Number of Alphabets - 8
Number of Special characters - 1
[4] String Handling
Chapter: [4] String Handling
Concept: undefined >> undefined

int x = 98; char ch = (char)x; what is the value in ch?

[4] String Handling
Chapter: [4] String Handling
Concept: undefined >> undefined

Advertisements

The output of the statement "CONCENTRATION" indexOf('T') is ______.

[4] String Handling
Chapter: [4] String Handling
Concept: undefined >> undefined

The output of the statement "talent". compareTo("genius") is ______.

[4] String Handling
Chapter: [4] String Handling
Concept: undefined >> undefined

Which of the following are entry-controlled loops?

  1. for
  2. while
  3. do..while
  4. switch
[8] Iterative Constructs in Java
Chapter: [8] Iterative Constructs in Java
Concept: undefined >> undefined

Consider the above picture and choose the correct statement from the following:

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

Write Java expression for:

`(|a + b|)/(sqrt(a^2 + b^2))`

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

Give the output of the following program segment. How many times is the loop executed?

for(x=10;x>20;x++)
System.out.println(x);
System.out.println(x*2);
[9] Nested Loop
Chapter: [9] Nested Loop
Concept: undefined >> undefined

The following code to compare two strings is compiled, the following syntax error was displayed - incompatible types - int cannot be converted to boolean.

Identify the statement which has the error and write the correct statement. Give the output of the program segment.

void calculate()
  {
  String a="KING",b="KINGDOM";
  boolean x=a.compareTo(b);
  system.out.println(x);
  }
[4] String Handling
Chapter: [4] String Handling
Concept: undefined >> undefined

DTDC, a courier company, charges for the courier based on the weight of the parcel. Define a class with the following specifications:

class name: courier
Member variables: name - name of the customer
  weight - weight of the parcel in kilograms
address - address of the recipient
bill - amount to be paid
type -  'D'- domestic, 'I'- international
Member methods:
void accept ( )- to accept the details using the methods of the Scanner class only.
void calculate ( )- to calculate the bill as per the following criteria:
  Weight in Kgs   Rate per Kg
First 5 Kgs Rs.800
Next 5 Kgs  Rs.700
Above 10 Kgs  Rs.500
An additional amount of Rs.1500 is charged if the type of the courier is I (International)
void print )- To print the details
void main ()- to create an object of the class and invoke the methods
[5.2] Input in Java
Chapter: [5.2] Input in Java
Concept: undefined >> undefined

Define a class to accept a number from user and check if it is an EvenPal number or not. (The number is said to be EvenPal number when number is palindrome number (a number is palindrome if it is equal to its reverse) and sum of its digits is an even number.)

Example: 121 - is a palindrome number

Sum of the digits - 1 + 2 + 1 = 4 which is an even number

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

Define a class to accept values into an integer array of order 4 x 4 and check whether it is a DIAGONAL array or not An array is DIAGONAL if the sum of the left diagonal elements equals the sum of the right diagonal elements. Print the appropriate message.

Example:

3 4 2 5   Sum of the left diagonal elements =

2 5 2 3   3 + 5 + 2 + 1 = 11

5 3 2 7   Sum of the right diagonal elements =

1 3 7 1   5 + 2 + 3 + 1 = 11

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

Define a class to accept the gmail id and check for its validity.

A gmail id is valid only if it has:

→ @

→ . (dot)

→ gmail

→ com

Example: [email protected] is a valid gmail id.

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

Consider the array given below:

char ch[]={'A','E','I','O','U'};

Write the output of the following statements:

System.out.println(ch[0]*2);;
[4] String Handling
Chapter: [4] String Handling
Concept: undefined >> undefined

To execute a loop 10 times, which of the following is correct?

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

How many times will the following loop execute? Write the output of the code:

int x=10;
while(true) {
System.out.println(x++*2);
if(x%3==0)
break;
}
[8] Iterative Constructs in Java
Chapter: [8] Iterative Constructs in Java
Concept: undefined >> undefined

Write the output of the following String methods:

String x="Galaxy",y="Games";
(a)  System.out.println(x.charAt(0)==y.charAt(0));
(b)  System.out.println(x.compareTo(y));
[4] String Handling
Chapter: [4] String Handling
Concept: undefined >> undefined

Write the output for the following :

String s1 = “phoenix”; String s2 =”island”;

System.out.prindn (s1.substring(0).concat (s2.substring(2)));

System.out.println(s2.toUpperCase( ));

[4] String Handling
Chapter: [4] String Handling
Concept: undefined >> undefined

String x[ ] = {“Artificial intelligence”, “IOT”, “Machine learning”, “Big data”};
Give the output of the following statements:

(i) System.out.prindn(x[3]);
(ii) System.out.prindn(x.length);

[4] String Handling
Chapter: [4] String Handling
Concept: undefined >> undefined

Write a program to input a sentence and convert it into uppercase and count and display the total number of words starting with a letter ‘A’.

Example:
Sample Input: ADVANCEMENT AND APPLICATION OF INFORMATION TECHNOLOGY ARE EVER CHANGING.
Sample Output: Total number of words starting with letter A’ = 4.

[4] String Handling
Chapter: [4] String Handling
Concept: undefined >> undefined
< prev  121 to 140 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×