Professional Documents
Culture Documents
COMPUTER SCIENCE
Revision Sheet
Portion
Chapter 1: Numbers
Chapter 4 : Unit 1. Object Oriented Programming
Chapter 4:Unit 2. Objects and Classes
Chapter 4: Unit 3. History and Development of Java
Chapter 5: Concept of Data Types
Chapter 5: Concept of Data Types
Chapter 6: Operators and Expressions
Chapter 7:Conditional and Looping Statement
(Theory)
(Candidates are allowed additional 15 minutes for only reading the paper.
Answer all questions in Part I (compulsory) and six questions from Part-II, choosing two questions
from Section-A, two from Section-B and two from Section-C.
All working, including rough work, should be done on the same sheet as the The intended marks for
questions or parts of questions are given in brackets [ ].
PART I – 20 MARKS
Answer all questions.
While answering ques ons in this Part, indicate brie y your working and
reasoning,wherever required.
ti
fl
Ques on 1
[10]
1. H16
2. 16
3. 15
4. None
(ii) To express a Hexadecimal number to its Binary equivalent, each Hexadecimal digit
is expressed into:
1. 2 bits form
2. 3 bits form
3. 4 bits form
4. None
1. new
2. public
3. class
4. main
1. 11
2. 12
3. 14
4. 13
(iv) The process of combining data and functions that enables them to be together as a single
entity is called
1. inheritance
2. encapsulation
ti
3. classi ication
4. attributes
(v) Which of the following is a blue print that creates objects of similar types?
1. abstraction
2. encapsulation
3. class
4. function
(vi) What is object oriented programming? Name two object oriented programming languages.
[1]
(viii) In what way is static declaration different from dynamic declaration? [1]
(x) In what way is Data Hiding related to Data Abstrac on? [1]
Ques on 2
[10]
(i) Define the Polymorphism following with an example . [2]
(iv) What are the resulting data types, if the following conversions are performed? [2]
i + c/b;
ti
f
ti
a. (ABC)16= ()10
PART II – 50 MARKS
Question 3. [10]
a. (3402)8 to ( )2 [2]
1. (999)10 [2]
2. (165.35)10 [2]
b. What do you understand by Token? Name different types of tokens used in Java.
[1]
Question 4. [10]
(ii) How will you convert: A decimal number to a binary number [2]
int m = 2;
int n = 15;
m++;
--n;
(iv) Give two differences between: Hexa-decimal and Octal number [2]
Question 5. [10]
(a) Math.cbrt()
(b) Math.log()
(iv) Explain the term type conversion. How is implicit conversion different from explicit
conversion? [2]
SECTION – B
Each program should be written in such a way that it clearly depicts the logic of the
problem. This can be achieved by using mnemonic names and comments in the program.
Question 6. [10]
An air-conditioned bus charges fare from the passengers based on the distance travelled as
per the tariff given below:
11 km to 20 km ₹6/km
21 km to 30 km ₹5/km
Design a program to input distance travelled by the passenger. Calculate and display the
fare to be paid.
Question 7. [10]
Using the switch statement, write a menu driven program for the following:
Question 8. [10]
Enter 'c' to calculate area of circle, 's' to calculate area of square and 'r' to calculate area of
rectangle.
SECTION – C
Each program should be written in such a way that it clearly depicts the logic of the
problem stepwise. This can be achieved by using comments in the program and
mnemonic names or pseudo codesfor algorithms. The programs must be written in Java
and the algorithms must be written in general / standard form, wherever required /
specified.
(Flowcharts are not required.)
Question 9. [5]
:
A certain amount of money is invested for 3 years at the rate of 6%, 8% and 10% per
annum compounded annually. Write a program to calculate:
Write a program to compute and display the sum of the following series: