Suggestion Set Class X
Suggestion Set Class X
CCA-1
Class – X
Subject: Computer Applications
I. Choose the correct options:-
i. The process of restricting the free flow of data from outside world is known as?
a) Encapsulation b) Inheritance
c) Function d) Class
ii. Which of the following is true for Polymorphism?
a) Uses same functions for different operations
b) Uses different functions for same operations
c) It is not a principle of OOP
d) It uses reusability feature?
iii. Which of the following package is needed to find the square root of a number?
a) java.text b) java.math
c) java.lang d) None of these
iv. if (a<b && a<c)
a) a is the greatest number b) a is the smallest number
c) b is the greatest number d) None of these
v. Java is a case sensitive language. Which is the most appropriate statement
with respect to the context?
a) Upper and Lower case letters are distinguished.
b) Upper and Lower case letters are ignored
c) Only lower case letters are distinguished.
d) None of these
vi. The keyword that resolves all conflict between local variable and instance
variables
a) class b) this
c) new d) that
vii. In Procedural Programming, the emphasis is laid on :
a) Data b) function
c) object d) Class
viii. The ____________ loop works as exit-controlled loop.
a) for b) while
c) do-while d) All of these
ix.Which of the following is referred as default access specifier of class?
a) Private b) personal
c) public d) new
x. The __________ is called instance of a class?
a) Attribute b) Object
c) State d) Function
xi. Which of the following is a non-primitive datatype?
a) int b) double
c) char d) String
xii. int x = (int) 32.8
It is an example of ___________ typecasting?
a) Implicit b) automatic
c) explicit d) coercion
xiii. How many bytes does a char data type occupy in the memory?
a) 2 b) 8
c) 4 d) 16
xiv. Given String st = (a>=90)?”Excelkent”:”Best” Predict the output when a=
90?
a) “Best” b) “Excellent” : “Best”
c) “Best” : “Excellent” d) “Excellent”
xv. Given x+= x++ + ++x + --x . Find the value when x=5
a) 23 b) 21
c) 22 d) 24
xvi. The code obtained after compilation of source code is known as:
a) source code b) object code
c) machine code d) Java byte code
xvii. Missing a semi colon in a statement is a ___________ error?
a) Logical b) Syntax
c) Runtime d) No Error
xviii. Which of the following will accept a string by using Scanner class?
a) next() b) next.read()
c) nextString() d) next.char()
xix. The process of combining data and functions that enables them to be
together as a single entity is called?
a) Inheritence b) Encapsulsation
c) Classification d) Attributes