मराठी

(English Medium) ICSE Class 10 - CISCE Important Questions for Computer Applications

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

Define a class to accept a string, convert it into lowercase and check whether the string is a palindrome or not.

A palindrome is a word that reads the same backward as forward.

Example:

madam, racecar etc.

Appears in 1 question paper
Chapter: [4] String Handling
Concept: String Functions

A Identify the type of operator &&:

Appears in 1 question paper
Chapter: [4] Operators in Java
Concept: Types of Operators

The String class method to join two strings is ______.

Appears in 1 question paper
Chapter: [4] String Handling
Concept: String Functions

The output of the function "COMPOSITION". substring(3, 6):

Appears in 1 question paper
Chapter: [4] String Handling
Concept: String Functions

The code obtained after compilation is known as ______.

Appears in 1 question paper
Chapter: [4] Operators in Java
Concept: Introduction of Operators in Java

Write the Java expression for (a + b)x.

Appears in 1 question paper
Chapter: [4] Operators in Java
Concept: Introduction of Operators in Java

Evaluate the expression when the value of x = 4;
x* = - - x + x + + + x

Appears in 1 question paper
Chapter: [4] Operators in Java
Concept: Introduction of Operators in Java

Give the output of the following String class method:

"COMMENCEMENT".lastIndexOf('M')
Appears in 1 question paper
Chapter: [4] String Handling
Concept: String Functions

Give the output of the following String class method:

"devote". compareTo("DEVOTE")
Appears in 1 question paper
Chapter: [4] String Handling
Concept: String Functions

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
Appears in 1 question paper
Chapter: [4] String Handling
Concept: String Functions

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

Appears in 1 question paper
Chapter: [4] String Handling
Concept: String Functions

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

Appears in 1 question paper
Chapter: [4] String Handling
Concept: String Functions

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

Appears in 1 question paper
Chapter: [4] String Handling
Concept: String Functions

Evaluate the expression when x is 4:

x + = x + + * + + x %2; 
Appears in 1 question paper
Chapter: [4] Operators in Java
Concept: Types of Operators

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);
  }
Appears in 1 question paper
Chapter: [4] String Handling
Concept: String Functions

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);;
Appears in 1 question paper
Chapter: [4] String Handling
Concept: String Functions

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));
Appears in 1 question paper
Chapter: [4] String Handling
Concept: String Functions

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

Appears in 1 question paper
Chapter: [5] User - Defined Methods
Concept: Ways of passing values to a function

Give the output of the following:
Math.sqrt(Math.max(9, 16))

Appears in 1 question paper
Chapter: [5] User - Defined Methods
Concept: Invoking a Method

What are the two ways of invoking functions?

Appears in 1 question paper
Chapter: [5] User - Defined Methods
Concept: Side Effects of Call by Reference
< prev  141 to 160 of 259  next > 
Advertisements
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×