Skip to content

Question bank

Every question, by chapter, year, marks and type.

15 questions

  • Specimen question

    20] Choose the correct answers to the questions from the given options. (Do not copy the question, write the correct answers only.) (i) Name the feature of java depicted in the above picture. (a) Encapsulation (b) Inheritance (c) Abstraction (d) Polymorphism
    Assertion(A): In java statements written in lower case letter or upper case letter
    are treated as the same.
    Reason(R): Java is a case sensitive language.

    Class 10 Computer ApplicationsMCQ

    No answer yet
  • Specimen question

    20] Choose the correct answers to the questions from the given options. (Do not copy the question, write the correct answers only.) (i) Name the feature of java depicted in the above picture.

    1. (a)Encapsulation
    2. (b)Inheritance
    3. (c)Abstraction
    4. (d)Polymorphism
      Ternary operator is a:

    Class 10 Computer ApplicationsMCQ

    No answer yet
  • Specimen question

    20] Choose the correct answers to the questions from the given options. (Do not copy the question, write the correct answers only.) (i) Name the feature of java depicted in the above picture. (a) Encapsulation (b) Inheritance (c) Abstraction (d) Polymorphism
    Assertion(A): call by value is known as pure method
    Reason(R): The original value of variable does not change as operation is
    performed on copied values.

    Class 10 Computer ApplicationsMCQ

    No answer yet
  • Specimen question

    20] Choose the correct answers to the questions from the given options. (Do not copy the question, write the correct answers only.) (i) Name the feature of java depicted in the above picture.

    1. (a)Encapsulation
    2. (b)Inheritance
    3. (c)Abstraction
    4. (d)Polymorphism
      The number of bytes occupied by a character array of 10 elements.

    Class 10 Computer ApplicationsMCQ

    No answer yet
  • Specimen question

    2 marks

    When there is no explicit initialization, what are the default values set for
    variables in the following cases?

    1. (a)

      Integer variable

    2. (b)

      String variable

    Class 10 Computer ApplicationsShort answer

    No answer yet
  • Specimen question

    2 marks

    Write the output of the following String methods:

    1. (a)

      "ARTIFICIAL ".indexOf('I' )

    2. (b)

      “DOG and PUPPY”. trim().length()

    Class 10 Computer ApplicationsShort answer

    No answer yet
  • Specimen question

    2 marks

    Write the Java expression for (p + q)2

    Class 10 Computer ApplicationsShort answer

    No answer yet
  • Specimen question

    2 marks

    Sam executes the following program segment and the answer displayed is zero
    irrespective of any non zero values are given. Name the error. How the program
    can be modified to get the correct answer?
    void triangle(double b, double h)
    { double a;
    a = ½ * b * h;
    System.out.println(“Area=”+a); }

    Class 10 Computer ApplicationsShort answer

    No answer yet
  • Specimen question

    2 marks

    The following code segment should print “You can go out” if you have done
    your homework (dh) and cleaned your room(cr). However, the code has errors.
    Fix the code so that it compiles and runs correctly.
    boolean dh = True;
    boolean cr= true;
    if (dh && cr)
    System.out.println("You cannot go out");
    else
    System.out.println("You can go out");

    Class 10 Computer ApplicationsShort answer

    No answer yet
  • Specimen question

    20] Choose the correct answers to the questions from the given options. (Do not copy the question, write the correct answers only.) (i) Name the feature of java depicted in the above picture. (a) Encapsulation (b) Inheritance (c) Abstraction (d) Polymorphism
    Read the following text, and choose the correct answer:
    A class encapsulate Data Members that contains the information necessary to
    represent the class and Member methods that perform operations on the data
    member.
    What does a class encapsulate?

    Class 10 Computer ApplicationsMCQ

    No answer yet
  • Specimen question

    20] Choose the correct answers to the questions from the given options. (Do not copy the question, write the correct answers only.) (i) Name the feature of java depicted in the above picture.

    1. (a)Encapsulation
    2. (b)Inheritance
    3. (c)Abstraction
    4. (d)Polymorphism
      When primitive data type is converted to a corresponding object of its class, it
      is called:

    Class 10 Computer ApplicationsMCQ

    No answer yet
  • Specimen question

    2 marks

    int P [ ]={ 12,14,16,18}; int Q[ ]={ 20,22,24};
    Place all elements of P array and Q array in the array R one after the other.

    1. (a)

      What will be the size of array R [ ] ?

    2. (b)

      Write index position of first and last element?
      (Answer any four questions from this Section.)
      The answers in this section should consist of the programs in either BlueJ environment or any
      program environment with java as the base.
      Each program should be written using variable description / mnemonic codes so that the logic of the
      program is clearly depicted.
      Flowcharts and algorithms are not required.

    Class 10 Computer ApplicationsShort answer

    No answer yet
  • Specimen question

    20] Choose the correct answers to the questions from the given options. (Do not copy the question, write the correct answers only.) (i) Name the feature of java depicted in the above picture.

    1. (a)Encapsulation
    2. (b)Inheritance
    3. (c)Abstraction
    4. (d)Polymorphism
      Which of the following is a valid Integer constant:
      1. 4
      2. 4.0
      3. 4.3f
      4. “four”

    Class 10 Computer ApplicationsMCQ

    No answer yet
  • Specimen question

    20] Choose the correct answers to the questions from the given options. (Do not copy the question, write the correct answers only.) (i) Name the feature of java depicted in the above picture.

    1. (a)Encapsulation
    2. (b)Inheritance
    3. (c)Abstraction
    4. (d)Polymorphism
      Name the package that contains wrapper classes:

    Class 10 Computer ApplicationsMCQ

    No answer yet
  • Specimen question

    2 marks

    Evaluate the expression when the value of x = 2:
    x = x ++ + ++ x + x

    Class 10 Computer ApplicationsNumerical

    No answer yet