Part-A: Guess Paper Class - X Subject - Computer Applications

Download as pdf or txt
Download as pdf or txt
You are on page 1of 3

http://www.icseguess.

com/

Guess Paper
Class – X
Subject – Computer Applications
F.M-100 Time- 2 Hrs

(Part A contains 40 marks and part B contains 60 marks. You have to answer any 4 questions from
the total given Questions in PART- B)
PART-A
1 a)? : is called ternary Operator- Explain with example. (2 * 5=10)
b) Convert float value to Integer value using Wrapper Class.
c) Employee e=new Employee (40); State how many constructors are there in the “Employee”
class and how they are working in the class.
d) What is the use of “finally” block in exception handling in java program?
e) Explain polymorphism with example.

2 a) State difference between “=” and “==” with example. (2 * 5=10)


b) “toUpperCase() returns String value and isUpperCase() returns Boolean value”- Justify the
statement.
c) How can we separate the local variable and class variable having the same name?
d) Write the Expression in Java- +
e) Explain the term WORS with example.

3 a) int a=10, b=20; c=a++ * ++b; d=++c%a++*c--/b++; System.out.println (“a: “+a+”b:


“+b+”c:”+c+”d: “+d); [4]
b) Find the value of: [2]
i) (187)10 & (91)10
ii) (219)10 ^ (189)10
c) String s=”DOEACC SOCIETY”;
[1+1+2]
i) System.out.println (s.length()-s.indexOf(‘C’));
ii) System.out.println (s.substring(3,7));
iii) System.out.println (s.charAt(2)+s.charAt(11)+s.replace(‘E’,’f’));
4. a)Write the function star(int n), where n is the numbers of lines printed: [4]
1
22
www.icseguess.com
Other Educational Portals
www.cbseguess.com | www.ignouguess.com | www.aipmtguess.com | www.aieee.com | www.niosguess.com |
www.iitguess.com
http://www.icseguess.com/

333
………….
b) What is the difference and similarity between overloading and over-riding [2]
c) What is the use of trim () function of String class. [2 +2]

What is the length of the given


string STR=”We are all learning java”
Using trim () and not using trim ().

Part-B (4 *15=60)
(Answer any 4 questions)
5. Write a menu- driven program to find:
i) Check whether a number is Armstrong Number or not.
ii) 1+1+3/6+4/24+……. n terms.
iii) Check a number is Palindrome or not.
The choice is given by the user.

6. Write a program to take


Input: “We are going to Delhi by Rajdhani Express.”
Output: “We are going to New Delhi by R.Express”.
7. Write a program to create a class “Student” which contains:
Class variables:
i) String name- Name of the student
ii) int physicsmarks- marks of Physics
iii) int mathmarks- marks of Mathematics
iv) int chemistrymarks- marks of chemistry
Class Methods
i) Parameterized constructor- receives the name of the student and the marks of 3
subjects
ii) Void check()- checks the grade of the student
iii) Void display()- display the student name, marks of 3 subjects and their grade.
Grade:
i) >90 – 100% -A
ii) >=75 - <=90% - B
www.icseguess.com
Other Educational Portals
www.cbseguess.com | www.ignouguess.com | www.aipmtguess.com | www.aieee.com | www.niosguess.com |
www.iitguess.com
http://www.icseguess.com/

iii) >=60 -<=74 – C


iv) >=50 - <60 – D
v) >=34 - <50 – E
vi) <34- FAIL

8. Write a program to print the following output:


1
11
121
1331
14641

9. Write a program to find the calculate the number of vowels, number of spaces, number of lines
and the numbers of characters in a given string.( the number of lines should be greater than 1)

Submitted by:

Arya Priyo Nath (09433802700)


Email- [email protected]

www.icseguess.com
Other Educational Portals
www.cbseguess.com | www.ignouguess.com | www.aipmtguess.com | www.aieee.com | www.niosguess.com |
www.iitguess.com

You might also like