English

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

Advertisements
Subjects
Topics
Subjects
Popular subjects
Topics
Advertisements
Advertisements
Computer Applications
< prev  21 to 40 of 259  next > 

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

Advertisements

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

Name any two types of access specifiers.

[8] Encapsulation and Inheritance
Chapter: [8] Encapsulation and Inheritance
Concept: undefined >> undefined

Using switch statement, write a menu-driven program for the following : 

(i) To find and display the sum of the series given below :
S = x1 -x2 + x2 – x4 + x5 – x20 
(where x = 2)
(ii) To display the following series :
1 11 111 1111 11111
For an incorrect option, an appropriate error message should be displayed.

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

Give the output of the following string functions:

  1. "MISSISSIPPI".indexOf('S') + "MISSISSIPPI".lastIndexOf('I')
  2. "CABLE".compareTo("CADET") 
[4] String Handling
Chapter: [4] String Handling
Concept: undefined >> undefined

Give the output of the following Math functions: 

(i) Math.ceil(4.2)
(ii) Math.abs(-4)

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

State the difference between while and do-while loop.

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

Write down java expression for:

`"T" = sqrt("A"^2 + "B"^2 + "C"^2)`

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

Rewrite the following using ternary operator:

if (x%2 == o)
System.out.print(“EVEN”);
else
System.out.print(“ODD”);

[4] Operators in Java
Chapter: [4] Operators in Java
Concept: undefined >> undefined
< prev  21 to 40 of 259  next > 
Advertisements
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×