0% found this document useful (0 votes)
4 views

1904302-object-oriented-programming

This document is a question bank for the Object Oriented Programming course at SRM Valliammai Engineering College, specifically for the III semester of the academic year 2022-2023. It includes various questions categorized into parts A, B, and C, covering topics such as OOP concepts, Java fundamentals, classes, constructors, strings, and exception handling. The questions are designed to assess different levels of understanding and competencies in the subject matter.

Uploaded by

yogidhayogidha
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views

1904302-object-oriented-programming

This document is a question bank for the Object Oriented Programming course at SRM Valliammai Engineering College, specifically for the III semester of the academic year 2022-2023. It includes various questions categorized into parts A, B, and C, covering topics such as OOP concepts, Java fundamentals, classes, constructors, strings, and exception handling. The questions are designed to assess different levels of understanding and competencies in the subject matter.

Uploaded by

yogidhayogidha
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 10

SRM VALLIAMMAI ENGINEERING COLLEGE

(An Autonomous Institution)


SRM Nagar, Kattankulathur – 603 203

DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING


CYBER SECURITY
&

INFORMATION TECHNOLOGY

QUESTION BANK

III SEMESTER
1904302–Object Oriented Programming
Regulation – 2019

Academic Year 2022 – 2023(odd Semester)

Prepared by

Dr. B. Muthusenthil ., Associate Professor/CSE


Dr. V. Dhanakoti ., Associate Professor/CSE
Dr.L. Karthikeyan A.P(Sel.G)/CSE
Ms. R. Thenmozhi A.P(Sel.G)/IT
Ms. N.J. Subashini (Sel.G)/CYS
Dr. S. Ravikumar (Sel.G)/AI&DS
SRM VALLIAMMAI ENGINEERING COLLEGE
(An Autonomous Institution)
SRM Nagar, Kattankulathur – 603 203.
Dept of CSE, Cyber Security and IT
QUESTION BANK
SUBJECT : 1904302–Object Oriented Programming

SEM / YEAR: III Semester/ II Year


UNIT I INTRODUCTIONTOOOPANDJAVAFUNDAMENTALS
Object Oriented Programming - Abstraction – Encapsulation- Inheritance -Polymorphism-
Characteristics of Java – The Java Environment - Java Source File -Structure – Compilation.
Fundamental Programming Structures in Java – Data Types, Variables, Operators, Control Flow,
Arrays.
PART – A
Q.
Questions BT Level Competence
No.
1 Define OOP. BTL1 Remembering
2 Define abstraction and encapsulation. BTL1 Remembering
3 List the features of Object Oriented Programming. BTL1 Remembering
4 Give the contents of Java Environment (JDK). BTL1 Remembering
5 Define Inheritance and Polymorphism. BTL1 Remembering
6 What is a variable? How to declare variable in java? BTL1 Remembering
7 List any 4 types of escape sequences characters with example. BTL1 Remembering
8 Infer how Java supports platform independency. BTL2 Understanding
9 Classify the steps for execution of a java program. BTL2 Understanding
10 Identify the three major sections of java source file. BTL2 Understanding
11 Classify the types of inheritance in java. BTL2 Understanding
12 Discuss about the three types of Comment line in java BTL2 Understanding
13 Examine the difference between static variable and instance variable. BTL3 Applying
14 Explain Byte code? What is JVM and JIT? BTL3 Applying
15 Examine the features of Java Language. BTL3 Applying
16 Modify the following while loop into for loop
int n=10;
int i=1;
while(n>5)
{ BTL3 Applying
i=i*2;
n=n+2;
}
System.out.println(i);
17 Outline integer data types in java. BTL4 Analyzing
18 Differentiate break and continue statements. BTL4 Analyzing
19 What are public static void main(String args[]) and System.out.println()? BTL4 Analyzing
20 Differentiate while() and do..while() loop BTL4 Analyzing
21 Is JVM’s platform independent? Justify. BTL5 Evaluating
Assess the method to declare array and how to allocate the memory to for
22 BTL5 Evaluating
array.
Assess the error in the following array declaration and rectify them.
23
a. int a[]=new [10]int; BTL5 Evaluating
float []b=new int[10.5];
24 Create a java program using control flow statements. BTL6 Creating
PART – B
Describe the various features of the Object Oriented Programming
1 BTL1 Remembering
Language.(13)
Define polymorphism. With an example, describe in detail about how
2 BTL1 Remembering
polymorphism plays a useful role in Java.(13)
3 List the types of arrays in detail with example program.(13) BTL1 Remembering
State the key elements of Object Oriented Programming and briefly explain
4 BTL1 Remembering
it.(13)
With relevant examples describe abstraction and encapsulation. Write a java
5 BTL2 Understanding
program that uses an abstraction and encapsulation.(13)
i) Illustrate the typical java program structure in detail.(7)
6 BTL2 Understanding
ii) Summarize the general java program compilation and execution. (6)
Discuss the following:
7 i) Control flow statements in Java (7) BTL2 Understanding
ii) Data types in Java (6)
Discuss in detail about the different control flow statements in Java with
8 example (13) BTL2 Understanding

