OOPS model qp set 1
OOPS model qp set 1
PMC/EC/form -06
PMC/Model/IT/
3/5/2
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
OR
b With neat example, explain java AWT Menu bars and Menu items(15) CO5 Understanding