(Important Questions) ICSE Class X: Important Question Paper of Computer Applications (2010)

Disclaimer: This website is NOT associated with CBSE, for official website of CBSE visit - www.cbse.gov.in

ICSE Class X: Important Question Paper of Computer Applications (2010)

Computer Applications

Q. 1.
    1. What is OOP’s and define its basic concept.
    2. What is a class and how it is declared?
    3. What do you mean by Abstraction and Encapsulation?
    4. Write the difference between Class and Object.
    5. What is class? How are objects related to the class ?

Q. 2.
    1. What are the keywords?Can keyword used as identifier.
    2. Is Java case sensitive ? What is the mean by case sensitive .
    3. What is the function of operator?
    4. What is the difference between throw and throws?
    5. What are instance variable and instance methods

Q. 3.
    1. Write a statement that uses a conditional operator to set grant to 10 if speed is more than 68 and to 0 otherwise
    2. How many times are the loop execute ?
        1. x = 5; y = 50;
        while (x<=y)
        {
        x=y/x;
        }

    2. ints = 0; i = 0;
    while (i++<5)
    s+=i;

Q. 4. Give the output of the following statements
   
1. math.ciel(-28.25)
    2. math.rint(38.96)
    3. Math.floor ( 144.99)
    4. Math.abs ( 3489.45)
    5. Math.max ( Math.min (15, 25), 5)
    6. ( int ) (“scholar”.charAt(2))
    7. “TuTOrIAl”.indexOf(‘l’)
    8. “MISSISSIPPI”.lastindexOf(‘S’)
    9. “kumarvivek”.substring( 3, 4)
    10. 0 Math.sqrt(100);

Q. 5. Design A Class amicable(int,int) with a default constructor, a parameterized constructor and the following two functions :
    1. checkAmicable(int,int) – this function returns true if the two arguments are amicable otherwise it returns false.
    2. main(int,int) – this function invokes the above function and prints whether the parameters passed to it are amicable or not.

Hint : a pair of numbers are amicable if the sum of the factors of one number (excluding itself) is equal to the second number and vice-versa.

Q. 6. Write a program to create 2 one dimensional array having 10 elements each. Merge both the array to array M[].Display the resultant array

Q. 7. Write a function to suppress negative elements of an array to bottom without altering the original sequence i.e. if array contains 5 , -4 , 3 , -2 , 6 , -11 , 12 , -8 , 9 Then the return array will be : 5 , 3 , 6, 12 , 9 , -4 , -2 , -11 , -8

Q. 8. Find value of s , where-
    S= 2+ 3+ 4+ 4+ 6+ 8+ 6+ 9+ 12…..100 terms
    S= 2! -4! +6! -8! …..n

Q. 9. Write a program to input a sentence. Create a function convert(int n), where n is an integer value in positive or negative. This function is used to encode or decode the given string by shifting each character of a string the number of times as specified by user.
    Ex.- Input- Good Boy
    Shift value –3
    Output – Jrrg Erb

Q. 10. Write a program to accept 15 integers from the keyboard, assuming that no integer entered is a zero. perform Selection Sort on the integers and then print them in ascending order.

Contributed By : Ms. ABHA