Explain with the help of a program how object oriented programming


9 BTL2 Understanding
overcomes the shortcomings of procedure oriented programming.(13)
i) Explain in detail the various operators in Java. (8)
10 BTL3 Applying
ii) Examine the rules for variable declaration (5)
Implement a program in Java that interchanges the odd and even
11 BTL3 Applying
components in an array.(13)
Write a Java program to sort set of names stored in an array in alphabetical
12 BTL3 Applying
order.(13)
Explain in detail about static variable and static method in Java with
13 BTL4 Analyzing
example.(13)
Explain how two numbers can be swapped with and without temporary
14 BTL4 Analyzing
variables. Write a java program for each(13)
15 Explain the characteristics of OOPs.(13) BTL4 Analyzing
Consider the following series of number:
16
0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, etc.
Write a Java program to print the above series by getting the numbers of BTL5 Evaluating
values to be printed from the user
Create a simple Java program to implement basic Calculator
17 BTL6 Creating
operations.(13)
PART – C
How would you find a given two one dimensional arrays A and B which BTL5 Evaluating
are sorted in ascending order. Write a Java program to merge them into a
1
single sorted array, see that is contains every item from array A and B, in
ascending order.(15)
i. Can you make the keyword public to private in main() method? Justify (3) BTL5 Evaluating
2
ii. Write a java program using array to perform
Sum of all values in an array (6)
Find the greatest number in an array(6)
Create a java program using local, static, instance variable with proper BTL6 Creating
3
justification.(15)
Develop a Java Program to find BTL6 Creating
4 i) Largest of three numbers using Ternary Operator (8)
ii) Smallest of three numbers using Ternary Operator (7)
5 Develop a Java program to design the following pattern using any control BTL6 Creating
flow statements
*
* *
* * *
* * * *
* * * * *

UNIT II CLASSES AND CONSTRUCTORS


Defining classes in java -inheritance – Super classes- sub classes –Protected members – constructors in
sub classes- the Object class – abstract classes and methods- final methods and classes – Interfaces –
defining an interface, implementing interface, differences between classes and interfaces and extending
interfaces.

PART – A

Q.
Questions BT Level Competence
No.
1 Define abstract class. BTL1 Remembering
2 What is the use of Inheritance and what are its advantages? BTL1 Remembering
3 List the methods provided by the object class. BTL1 Remembering
4 Tell how interfaces can be extended. BTL1 Remembering
5 Define Interface. BTL1 Remembering
List the order of execution of constructor during creation of class
6 BTL1 Remembering
hierarchy?
7 How can you access the super class version of an overridden method? How? BTL2 Understanding
8 Do you declare private and protected modifiers for variables in interfaces? BTL2 Understanding
Justify
9 Infer how to access interface variables. BTL2 Understanding
10 Illustrate ‘static’ keyword and its use. BTL2 Understanding
11 List down the uses of final classes BTL2 Understanding
12 Whether a subclass can access all members of super class? How? BTL3 Applying
13 Can we instantiate an abstract class? Justify BTL3 Applying
14 Deduce the meaning for the keywords: final, finalize. BTL3 Applying
15 When to use final variable and method? BTL3 Applying
16 What is the difference between superclass and subclass? BTL4 Analyzing
17 What is the difference between classes and interface? BTL4 Analyzing
18 What will be the effect if an abstract class is private? BTL4 Analyzing
19 Does java support multiple inheritance? BTL4 Analyzing
20 Does a class implement more than one interface? Write an example for it. BTL5 Evaluating
21 What's the difference between an interface and an abstract class? BTL5 Evaluating
22 How to make a statement execute before the main method is invoked by JVM? BTL5 Evaluating
23 How to create an inner class? BTL6 Creating
24 Write a simple program to implement abstract class. BTL6 Creating
PART – B

Define Inheritance? With diagrammatic illustration and java


1 BTL1 Remembering
programs illustrate the different types of inheritance.(13)
Define multiple inheritance and how to perform multiple inheritance in
2 BTL1 Remembering
Java.(13)
Describe Abstract classes with an example program. Also describe the
3 BTL1 Remembering
properties of abstract classes.(13)
4 Describe interfaces & how to implement it with a Java Program?(13) BTL1 Remembering
Illustrate a Java Program to implement method Overloading and method
5 BTL2 Understanding
overriding.(13)
6 Illustrate the about inner classes and its types with examples.(13) BTL2 Understanding
7 Summarize the concept of supper classes and sub classes.(13) BTL2 Understanding
8 Explain briefly about final methods, variables and classes with sample BTL2 Understanding
program contains all.(13)
Explain how to define an interface? Why do the members of interface are
9 BTL3 Applying
static and final?(13)
Explain extending interfaces with a Program & Variables in a
10 BTL3 Applying
Program.(13)
List and explain the methods used in object class with illustrative
11 BTL3 Applying
Program.
How can we overload the constructor? Explain by using multilevel
12 BTL4 Analyzing
inheritance(13)
How to use the super keyword to invoke a superclass's variable, constructor
13 BTL4 Analyzing
and methods. Illustrate with example program. (13)
i.Is it possible to call a sub class constructor from super class constructor? Justify
14
with example program(6)
ii.Can we have this and super in the same constructor? Justify with example BTL4 Analyzing
program(7)
How many interfaces can a class inherit and can a same interface be
15 BTL5 Evaluating
inherited by 2 different classes? Explain it.(13)
Can you give a detailed sketch of the differences between Single,
16 BTL5 Evaluating
Multilevel & Hierarchical Inheritance? .(13)
Declare an abstract class to represent a bank account with data
members name, account number, address and abstract methods withdraw
and deposit. Method display() is needed to show balance. Derive a
17 subclass Savings Account and add the following details: return on BTL6 Creating
investment and the method calcAmt() to show the amount in
theaccountafter1year.CreateinstanceofSavings Account and show the use
of withdraw and deposit abstract methods.(13)
PART – C

Where you use final keyword in java ? Explain with illustrative Program(15)
1 BTL5 Evaluating
What is inheritance? How inheritance is implemented in java? Create a
class Book and define display method to display book information. Inherit
2 Reference_Book and Magazine classes from Book class and override BTL5 Evaluating
display method of Book class in Reference_Book and Magazine classes.
Make necessary assumptions required.(15)
Develop an Interest interface which contains simpleInterest and
3 compInterest methods and static final field of Rate 25%. Write a class to BTL5 Evaluating
implement those methods.(15)
Create an abstract Reservation class which has Reserve() abstract
4 method. Implement the sub-classes like ReserveTrain and ReserveBus BTL6 Creating
classes and implement the same. Use necessary variables, methods for
reserving tickets(15)
5 What is abstract class? Explain situations in which abstract classes are BTL6 Creating
used.(15)

UNIT-III STRINGS AND EXCEPTION HANDLING


