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

Oop Repeat Bro

Uploaded by

Dinal Savaj
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 views10 pages

Oop Repeat Bro

Uploaded by

Dinal Savaj
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/ 10

S. S.

AGRAWAL INSTITUTE OF ENGINEERING & TECHNOLOGY, NAVSARI


DEPARTMENT OF COMPUTER ENGINEERING

Subject: 3140705 (Object Oriented Programming -I)


Most Repeated Questions

Sr. No. Questions Exam Marks

Unit 1: Introduction to java and elementary programming

1 Explain JRE, JDK and JIT. SUMMER2020 03

Compare object-oriented programming with sequential SUMMER2020 03


programming WINTER 2020
2 OR
What is the difference between oop and procedural oriented
language?

3 Method main is a public static method. Justify SUMMER2020 04

4 Explain type-conversion in java. WINTER 2020 04

5 What are the data-types and operators available in Java? WINTER 2020 07

6 Define object oriented concepts. SUMMER 2021 03

What are syntax errors (compile errors), runtime errors, and WINTER 2021 03
7
logic errors?
What is Type Casting? Explain widening and narrowing type WINTER 2021 04
8
casting.

9 Explain Data Types in detail with example WINTER 2021 07

10 List out features of Java. Explain any two features. SUMMER 2022 03

11 Discuss significance of byte code. WINTER 2022 03

12 Explain Java garbage collection mechanism. WINTER 2022 04

List OOP characteristics and describe inheritance with WINTER 2022 07


examples.

Object Oriented Programming -I


S. S. AGRAWAL INSTITUTE OF ENGINEERING & TECHNOLOGY, NAVSARI
DEPARTMENT OF COMPUTER ENGINEERING

Unit 2: Selections , Mathematical functions and loops

Write a program to take string input as command line SUMMER2020 07


1 argument. In addition, count occurrence of each character in a
given string.

2 Difference between Nested if and multi-way if statements. WINTER 2020 03

Write a single program which demonstrates the usage of SUMMER 2022 04


following
3 keywords:
i) import, ii) new, iii) this, iv) break, v) continue
Show how to compile and run the program in java

Unit 3: Methods and Arrays:

Write a program, which shows an example of function SUMMER2020 07


1 overloading. Also, differentiate between function overloading
and overriding

2 Explain about arrays, Type of arrays and arrays methods SUMMER 2021 03

3 Explain “Passing argument by values” with example WINTER 2021 04

4 Explain Method Overloading and Overriding WINTER 2021 04

Explain the following: SUMMER 2022 04


5 i) Arguments and Parameters of a function
ii) Pass by Value and Pass by reference

6 Explain Overloading and Overriding with example. WINTER 2022 07

Unit 4: Objects and Classes

1 Explain static keyword with example. SUMMER2020 04

2 WINTER 2020 07
Explain class and object with respect to java.
3 WINTER 2020 04
What is constructor overloading?

4 List and explain available type of constructors in java with WINTER 2020 04
example

Object Oriented Programming -I


S. S. AGRAWAL INSTITUTE OF ENGINEERING & TECHNOLOGY, NAVSARI
DEPARTMENT OF COMPUTER ENGINEERING

5 How to access object via reference variable? Explain with WINTER 2020 04
example.
6 Define constructor. How objects are constructed? Explain SUMMER 2021 07
constructor overloading with an example.
What is a Package? What are the benefits of using packages? SUMMER 2021
7
Write down the steps in creating a package and using it in a
java program with an example.
Explain access modifiers with Example. WINTER 2020 03
8 OR
Write short notes on access specifiers and modifiers in java. SUMMER 2021 04

9 WINTER 2021
Explain visibility modifiers. 03

10 WINTER 2021 04
What is constructor? Explain constructor overloading
SUMMER 2022
Consider class A as the parent of class B. Explain among the 04
following which statement will show the compilation error.

11 i) A a = new A();
ii) A a = new B();
iii) B b = new A();
iv) B b = new B();
SUMMER 2022
Explain the following constructors using appropriate 04
example:
12
i) Default constructor and Parameterised constructor
ii) Shallow copy and Deep copy constructor
13 WINTER 2022
Explain constructor with the help of an example 03
WINTER 2022
14 Explain all access modifiers and their visibility as class 07
members.

Object Oriented Programming -I


S. S. AGRAWAL INSTITUTE OF ENGINEERING & TECHNOLOGY, NAVSARI
DEPARTMENT OF COMPUTER ENGINEERING

Unit 5: Object oriented thinking


Explain inheritance with its types and give suitable example SUMMER2020 07
1 OR
Defines types of inheritance. SUMMER 2022
04
SUMMER2020 03
2 Write difference between String class and StringBuffer class. SUMMER 2021 04
WINTER 2021 03
SUMMER2020 04
3 Explain super keyword with example

Describe abstract class called Shape, which has three SUMMER2020 07


subclasses say Triangle, Rectangle, and Circle. Define one
method area() in the abstract class and override this area() in
4
these three subclasses to calculate for specific object i.e. area()
of Triangle subclass should calculate area of triangle likewise
for Rectangle and Circle
How can we protect sub class to override the method of super SUMMER2020 03
5
class? Explain with example.
What do you mean by run time polymorphism? Write a SUMMER2020 07
6
program to demonstrate run time polymorphism
Explain following keywords WINTER 2020 04
1) Static 2) Super WINTER2022 07
7 OR
Explain the words super, static, final and this with the help of
an example.
Differentiate between final, finally and finalize. What will WINTER 2020 07
8
happen if we make class and method as final?
Explain abstract class with example. WINTER 2020 03
9 OR
Explain abstract class with example. WINTER 2021 03
10 Explain Primitive data type and wrapper class data types. WINTER 2020 04

11 Explain about Encapsulation, Abstraction SUMMER 2021 04

Object Oriented Programming -I


S. S. AGRAWAL INSTITUTE OF ENGINEERING & TECHNOLOGY, NAVSARI
DEPARTMENT OF COMPUTER ENGINEERING

State the design hints for class and inheritance. SUMMER 2021 07
12 Also discuss the working and meaning of the “static” modifier
with suitable examples.
Explain about different types of string methods. SUMMER 2021 07
OR
13 WINTER 2022 04
List out different methods available for String class in java
and explain any two with proper example
Explain about Final class, Fields, Methods SUMMER 2021 03
14 OR
WINTER 2022 03
What is the final class? Why they are used?
What is Dynamic binding? Show with an example how SUMMER 2021 03
15
dynamic binding works.
16 Explain the concept of finalization. SUMMER 2021 03

Write a java program to implement the multiple inheritance SUMMER 2021 07


17
concepts for calculating area of circle and square.
What is polymorphism? Explain dynamic binding with WINTER 2021 07
18
example.
Explain following keywords WINTER 2021 04
19
(1) super (2) this
20 Define types of polymorphism SUMMER 2022 03

21 Differentiate between Abstract class and Interfaces SUMMER 2022 03

Compare String with StringBuffer. Also, write a program to WINTER 2022 07


22
count the occurrence of a character in a string.
Discuss BufferedInputStream and BufferedOutputStream WINTER 2022 07
23
classes with an example.

Object Oriented Programming -I


S. S. AGRAWAL INSTITUTE OF ENGINEERING & TECHNOLOGY, NAVSARI
DEPARTMENT OF COMPUTER ENGINEERING

Unit 6: Exception Handling, I/O, abstract classes and interfaces

1 Define Interface and explain how it differs from the class SUMMER2020 04

What is an Exception? List out various built-in exceptions in SUMMER2020 07


2 JAVA and explain any one Exception class with suitable
example.
WINTER 2020 07
3 Write a program to rise and handle divide by zero exception.

Write a method for computing xy doing repetitive WINTER 2020 07


multiplication. X and y are of type integer and are to be given
4
as command line arguments. Raise and handle exception(s) for
invalid values of x and y.
What is Exception? Demonstrate how you can handle WINTER 2020 04
6
different types of exception separately.
WINTER 2020 07
7 Explain Comparable and Cloneable interface.

Explain in detail how inheritance and polymorphism are SUMMER 2021 07


8
supported in java with necessary examples
What is an Exception? Explain the exception hierarchy. SUMMER 2021 07
Explain how to throw, catch and handle Exceptions
OR
9 Demonstrate use of try-catch construct in case of hierarchical SUMMER 2022 07
Exception Handling. (i.e handling various exception belongs
to the
exception hierarchy)
SUMMER 2021 07
10 Explain the interface with an example program. WINTER 2021

07
11 Explain File class with its methods.

Write a JAVA program to read student.txt file and display the SUMMER2020 04
12
content

Explain usage of class FileInputStream and FileOutput-Stream WINTER 2020 04


13
by giving an example.

Object Oriented Programming -I


S. S. AGRAWAL INSTITUTE OF ENGINEERING & TECHNOLOGY, NAVSARI
DEPARTMENT OF COMPUTER ENGINEERING

Write a program that counts the number of words in a text WINTER 2021 07
14 file. The file name is passed as a command line argument. The
words in the file are separated by white space characters.
Write a program that illustrates interface inheritance. WINTER 2021 07
Interface P is extended by P1 and P2. Interface P12 inherits
15 from both P1 and P2. Each interface declares one constant
and one method. class Q implements P12. Instantiate Q and
invoke each of its methods. Each method displays one of the
constants.
What is an Exception? Explain try, catch and finally with WINTER 2021 07
16
example.

What is the keyword “throw” used for? What is the keyword WINTER 2021 03
17
“throws” used for?
Write a java program that evaluates a math expression given SUMMER 2022 07
18 in string
form from command line arguments.
Explain file io using byte stream with appropriate example. SUMMER 2022 07
19
hint: use FileInputStream, FileOutputStream
Explain file io using character stream with appropriate SUMMER 2022 04
20 example.
hint: use FileReader, FileWriter
Explain following Java keywords using appropriate examples: SUMMER 2022 03
21
i) throw, ii) throws, iii) finally
WINTER 2022 04
22 Write exception handling mechanisms in JAVA.

