0% found this document useful (0 votes)
15 views4 pages

Computer Engineering

This document provides a model question paper for a diploma in computer engineering/hardware engineering exam on object oriented programming. It contains 3 parts - Part A with 9 multiple choice questions worth 1 mark each, Part B with 8 questions worth 3 marks each requiring short answers, and Part C with 6 questions worth 7 marks each requiring longer explanations. The questions cover topics on Java programming concepts like OOPs, classes, inheritance, packages, exceptions, GUI programming using Swing, and JDBC. The document also provides a blue print showing the mark distribution across modules, type of questions, and cognitive levels.

Uploaded by

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

Computer Engineering

This document provides a model question paper for a diploma in computer engineering/hardware engineering exam on object oriented programming. It contains 3 parts - Part A with 9 multiple choice questions worth 1 mark each, Part B with 8 questions worth 3 marks each requiring short answers, and Part C with 6 questions worth 7 marks each requiring longer explanations. The questions cover topics on Java programming concepts like OOPs, classes, inheritance, packages, exceptions, GUI programming using Swing, and JDBC. The document also provides a blue print showing the mark distribution across modules, type of questions, and cognitive levels.

Uploaded by

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

MODEL QUESTION PAPER

DIPLOMA IN COMPUTER ENGINNERING/HARDWARE ENGINEERING


OBJECT ORIENTED PROGRAMMING

Time : 3 Hour Max.Marks : 75


Part A

I. Answer all the following questions (9 x 1 = 9 Marks)


1 Choose an example for JAVA IDE M1.02 R
A.Notepad
B.JAVAC
C.JVM
D.Netbeans
2 List any two types of constructors in JAVA M1.06 R
3 Which of the following is not an oops concepts in Java ? M1.01 U
A.Inheritance
B.Encapsulation
C.Polymorphism
D.Compilation

4 Show the method to restrict a member of a class from inheriting to M2.05 U


it’s sub classes.?
5 Define abstract class M2.06 R
6 Which package is imported by default in JAVA M2.08 R
A.lang
B.util
C.JAVA
D.awt
7 Tell an example for a container in GUI M3.02 R
A.button
B.component
C.frame
D.class
8 Relate the method used to register a keyboard event listener M3.04 U
9 Define JDBC M4.03 R
Part B

II. Answer any 8 questions from the following. Each question carries 3 marks.
(8 x 3 = 24 Marks)

1 Tell the general structure of a JAVA program M1.03 R

2 Compare method overloading and overriding M1.06 U


3 Show exception handling in JAVA M1.12 U
4 Construct a JAVA class to represent the heightof any real-world M1.04 A
object in feet and inch. Also include proper member method to read
the height.
5 Write the steps to create a package in JAVA M2.08 R

6 Tell the main uses of the super keyword? M2.02 R

7 “Multiple inheritance is not supported in JAVA”. Explain the M2.01 U


reason

8 Define source and listener with respect to event-handling M3.02 R

9 Write suitable statements for creating a frame, label and text box M3.06 U
using Java swing.

10. List any3 SQL statements with syntax. M4.02 R

Part C

Answer all questions. Each question carries 7 marks. (6 x 7 = 42 Marks)

III Explain static methods and variables in JAVA M1.08 R


OR
IV List and explain various constructors used in JAVA M1.06 R
V Define a method to find the area of a rectangle. Overload it to find M1.09 A
the area of a Square.
OR
VI Compare constructors and methods in JAVA M1.04 U
M1.08
VII List and explain various access specifiers in JAVA M2.05 R
OR
VIII Define the following M2.06 R
A. Abstract class
B. Final Class
C. Abstract method
IX Program segment below will result compilation error. Modify the M2.07 U
code by including or changing necessary statements.
class X
{
//Class X Members
}

class Y
{
//Class Y Members
}
class Z extends X, Y
{
//Class Z Members
}

OR
X Class student contains register number and name. Derive class M2.01 A
internal from student and having data numbers internal marks of
three subjects. Derive another class external from internal having
data member’s external marks of three subjects. Write a java
program using multilevel inheritance to print the mark list of
students.
XI List and explain the methods of mouse Listener interface in JAVA M3.04 R
OR
XII Write a JAVA swing program to find the sum of two numbers. Use M3.06 U
proper swing components.
XIII List the steps to connect to a MYSQL database in JAVA M4.04 R
OR
XIV Explain the steps to perform a SQL select query from JAVA M4.05 U

Blue Print
Mark Distribution
Type of Questions
Part A Part Part C Total
(hi /∑Hi ) * 123 (±5%)

B
Marks/Module
Module

No of Questions

No of Questions

No of Questions

No of Questions
Marks

Marks

Marks

Marks
hr / Module

1
16 34 3 3 4 12 4 28 11 43
2
16 34 3 3 3 9 4 28 10 40
3
14 30 2 2 3 9 2 14 7 25
4
12 25 1 1 1 3 2 14 4 18
Total 9 9 11 33 12 84 32
58 123
Blue Print
Cognitive Level Mark Distribution
Cognitive Marks % of
Level Marks
Remembering
63 51
Understanding
43 35
Applying
17 14
Analysing
Evaluating
Creating
Total
123

You might also like