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

Suggestion Set Class X

The document contains a set of multiple-choice questions and brief answer questions for a Class X Computer Applications subject. It covers various topics in programming, including Java concepts like encapsulation, polymorphism, data types, typecasting, and control structures. Additionally, it includes tasks such as converting conditional statements and explaining programming concepts.

Uploaded by

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

Suggestion Set Class X

The document contains a set of multiple-choice questions and brief answer questions for a Class X Computer Applications subject. It covers various topics in programming, including Java concepts like encapsulation, polymorphism, data types, typecasting, and control structures. Additionally, it includes tasks such as converting conditional statements and explaining programming concepts.

Uploaded by

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

Suggestion Set

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

xx.Given double a = -8.35;


double p = Math.abs(Math.floor(a));
What will be the final value stored in the variable p?
a) 9.0 b) 8.0
c) 7.0 d) 8.5

II. Answer the following questions briefly:


1.Give the output in each case
a) Math.sqrt(-36)
b) Math.pow(Math.abs(-4),3)
2. Predict the output:
If((m==n) && (n!=p))
{
System.out.println(m*n);
System.out.println(n%p);
}
If((m!=n)||(n==p))
{
System.out.println(m+n);
System.out.println(m-n);
}
3. Convert if-else-if to switch case
If(var==1)
System.out.println(“Distinction”);
else if(var==2)
System.out.println(“First Division”);
else if(var==3)
System.out.println(“Second Division”);
Else
System.out.println(“Invalid”);
4. Rewrite in if-else-if from ternary operator:
a) s= (a+b<c || a+c<=b || b+c<=a)?”Triangle is not possible”:”Triangle is
Possible”
b) c= (x>=’A’ && x<=’Z’)? “Uppercase” : “Lowercase”
5. a) int k-5,j=9;
k+=k++-++j+k
b) y += ++y +y -- + --y where y=8
6. Distinguish while and do-while with code snippets
7. int k;
for(k=5;k<=20;k+=7)
if(k%6==0)
continue;
System.out.println(k);
8. Differentiate: a) Instance variables and class variables
b) local variables and global variables
c) private and protected
9. ‘Object is an instance of class’.Explain the statement
10. Explain the significance of ‘this’ keyword.

You might also like