0% found this document useful (0 votes)
25 views5 pages

Updated Ece Oopj Mid Question Bank

The document outlines the course details for a B. Tech program in Object-Oriented Programming through Java, including the course title, credits, and faculty. It contains a mid-question bank divided into five units, each listing various questions related to Java programming concepts such as data types, arrays, inheritance, exception handling, and multithreading. Each question is categorized by its corresponding course outcome (CO), Bloom's level (BL), and marks allocation.

Uploaded by

ramanadiu21
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)
25 views5 pages

Updated Ece Oopj Mid Question Bank

The document outlines the course details for a B. Tech program in Object-Oriented Programming through Java, including the course title, credits, and faculty. It contains a mid-question bank divided into five units, each listing various questions related to Java programming concepts such as data types, arrays, inheritance, exception handling, and multithreading. Each question is categorized by its corresponding course outcome (CO), Bloom's level (BL), and marks allocation.

Uploaded by

ramanadiu21
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/ 5

COURSE DETAILS

Class: III - Year, B. Tech Semester: I Academic Year: 2024-25


Course Title: Object-Oriented Programming through Java Credits: 3
Program/Dept: ECE-C Batch: 2022-2026
Regulation: R-21 Faculty: Mrs.K. Divya

MID QUESTION BANK


UNIT-I
S.No. Question CO BL Marks
1 Describe the primitive data types supported in java and explain with
1 2 12
examples.
(a) Write a java program to print first 100 Fibonacci numbers. 1 3 6
2
(b) Explain the command line arguments with examples? 1 3 6
3 What are the lexical issues in Java with example? 1 2 12
4 What are java buzz words? Give brief description. 1 2 12

5 Illustrate the difference between JAVA& C++. Why is Java 1 2 12


language important in relevance to the Internet?

6 What do you understand by type casting & automatic promotion? 1 3 12


Explain with suitable examples.

a) What is meant by byte code? Briefly explain how Java is 1 2 6


7 platform-independent.
b) What is a variable? Explain about dynamic initialization of variable? 1 2 6
(a) Write a program to demonstrate the working of the relational 1 2 6
8 operator.
(b)Explain the scope & lifetime of Variables with example 1 2 6
programs?
9 Explain in detail with syntax about the control statements in JAVA. 1 3 12

10 What are various arithmetic operators? Explain about compound 1 2 12


assignment operator, increment and decrement operators in detail.

11 Write about 1 2 12
a) Expressions b) Statements c) Blocks
12 What is the difference between a global variable and a local variable 1 1 12
with an example.
UNIT-II
S.No. Questions CO BL Marks

a) Explain briefly about Multi-Dimensional Array declaration? 2 3 6


1
b)How do you allocate dimensions manually for each dimension?
2 3 6
Explain with an example.

2 What is an Array? Explain different declarations of an array in JAVA


2 3 12
with examples.

3 Explain about
2 2 6
a) Array Initialization b) Accessing Array elements

a) Write a Java program to find minimum & maximum number in 2 3 6


the given array.
4
b) Write a Java program to implement Wrapper Classes of all 2 3 6
primitive types.

a) Explain in detail about Wrapper Classes? 2 2 6


5
b) Write a java program that counts number of lines, words, 2 2 6
alphabets and special characters in a text file.
6 Explain briefly about String Buffer class with an example. 2 2 12

a) Explain about alternative array declaration in JAVA. 2 3 6


7
b) Write a Java program to perform matrix multiplication. 2 3 6

8 Explain in detail about String Builder class in JAVA. 2 3 12

9 Explain the feature that simplifies the creation of methods that need 2 3 12
to take a variable number of arguments.

10 Explain the difference between String, String Buffer and String 2 3 12


Builder classes.

11 Explain the methods of String Buffer class with a JAVA program that 2 2 12
implements String Buffer methods?

12 Explain about Various kinds of arrays in java and its declaration? 2 2 12


UNIT-III
S.No Question CO BL Marks
1 Explain method overriding in java with suitable example. 3 3 12

a) Explain the usage of “super” keyword with suitable example. 3 2 6


