0% found this document useful (0 votes)
51 views4 pages

don bosco sent up computer sec a

Uploaded by

yahijivanhai
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
51 views4 pages

don bosco sent up computer sec a

Uploaded by

yahijivanhai
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

DON, BOSCO ACADEMY, DIGHA, PATNA SEND UP EXAMINATION 2024-2025

SUB: COMPUTER APPLICATION STD:X


F.M: 100 TIME: 2Hrs

This Paper is divided into two Sections.


Attempt all questions from Section A and any four questions from Section B. The intended
marks for. questions or parts of questions are given in brackets.

SECTION A
(Attempt all questions from thịs Section.)

Question 1 [20]

(i) Name the feature of java depicted in the above picture.

(a) Encapsulation (b) Inheritance (c) Abstraction (d) Polymorphism

(ii) The expression which uses >= operator is known as:


(a) Arithmetic (b) Logical (c) Assignment (d) Relational

(iii) Ternary operator is a:


(a) logical operator (b) arithmetic operator (c) relational operator (d) conditional
operator

(iv) When primitive data type is converted to a corresponding object of its class, it is called:
(a)Boxing ( b)Unboxing (c) explicit type conversion (d)implicit type conversion

(v) The number of bytes occupied by byte data is


(a) 2bytes (b)1 byte (c) 4 bytes (d)0 bytes

(vi) The method of Scanner class used to accept a double value is:
(a) nextInt() (b)nextDouble() (c)next() (d)nextInteger()

(vii) Among the following which is a keyword:?


(a)every (b)all (c)case (d)each

(viii) The output of System.out.println(Math.pow(Math.sqrt(144),0)) is:


(a)1.0 (b)11.0 (c)10.0 (d)1

(ix) Name the type of error, if any in the following statement:


System.out.print(Math.sqrt(16-25))
(a)logical (b) runtime (c)syntax (d)no error

(x)Java keyword to distinct instance variable from class variable


(a) public (b)static (c)class (d)none of these

(xi)Find value of d if, double d=18/(1+3) is:


(a)4 (b)4.5 (c)4.0 (d)none

(xii)Which of the following is the wrapper class for the data type char?
(a) String (b)Character (c)Char (d)Float

(xiii)Name the package that contains wrapper classes:


(a) java.lang (b)java.util (c)java.io (d)java.awt

(xiv)Function overloading follows which principle of Object Oriented programming?


(a) lnheritance (b) Polymorphism (c) Abstraction (d) Encapsulation

(xv)Which of the following is a valid integer constant:

1. 4 2. 4.0 3. 4.3f 4. “four”


(a) only 1 (b)1 and 3 (c)2 and 4 (d)1 and 2
(xvi) In which techniquc are the values of actual paramcters copied to the fomal paramcters?
(a)call by reference (b) call by argument (c) Call by method (d) Call by value

(xvii)Assertion(A): In java statements written in lower case letter or upper case letter arc
treated as the same
Rcason(R): Java is a case scnsitive language.

(a) Both Assertion (A) and Reason (R) are true and Reason (R)is a correct explanation
(b) Both Asscrtion (A) and Reason (R) are true and Reason (R) is not a correct explanation
of Assertion(A )
(c) Assertion (A) is true and Reason (R) is false
(d)Assertion (A) is false and Reason (R) is true

Xviii ) Read the following text, and chose 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 encapsulatc?

(a)information and operation (b)data members and member methods (c)data


members and information
(d)member methods and operation

(xix)The keyword indicates that function does not return any value.
(a) Void (b)this (c)public (d)none of the above

(xx) Which operator will execute first ?


a+b%c*d-e
(a) + (b)% (c)* (d)-

Question 2

(i) Write the Java expression for |-13 (p+q)^2|/2ab


(ii) Evaluate the expression when the value for x=2:
x+ = x ++ + ++x /--x
(iii)How many times will the following loop execute? What will be the output ?

int x2;int y=50;


do
{
++x; y/=x++;
}while(y>0)
System.out.println(x*y);

(iv)Rewrite the following using for loop:


int x10,y20;
while (x<y)
{
++x;
System.out.println(x);
y--;
}

(v) Name any two jump statements.


(vi)Name the keyword used by a class to inherit data of other class
(vii)Write 2 differences between if else and switch case
(viii) Explain formal and actual parameters with example.
(ix) Differentiate between = and == operator.
(x) Define class and an object.

You might also like