Tribhuvan University
Faculty of Humanities & Social Sciences
OFFICE OF THE DEAN
2019
Bachelor in Computer Applications Full Marks: 60
Course Title: OOP in Java Pass Marks: 24
Code No: CACS 204 Time: 3 hours
Semester: III
Centre: Symbol No:
Candidates are required to answer the questions in their own words as far as possible.
Group A
Attempt all the questions. [101 = 10]
1. Circle (O) the correct answer.
i) Which one of the following is not a valid java bitwise operator?
a) >> b) <<
c) >>> d) <<<
ii) Which one of the following keyword is used to declare an exception?
a) throws b) throw
c) try d) catch
iii) Which of these is an incorrect array declaration?
a) int ary[] = new int[5]; b) int[] ary = new int[5];
c) int ary = int[5] new; d) int ary[]; ary = new int[5];
iv) Which one of the following access specifier is appropriate for members of superclass to
access only from subclass?
a) private b) protected
c) public d) default
v) Which one of the following is not a collection class defined in java?
a) Linked List b) Hash Set
c) Tree Set d) Graph Set
vi) Which one of the following inheritance is best implanted using interface in java?
a) single inheritance b) multi-level inheritance
c) multiple inheritance d) hierarchical inheritance
vii) Which one of the following method is called only once during the run time of your applet?
a) stop() b) paint()
c) init() d) start()
viii) Which of these method of class String is used to compare two String objects for their
equality?
a) equals() b) Equals()
c) is Equal() d) Is Equal()
ix) What is the default value of priority variable MIN_PRIORITY and MAX_PRIORITY?
a) 0 & 63 b) 1 & 10
c) 0 & 1 d) 1 & 32
x) Which one of the following is not java swing container?
a) Panel b) Tabbed Pane
c) Scroll Pane d) Scroll bar