2
b) What are the benefits of Inheritance? What are the rules to access
3 3 6
members of the Parent Class?
What is Inheritance? Explain different types of Inheritance with
3 3 2 12
examples.
a) Explain the use and we need the use of “this” keyword with a
3 2 6
4 sample program.
b) How to create Objects? Does Java support object destruction?
3 2 6
Justify your answer.
Write in detail about Single and Multi-level Inheritance in Java
3 2 12
5 with sample programs.

6 What is polymorphism? Explain different types of polymorphism with


3 3 12
examples.
a) Write a java program to show the use of Abstract Classes. 3 2 6
7
b) What is a Constructor? What is the calling sequence of
3 3 6
Constructor? Explain with an example.
a) Write a program to demonstrate hierarchical and multiple
3 3 6
8 inheritance using interfaces
b) Explain the usage of “final” keyword with suitable example. 3 2 6

9 What is method overloading? Can we overload a Constructor? Explain


3 3 12
in detail with a program.
What is an abstract class? What is its importance? How is it designed
in java?
10 3 2 6+6
Does a super class variable be used to refer a sub class object. Explain
with an example.

11 Explain the significance of public, protected and private access 3 2 12


Specifiers in inheritance.
a)Explain the member access mechanism in inheritance with an 3 2 6+6
example.
12
b) Explain the procedure to call super class members with an example.
UNIT-IV
S.No. Question CO BL Marks

What is an Interface? Explain the implementation of an Interface


1 4 3 12
with a sample program.
Define a Package. Write down the steps to create a package with a
2 4 3 12
sample program.

a) How does the Java run-time system know where to look for
packages that you create? Explain how to find packages and 4 3 6
Class path.
3
b) Write a Java program that reads a list of integers from the user
4 3 6
and throws an exception if any numbers are duplicates.

a) Describe different levels of access protection available in Java. 4 2 6


4
b) Briefly explain about throws keyword with an example. 4 3 6

a) Difference between throw and throws in Java. 4 2 6


5 b) Explain briefly about finally keyword with suitable example. 4 2 6

a)Write a java program that illustrates the application of multiple


4 3 6
catch statements.
6
b)Give the syntax of exception handling and also handle
4 3 6
exception occurred during the execution of divide by zero

How to create your own exception types to handle situations


specific to your applications? Write a java program to read input
7 4 2 12
from the user. If the input is negative number, then program
should raise a user defined exception.

Explain the different types of exceptions in java.Explain them 4 2 12


8 briefly.
a) Write a java program to define and import a user defined
9 package and sub package. 4 3 6+6
b) Write a java program to access package from another package.
a) What is an Exception? How is an Exception handled in JAVA?
10 b) Briefly explain about throws keyword with an example. 4
2 6+6
a)What are advantages of using Exception handling mechanism in a
program?
11 4 2 6+6
b)Write a java program that demonstrates how certain exception
types are not allowed to be thrown.

12. Explain built-in exception handling with an example. 4 2 12


UNIT-V
S.No Question CO BL Marks

Explain MVC architecture briefly with neat diagram


1 5 2 12

a) Explain briefly about join() method in java with an example program 5 2 6


2
b) Discuss about main thread with an example java program. 5 3 6
3 Explain briefly about Java’s Thread Model. 5 2 12
Explain briefly about is Alive() method with a suitable example program in
5 2 12
Java.
4
With a neat sketch, explain the life cycle of a Thread in Java programming 5
5 2 12

a) Explain Visual Characteristics of components. 5 2 6

6 5 2 6
b) Write a short notes on creating cursors, selecting Font and creating a
window.
What is Layout Manager? Explain its types of Layout Manager with an
7 example. 5 3 12

Explain thread synchronization with respect to multi threading and write


8 5 2 12
an example program for synchronization in Java.
What are the different ways that are possible to create a thread in java?
9 Explain with examples. 5 3 12

10. Explain Swing components in Java with a suitable example. 5 2 12

11 Define Multi threading. What are the advantages of multi threading with 5 2 12
and example.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy