0% found this document useful (0 votes)
1K views2 pages

OOP in Java Objective

This document provides a past exam for a Bachelor in Computer Applications course at Tribhuvan University. The exam tests knowledge of Object Oriented Programming in Java. It contains 10 multiple choice questions testing topics like Java operators, exceptions, arrays, access specifiers, collections classes, inheritance, applet lifecycle methods, String comparison, thread priority values, and Swing containers. Candidates are required to answer the questions in their own words as much as possible within the allotted 3 hour time limit.

Uploaded by

Piyush Koirala
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
Download as pdf or txt
0% found this document useful (0 votes)
1K views2 pages

OOP in Java Objective

This document provides a past exam for a Bachelor in Computer Applications course at Tribhuvan University. The exam tests knowledge of Object Oriented Programming in Java. It contains 10 multiple choice questions testing topics like Java operators, exceptions, arrays, access specifiers, collections classes, inheritance, applet lifecycle methods, String comparison, thread priority values, and Swing containers. Candidates are required to answer the questions in their own words as much as possible within the allotted 3 hour time limit.

Uploaded by

Piyush Koirala
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
Download as pdf or txt
Download as pdf or txt
You are on page 1/ 2

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. [101 = 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

You might also like