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

Class-X (Two Hours) : Section B

This paper is divided into two sections. Attempt all questions from Section A and any four questions from Section B. Section B (40 Marks) Attempt any four questions. The intended marks for questions or parts of questions are given in brackets [ ].
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
101 views4 pages

Class-X (Two Hours) : Section B

This paper is divided into two sections. Attempt all questions from Section A and any four questions from Section B. Section B (40 Marks) Attempt any four questions. The intended marks for questions or parts of questions are given in brackets [ ].
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 4

Computer Applications (Theory)

Class-X (Two Hours) 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 (40 Marks) Attempt all questions. Question 1: [2x5] a) Explain the term Polymorphism using an example. b) Explain global variable. Give an example. c) What are the smallest and largest integer values for primitive type float? d) Differentiate between operator and expression. e) Which element is a [13] of the array a? Question 2: [2x5] a) Differentiate between base and derived class. b) How is ordinary compilation process different from java compilation? c) What are shorthand operators? Give Examples. d) Explain, with the help of an example, the purpose of default in a switch statement. e) Explain the term while loop with an example.How is it different from the other loops? Question 3: a) What will be the output of the following program segment? [2] int x=4, y=9, z=1; z = + + x + - - y x + + * y - -; b) What is meant by protected visibility of a method? [2] c) Explain the difference between break and continue statements? [3]

Page 1 of 4
Mks

d) Convert the following segment into equivalent for and do-while loop [2] int i = 1; while (i < = 20) { System.out.print (i + ); i++; } e) Explain compound statement with an example. [4] f) What is the output of the following? [2] char ch = B ; int n = ch + 34; System.out.println (n); System.out.println ((char) n); g) Differentiate between if-else and switch statements. [3] h) Find the output of the following program segment, when: [2] i) val = 200 int sum, n = 600; sum = n + val < 1000? 700: 400; System.out.println (sum); Section B (60 Marks) Attempt any four questions from this Section. Question 4: Write a class with name employee and basic as its data member, to find the gross pay of an employee for the following allowances and deduction. DA = 25% of Basic HRA = 15% of Basic PF = 8.33 % of Basic Net pay = Basic + DA + HRA Gross pay = Net pay PF [15] ii) val = 500

Page 2 of 4
Mks

Question 5: Write a program that outputs the results of the following evaluations based on the number entered by the user. a) Angle whose tangent is x b) cube root of the number. c) Truncated value of the number. [15] Question 6: A cloth showroom has announced the following festival discounts on the purchase of items, based on the total cost of the items purchased:Total Cost Less than Rs.2000 Rs.2000 to Rs.5000 Rs.5001 to Rs.10000 Above Rs.10000 18% Discount 5% 8.5% 13%

Write a program to input the total cost and to compute and display the amount to be paid by the customer after the discount. [15] Question 7: Write a program to calculate and print the no. of words in a string. [15] Question 8: Write a program to input data in an array and find the minimum and maximum values along with the sum of the given elements. E.g. Input: 3, 6, 9, 2, 5 Output: Minimum Value: 2 Maximum Value: 9 Sum of the elements: 25 [15] Question 9: Write a program to accept name and address in 2 arrays and perform Bubble sort on the names and then print them in ascending order,with

Page 3 of 4
Mks

the corresponding address. [15]

Page 4 of 4
Mks

You might also like