String Operations - Exceptions - exception hierarchy - throwing and catching exceptions – built-in
exceptions, creating own exceptions, packages.
PART – A
Q.
Questions BT Level Competence
No.
1 What is meant by Strings in java? BTL1 Remembering
2 Define Exception. BTL1 Remembering
3 List the different categories of java packages. BTL1 Remembering
4 State the general form of an exception handling block. BTL1 Remembering
5 List the ways to search the strings. BTL1 Remembering
6 What is meant by packages? BTL1 Remembering
7 What are the constructors used for creating a String with byte array? BTL2 Understanding
8 What are the various segments of an exception handling mechanism? BTL2 Understanding
9 Identify the advantages of using exception handling mechanism. BTL2 Understanding
10 Identify the steps involved in creating packages. BTL2 Understanding
11 Define the two types of exception. Explain them BTL2 Understanding
12 How can you directly access all classes in the packages? BTL3 Applying
13 How can you access the class if it is declared without any access modifiers? BTL3 Applying
14 How to check the starting and ending point of a string? BTL3 Applying
Show what is the purpose of the finally clause of a try-catch-finally
15 statement? BTL 3 Applying
What value is assigned to String class type when it is automatically
16 BTL4 Analyzing
initialized and specify some operations that are performed using string?
17 Develop a Java application to reverse the given String. BTL4 Analyzing
18 Point out the syntax of defining and importing user-defined packages. BTL 4 Analyzing
19 Create a String object similar to another string. BTL4 Analyzing
20 Why java generates unreachable code error during multiple catch BTL5 Evaluating
statements?
21 Can an exception be rethrown? How? BTL5 Evaluating
22 Can you tell how to create a string with an array of characters? BTL5 Evaluating
23 Design a java program to concatenate two string? BTL6 Creating
24 What happens if an exception are not provided by the user? BTL6 Creating
PART – B
Define exception. Why it is needed? Explain the different types of
1 exceptions and the exception hierarchy with appropriate examples using BTL1 Remembering
Java.(13)
2 Define package? How it is created and implemented in JAVA? (13) BTL1 Remembering
List the benefits of using packages? Write down the steps in creating a
3 BTL1 Remembering
package and using it in a java program with an example.(13)
4 Define String? How Strings are handled in java? Explain with code. (13) BTL1 Remembering
5 What is package? How to add a class into a package? (13) BTL2 Understanding
Discuss package concept to perform arithmetic operations. Explain how to
6 BTL2 Understanding
use it? (13)
Illustrate the use of try-catch clauses by sample statements of rare type of
7 BTL2 Understanding
run time error. (13)
Explain the following in Strings with example program: BTL2 Understanding
8 i) Concatenation(4)
ii) Substrings(4)
iii) Case Conversion(5)
How exceptions are handled in Java? Explain the important methods used
9 BTL3 Applying
to handle exception.(13)
Explain about java building String and StringBuffer c l a s s functions
10 BTL3 Applying
with an example.(13)
Describe the following concepts with example
11 BTL3 Applying
i. Try-catch-throw paradigm. (7)
ii.Exception specification. (6)
How do you compare two strings by ignoring the case? Give an
12 BTL4 Analyzing
example.(13)
13 Discuss in detail about exception handling constructs and write a program to BTL4 Analyzing
illustrate Divide by zero exception.(13)
14 Assess in detail about the reusable classes in Packages.(13) BTL4 Analyzing
Evaluate a try block that is likely to generate three types of exception and
15 then incorporate necessary catch blocks and handle them BTL5 Evaluating
appropriately.(13)
16 Discuss briefly about
i. String class (7) BTL5 Evaluating
ii. StringBuffer class (6)
Draw an exception hierarchy in java and explain with examples throwing
17 BTL6 Creating
and catching exceptions and common exceptions. (13)
PART – C
1 i. Differentiate StringBuffer and String Class(8) BTL5 Evaluating
ii. Write a java program to find the given string is palindrome or not (7)
There are three statements in a try block–statement1,statement2 and
statement3. After that there is a catch block to catch the exceptions occurred
2 BTL5 Evaluating
in the try block. Assume that exception has occurred in statement2. Does
statement3 get executed or not?(15)
3 Evaluate in what order multiple catch statements should be written with a BTL5 Evaluating
program ?(15)
Create a simple java program to illustrate the concept of packages and its
4 BTL6 Creating
types in detail.(15)
Develop the Java program to handle
5 BTL 6 Creating
i. Checked exceptions
ii. Unchecked Exceptions

UNIT IV I/O AND MULTITHREADING