Create a class called Student. Write a student manager WINTER 2022 07


23 program to
manipulate the student information from files by using
FileInputStream and FileOutputStream.

Object Oriented Programming -I


S. S. AGRAWAL INSTITUTE OF ENGINEERING & TECHNOLOGY, NAVSARI
DEPARTMENT OF COMPUTER ENGINEERING

Unit 7: JAVAFX basics and Event-driven programming and animations

1 Explain in brief: Color class and its methods. SUMMER2020 03

Enlist various layout panes and explain any two in detail. SUMMER2020 07
2 OR WINTER 2021 07
List out various layout panes in JavaFX. WINTER 2022 03
3 Write importance of JAVAFX compare to AWT and Swing. SUMMER2020 04

How do you create a Scene object? How do you set a scene SUMMER2020 07
in a stage?
4
Is it possible to create multiple scenes? Write a program to
place a circle in the scene and fill circle with red color.

5 WINTER 2020 03
Explain mouse and key event handler in JavaFX

6 Explain following classes in JavaFX. WINTER 2020 03


1) Color class 2) font class 3) Image and image view class
7 Explain the concept of inner classes and explain the types of SUMMER2021 07
inner classes with an example program.
8 Explain about adapter classes and mouse events with an SUMMER2021 04
example.
9 WINTER 2021 04
Explain Inner class with example
10 SUMMER2022 07
Write a short note on JAVAFX controls
11 WINTER 2022 07
Explain the architecture of JavaFX

Unit 8:JAVAFX UI controls and multimedia


Explain following controls WINTER 2020 04
1
1) text-Area 2) scrollbar 3) checkbox 4) combo-box
Explain following controls WINTER 2021 04
2
(1) Checkbox (2) Radio Button (3) Textfield (4) Label
SUMMER2022 07
3 Develop a GUI based application using JAVAFX controls.
WINTER 2022 03
4 List out JavaFX UI controls and explain any one in detail.
WINTER 2022 04
5 Demonstrate animation effect in JavaFX.

Object Oriented Programming -I


S. S. AGRAWAL INSTITUTE OF ENGINEERING & TECHNOLOGY, NAVSARI
DEPARTMENT OF COMPUTER ENGINEERING

Unit 9: Binary I/O ,Recursion and Generics


Differentiate between Text I/O and Binary I/O. SUMMER2020 04
1
WINTER 2021
SUMMER2020 03
2 How do you declare a generic type in a class? Explain.
SUMMER2021 04
3 Write short notes about I/O stream classes
What is Generic programming and why is it needed? Explain SUMMER2021 03
4 with example. List the limitations and restrictions of generic
programming
SUMMER2021 04
5 Explain about Proxy class, Interface and Methods.

Unit 10: List, Stacks, Queues and Priority Queues


SUMMER2020 04
1 Explain ArrayList class
What method do you use to obtain an element in the SUMMER2020 04
2
collection from an iterator? Explain with example.
What is Collection? Explain list, stack, queue classes. WINTER 2020 03
3 OR
What is Java Collection? WINTER 2022 03
SUMMER 2022 07
4 Write a short note on Java Collections
Write a program to add input elements in ArrayList SUMMER 2022 07
collection class, then sort the inserted elements in
5
descending order and display the sorted output.
hint: use Collections.reverseOrder()
WINTER 2022 04
6 List out methods of Iterator and explain it.
WINTER 2022 03
7 What is Vector class?

Unit 11: Sets and Maps


SUMMER2020 03
1 Compare Set and List interfaces.
07
2 Explain Set and Map in Java with example

Unit 12: Concurrency


Explain Thread life cycle in detail. Write a program to SUMMER2020 07
1
create a child thread to print integer numbers 1 to 10.
What do you understand by thread? Describe the complete WINTER 2020 07
2
life cycle of thread.
Explain the thread state, thread properties and thread SUMMER2021 04
3
synchronization

Object Oriented Programming -I


S. S. AGRAWAL INSTITUTE OF ENGINEERING & TECHNOLOGY, NAVSARI
DEPARTMENT OF COMPUTER ENGINEERING

WINTER 2021 07
4 What is thread? Describe the complete life cycle of thread.
WINTER 2021 07
5 Explain Thread Synchronization with example.
WINTER 2022
SUMMER 2022 04
6 Explain multithreading using Thread class
SUMMER 2022
7 Explain multithreading using Runnable interface
In multi-threading using Thread class, explain with an SUMMER 2022 04
8 example how a start() method call invokes the run method
of the class extending Thread class.
In multi-threads using the Runnable interface, explain with SUMMER 2022 04
9 an example how a start() method calls the run() method of
a class implementing a runnable interface.

Name of Faculty Ms. B. G. Patel

Date of Submission

Sign of Faculty

Object Oriented Programming -I

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