Retrieving academic index assets...
Makaut
HomePYQsTests
Pricing
Sign Up
Makaut

The premier academic archive for MAKAUT students, providing curated previous year questions, solutions, and official syllabus resources.

Get the Mobile App
GET IT ONGoogle Play
Download on theApp Store
Download from Indus App Store
Platform
  • Home
  • PYQs
  • Question Papers
  • Viva Questions
  • Important Questions
  • Syllabus
  • Academic Tools
  • Pricing
  • Blog
Guidelines
  • Disclaimer
  • Community Guidelines
Company
  • About
  • Contact
  • FAQ
Legal
  • Privacy Policy
  • Terms of Service
  • Refund Policy
  • Cookie Policy
  • Subscription Policy
© 2026 MAKAUT Study Dev Hub. All rights reserved.
Platform version: v1.0.0
Home/PYQs/Sem 5/Object Oriented Programming/2012
PCC-CS503Sem 5 • 2012 Exam
Full Marks: 70 • Time: 3 Hours

MAKAUT Object Oriented Programming 2012 Question Paper

Official theoretical question paper for Object Oriented Programming (PCC-CS503) conducted by Maulana Abul Kalam Azad University of Technology. All questions from Groups A, B, and C are reproduced below with marks weightings.

Download MAKAUT Object Oriented Programming 2012 Question Paper PDFView All PCC-CS503 Papers

AGroup A — Objective / Multiple Choice Questions

10 × 1 = 10 Marks
1(i)[1 Mark]

Which one of the following statements is wrong?

a) A base class reference can refer to an object of a derived class
b) The dynamic method dispatch is not carried out at the run time
c) The super() construct refers to the base class constructor
d) The super.base-class-method-name() format can be used only within a derived class.
1(ii)[1 Mark]

A sub-class having more than one super class is called

a) category
b) classification
c) combination
d) partial participation.
1(iii)[1 Mark]

Out of the following which one is not correctly matched?

a) Int — 24 bits
b) Short — 16 bits
c) Double — 64 bits
d) Byte — 8 bits.
1(iv)[1 Mark]

What is the correct ordering for the import, class and package declarations found in a single file?

a) Package, import, class
b) Class, import, package
c) Import, package, class
d) Package, class, import.
1(v)[1 Mark]

Which one of the following statements is not correct?

a) An interface can inherit another interface.
b) The package name and subdirectory name need not be identical.
c) Only the classes declared as public in a package are accessible outside that package.
d) The import java.awt.*; directive will not import classes in java.awt.event package.
1(vi)[1 Mark]

What results from the following fragment of code? 1. int x = 1; 2. String [] names = {"Fred", "Jim", "Sheila"}; 3. names[--x] += "."; 4. for (int i = 0; i < names.length; i++) { 5. system.out.println(names[i]); 6. }

a) The output includes Fred. with a trailing period.
b) The output includes Jim. with a trailing period.
c) The output includes Sheila. with a trailing period.
d) None of the outputs shows a trailing period.
e) An ArrayIndexOutOfBoundsException is thrown.
1(vii)[1 Mark]

What is the output of this code fragment? 1. int x = 3 int y = 10; 2. System ou println (y % x );

a) 0
b) 1
c) 2
d) 3.
1(viii)[1 Mark]

Which of the following statements is correct?

a) The 'try' block should be followed by a 'catch' block.
b) The 'try' block should be followed by a 'finally' block.
c) The 'try' block should be followed by either a 'catch' block or a 'finally' block.
d) The 'try' block should be followed by at least two 'catch' blocks.
1(ix)[1 Mark]

The wait() and notify() methods are used to perform

a) Interthread communication
b) Synchronisation
c) Deadlock
d) all of these.
1(x)[1 Mark]

If a data-item is declared as a protected access specifier then it can be accessed

a) anywhere in the program
b) by the base and derived classes
c) only by base classes
d) only by derived classes.
1(xi)[1 Mark]

Which one of the following is wrong?

a) 'Runnable' is a predefined interface.
b) Theleep() method instructs a thread to terminate its execution.
c) The isAlive() method tells whether a thread has not yet died.
d) MAX_PRIORITY represents the level 10.
1(xii)[1 Mark]

What type of following stream is used to read binary data?

a) InputStream
b) InputStreamReader
c) DataInputStream
d) None of these.

BGroup B — Short Answer Conceptual Questions

3 × 5 = 15 Marks
2[5 Marks]

Write down a program to implement Command Line arguments.

3[5 Marks]

What are the main characteristics of OOP Language? Explain each.

4[5 Marks]

How does string class differ from String buffer class?

5[5 Marks]

What are Implicate and Explicit Casting? Explain with the help of example.

6[5 Marks]

What is the difference between 'error' and 'exception'? What are the benefits of organizing classes into packages?

CGroup C — Long Answer Analytical & Numerical Questions

3 × 15 = 45 Marks
7[15 Marks]

a) What is mutable strings? b) What are the benefits of organising classes into package? c) How can you create your own package and add classes in that? Explain with the help of an example. d) Explain with the help of an example, how java gets benefited by using Interface?

8[15 Marks]

Write short notes on any three of the following: a) Wrapper Class b) Meta class c) String Tokenizer Class d) getCodeBase() methods.

9[15 Marks]

a) Explain the life cycle of an Applet. b) List various attributes of Applet tag used in HTML. Explain the purpose of these attributes c) Write a Java program that uses the draw Polygon() metod of Graphics class to draw a triangle with endpoints (25, 30); (75, 80) and (50, 50).

10[15 Marks]

a) Why does Java have two ways to create child threads (by extending Thread or implementing Runnable) and which approach is better? b) Define an exception called "NotEqualException" that is thrown when a float value is not equals to 3.14 write a program that uses that user defined exception. c) Write a Multithreading program to generate the square roots to the first 30 natural numbers using Runnable interface. d) What do you mean by 'Synchronization'? Why do we need it?

11[15 Marks]

a) How applet is different from frame and panel? Explain. b) How threads are made to communicate with each other? Explain with example. c) Explain any three events with suitable example.

2015 Question Paper →