Input / Output Basics – Streams – Byte streams and Character streams – Reading and Writing Console
– Reading and Writing Files, Multi-threading, thread life cycle, creating threads, synchronizing
threads, Inter-thread communication.
PART – A
Q.
Questions BT Level Competence
No.
1 Define Stream. BTL1 Remembering
2 What is meant by an input and output stream? BTL1 Remembering
3 List the types of Streams in java and the methods defined in File class. BTL1 Remembering
4 Define Thread and Multithreading. BTL1 Remembering
5 List the types of methods used for Thread communications. BTL1 Remembering
6 Tabulate the various states of a thread. BTL1 Remembering
7 Illustrate the use of write() method in PrintStream class. BTL2 Understanding
8 Summarize the Stream Tokenizer and RandomAccessFile. BTL2 Understanding
9 What are the rules for performing context switch? BTL2 Understanding
10 Identify the ways in which the threads may be created. BTL2 Understanding
11 How to create a BufferedReader object? BTL2 Understanding
12 How to read a string from the keyboard? BTL3 Applying
13 Why there are predefined Thread class and Runnable interface for defining a BTL3 Applying
thread class? Explain
14 Which thread is executed when java program starts up? BTL3 Applying
15 Differentiate between yielding and sleeping. BTL3 Applying
What is the difference between the Reader/writer class and the
16 BTL4 Analyzing
InputStream/OutputStream class?
Which value will be returned by readLine() method when it reached the
17 BTL4 Analyzing
End of File?
Differentiate the use and constructors available in FileInputStream and
18 BTL4 Analyzing
FileOutputStream class.
Classify what are three ways in which a thread can enter the waiting state?
19 BTL 4 Analyzing
20 Assess how will you set and get the priority for a thread. BTL5 Evaluating
21 How can you know when another thread has finished its execution? Explain BTL5 Evaluating
22 Why synchronization is required in thread? BTL5 Evaluating
23 Prepare how to create a thread using Thread Class. BTL6 Creating
24 Generalize what is daemon thread and which method is used BTL 6 Creating
to create the daemon thread.
PART – B
1 List the two ways of implementing threads with example.(13) BTL1 Remembering
2 Label the different states of a thread and explain it.(13) BTL1 Remembering
3 What are input and output streams? Explain them with illustrations.(13) BTL1 Remembering
Describe the most commonly used classes for handling i/o related
4 BTL1 Remembering
exceptions.(13)
5 What is a thread? Describe the complete life cycle of thread.(13) BTL2 Understanding
Summarize the concept of streams and stream classes and their
6 BTL2 Understanding
classification.(13)
7 Summarize briefly about thread synchronization with an example.(13) BTL2 Understanding
8 Show what is synchronization? What is the price one pays if one uses BTL2 Understanding
synchronization? (13)
Examine Inter thread Communication. Why is this feature required and
9 BTL3 Applying
how is it achieved?(13)
Describe in detail about multithread programming with example. (13)
10 BTL3 Applying
While reading a file how would you check whether you have reached the
11 BTL3 Applying
end of the file.(13)
Explain the task for running a task in a separate thread and
12 BTL4 Analyzing
running multiple threads.(13)
Differentiate byte stream and character stream with necessary
13 BTL4 Analyzing
examples.(13)
i. Describe how to implement runnable interface for creating and starting
BTL4 Analyzing
threads. (7)
14
ii. Define threads. Describe in detail about thread life cycle. (6)
Evaluate which one is better to implement thread in Java extending
15 BTL5 Evaluating
:Thread class or implementing Runnable.(13)
16 Illustrate in brief about BTL5 Evaluating
i. Reading from a file. (7)
ii. Writing in a file. (6)
17 Design two threads to display odd numbered element in an array of size50
and even numbered element in another array of size 50.Create instances BTL6 Creating
of the above thread and run them.(13)
PART – C
Assess with an example program to illustrate the use of join(),
1 wait(),notify(),and notifyall() associated with multithreaded BTL5 Evaluating
programming.(15)
To avoid deadlock in Java where N threads are accessing N shared
2 BTL5 Evaluating
resources : Conclude.(15)
Develop an application to show multithreaded program to show hours,
3 BTL6 Creating
minutes and seconds on separate threads.(15)
Generalize multithreading for an sample sequence of strings with a delay
4 BTL6 Creating
of 1000 millisecond for displaying it using Java threads . (15)
How does InputStream.read() method work? Can you give me some
5 BTL6 Creating
sample code?(15)

