Semester : SEMESTER 5
Subject : Web Programming Using PHP
Year : 2018
Term : NOVEMBER
Branch : COMPUTER SCIENCE
Scheme : 2020 Full Time
Course Code : BCS 5B 09
Page:1
HTH SEMESTER B.Sc. DEGREE EXAMINATION, NOVEMBER 2018
(CUCBCSS—UG)
Computer Science
BCS 5B 09—JAVA PROGRAMMING
i : 80 Marks
fime : Three Hours ——
Part A
Answer all questions.
Each question carries 1 mark.
1.
In OOP, data and methods are enclosed in a
(a) Package.
(€) Class. (d) None of the above.
2. Which property enables the use of predefined code in OOP ?
(a) Encapsulation.
(b) Object.
(b) Abstraction.
(c) Inheritance.
(d) Polymorphism.
3. Which of the following is not a primitive data type ?
(೩) Boolean. (b) Byte.
(c) String. (d) Double.
4.
Subclass is also called as
(a) Base class.
(0) Superclass.
(c) Derived class. . (0) None of the above,
5. Ifaclass declared ags—____ » it cannot be inherited
(a) Abstract. (b) Final |
inal,
(c) Extends,
| xtends (d) None of these,
۱ 1S not a valid jump Statement in Java
(a) Return. ١ (b
(6) Continue. -
7. Which of the following doesn't ha .
ve a Superclass 9
(a) System.
(0 Forname (0) പ Object