0% found this document useful (0 votes)
8 views

OOPS model qp set 1

Uploaded by

hod
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views

OOPS model qp set 1

Uploaded by

hod
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

REG. NO.

PMC/EC/form -06

PMC/Model/IT/
3/5/2

DEPARTMENT OF INFORMATION TECHNOLOGY


MODEL EXAMINATION Set-1
CS3391-OBJECT ORIENTED PROGRAMMING
SEMESTER-3

Date: Duration: 3 Hrs Max.Marks: 100


(PART - A (10*2=20)) Answer all the Questions
1 Write a syntax of do while loop and for loop. CO1 Analyze
2 Difference between method and constructor. CO1 Remembering
3 What is the use of final keyword? CO2 Understanding
4 Write the syntax of interface and mention its uses CO2 Evaluate
5 List any four JavaDoc comments. CO3 Remembering
6 List the values associated with the parameter of set priority() method of thread CO3 Evaluate
class?
7 Define deadlock. CO4 Understanding
8 List any two methods available in Data output interface. CO4 Remembering
9 Differentiate Hbox and Vbox CO5 Understanding
10 List any two forms of checkbox menuItems constructor. CO5 Remembering
PART B (5*13=65)Answer all the Questions
11 a(i) Explain in detail about java’s iteration statement with example.(8) CO1 Remembering
(ii) Write a program to perform the following functions on a given matrix
(i) Find the row and column sums (ii) Interchange the rows and CO1 Analyze
columns.(5)
OR
b(i Explain constructor with an example.(5) CO1 Understanding
)
(ii) Explain the types of operator with an example program(8) CO1 Remembering
12 a(i) Explain the concepts of priorities and synchronization with examples CO2
Analyze
java program.(13)
OR CO2 Remembering
b(i Explain in detail about static,nested and inner classes with syntax. CO2 Understand
)
(ii) What is inheritance ? How will you call parameterized constructor and CO2
Analyze
override methods from parent class in sub class.
OR
13 a(i) Discuss about try,catch and finally keyword in exception handling with CO3 Remembering
an example.(8)
(ii) List and explain data types and their corresponding wrapper class.(5) CO3 Understanding

OR
b Write an exception class for a time of day that can accept only 24 hour CO3 Evaluate
representation of clock hours.Write a java program to input various
formats of timings and throw suitable error messages.(13)
14 a(i) Write a java program that collects the input as a decimal number of CO4 Analyze
integer type and convert it into a string of equivalent hexadecimal
number.(5)
(ii) Explain in detail about following with sample java program (8) CO4
Remembering
(i) Reading from a file (ii) Writing in a file
OR
b Apply the string handling function to do the following operations.(13) CO4 Remembering
(i) Compare the two string
(ii) Reverse the string “ HAPPY”
(iii) Concatenate two strings

15 a(i) List and explain the various layouts in java GUI (8) CO5 Remembering
(ii) Explain the four types of button swing (5) CO5 Understand
OR
b Discuss the following with example (13) CO5 Remembering
(i) Mouse listener
(ii) Mouse motion listener

PART C (1*15=15) Answer all the Questions

16 a Write a java program for inventory problem to illustrate the usage of


thread synchronization keyword and inter thread communication process CO3 Analyze
they have three classes called consumer, producer and stock.(15)

OR

b With neat example, explain java AWT Menu bars and Menu items(15) CO5 Understanding

You might also like