UNIT V EVENTDRIVENPROGRAMMING
Graphics programming - Frame – Components - working with 2D shapes - Using color and fonts, -
Basics of event handling - event handlers - adapter classes - actions - AWT event hierarchy.
PART – A
Q.
Questions BT Level Competence
No.
1 Define Event Listener. BTL1 Remembering
2 List the methods contained in EventObject class. BTL1 Remembering
3 Define canvas and window. BTL1 Remembering
4 List the various methods available for drawing polygons, ellipses, arcs. BTL1 Remembering
5 Define the component class. BTL1 Remembering
6 State the order of execution of applet methods. BTL1 Remembering
7 What is AWT Event class? BTL2 Understanding
8 What is the lifecycle of an Applet? BTL2 Understanding
9 What are the various controls supported by AWT? BTL2 Understanding
10 Name three Component subclasses that support painting. BTL2 Understanding
11 What is the purpose of the enableEvents() method? BTL2 Understanding
12 Which package contains the methods to receive and process events and the BTL3 Applying
method that support the events?
Establish the use of color class and the methods provided by color class.
13 BTL3 Applying
14 Which containers use a border Layout as their default layout? BTL3 Applying
15 How to place controls in a window and remove controls from a window? BTL3 Applying
16 Which event is generated during checkbox operations? BTL4 Analyzing
17 When the frame window is visible? BTL4 Analyzing
18 What is the difference between init() and start() method? BTL4 Analyzing
19 Identify the constants associated with Adjustment Event class. BTL4 Analyzing
20 Assess what happens when we call repaint() method. BTL5 Evaluating
21 How would you change the location of the event and get the co-ordinates of BTL5 Evaluating
an event occurred?
What class is the top of the AWT event hierarchy?
22 BTL5 Evaluating
23 How will you create an object of an item event? BTL6 Creating
24 How will you create a TextArea object and TextField object? BTL6 Creating
PART – B
1 Describe AWT controls in detail.(13) BTL1 Remembering
2 List and explain the 2D Geometric Primitives.(13) BTL1 Remembering
3 State and Explain the basic ofAWT Event handling in detail.(13) BTL1 Remembering
i. Describe the AWT event hierarchy(6)
4 BTL1 Remembering
ii. Describe the adapter classes using example(7)
Illustrate briefly about the working of frames and setting the properties to
5 BTL2 Understanding
it.(13)
Summarize the component class and clearly explain its various
6 BTL2 Understanding
methods.(13)
7 Identify the methods of graphic class in applet.(13) BTL2 Understanding
8 What is the use of WindowListener? (13) BTL2 Understanding
9 Explain the Action Listener with simple program.(13) BTL3 Applying
10 Explain the event delegation approach and event listener.(13) BTL3 Applying
How applet differs from applications and explains the applet life cycle in
11 BTL3 Applying
brief? (13)
Which steps are must for event handling and what are the models available
12 BTL4 Analyzing
for event handling?(13)
Analyze the Creating Frame Window by Instantiating and extending Frame
13 BTL4 Analyzing
class.(13)
Write an AWT GUI application. Each time the "Count" button is clicked,
14 BTL4 Analyzing
the counter value shall increase by 1.(13)
Can you write a program to draw 2D circle, rectangles and Fill those
15 BTL5 Evaluating
shapes with solid colors.(13)
How are the elements of different layouts organized? Explain with suitable
16 BTL5 Evaluating
code
Create a simple menu application that enables a user to select one of the following
17 BTL6 Creating
items:
a. Radio1 b. Radio2 c. Radio3 d. Radio4 e. Radio5
i. From the menu bar of the application (5)
ii. From a pop-up menu (4)
iii.From a toolbar (4)
PART – C
Write a java program to construct a shape by adding a rectangle to an
1 BTL5 Evaluating
ellipse.(15)
Write a java program to implement a 3 frame in a window, In each frame
2 create rectangle and fill each one with BTL5 Evaluating
(i) color (ii) texture and (iii) gradient.(15)
Write a java program to implement event handling by implementing
3 BTL6 Creating
ActionListener(15).
Write a java program to draw basic shapes using a GUI application.(15)
4 BTL6 Creating
Write a program to create a frame with the following menus, such that the
5 BTL6 Creating
corresponding geometric object is created when a menu is clicked.
a. Circle. (4)
b. Rectangle. (4)
c. Line. (4)
d. Diagonal for the rectangle. (3)

You might also like