Unit - 1 Introduction To Oop and Java Fundamentals: Cs8392 Object Oriented Programming It/Jjcet

Download as pdf or txt
Download as pdf or txt
You are on page 1of 29

CS8392 OBJECT ORIENTED PROGRAMMING IT/JJCET

UNIT -1 INTRODUCTION TO OOP AND JAVA FUNDAMENTALS

MULTIPLE CHOICE QUESTIONS

1) Which of the following option leads to the portability and security of Java?
a. Bytecode is executed by JVM
b. The applet makes the Java code secure and portable
c. Use of exception handling
d. Dynamic binding between objects

2) Which of the following is not a Java features?


a. Dynamic
b. Architecture Neutral
c. Use of pointers
d. Object-oriented

3) The \u0021 article referred to as a


a. Unicode escape sequence
b. Octal escape
c. Hexadecimal
d. Line feed

4) _____ is used to find and fix bugs in the Java programs.


a. JVM
b. JRE
c. JDK
d. JDB

5) Which of the following is a valid declaration of a char?


a. char ch = '\utea';
b. char ca = 'tea';
c. char cr = \u0223;
d. char cc = '\itea';

6) What is the return type of the hashCode() method in the Object class?
a. Object
b. int
c. long
d. void
CS8392 OBJECT ORIENTED PROGRAMMING IT/JJCET

7) Which of the following is a valid long literal?


a. ABH8097
b. L990023
c. 904423
d. 0xnf029L

8) What does the expression float a = 35 / 0 return?


a. 0
b. Not a Number
c. Infinity
d. Run time exception

9) Evaluate the following Java expression, if x=3, y=5, and z=10:


++z + y - y + z + x++
a. 24
b. 23
c. 20
d. 25

10) What will be the output of the following program?


public class Test {
public static void main(String[] args) {
int count = 1;
while (count <= 15) {
System.out.println(count % 2 == 1 ? "***" : "+++++");
++count;
} // end while
} // end main
}
a. 15 times ***
b. 15 times +++++
c. 8 times *** and 7 times +++++
d. Both will print only once
CS8392 OBJECT ORIENTED PROGRAMMING IT/JJCET

11) Which of the following tool is used to generate API documentation in HTML
format from doc comments in source code?
a. javap tool
b. javaw command
c. Javadoc tool
d. javah command

12) Which of the following for loop declaration is not valid?


a. for ( int i = 99; i >= 0; i / 9 )
b. for ( int i = 7; i <= 77; i += 7 )
c. for ( int i = 20; i >= 2; - -i )
d. for ( int i = 2; i <= 20; i = 2* i )

13) Which method of the Class.class is used to determine the name of a class
represented by the class object as a String?
a. getClass()
b. intern()
c. getName()
d. toString()

14) In which process, a local variable has the same name as one of the instance
variables?
a. Serialization
b. Variable Shadowing
c. Abstraction
d. Multi-threading

15) Which of the following is true about the anonymous inner class?
a. It has only methods
b. Objects can't be created
c. It has a fixed class name
d. It has no class name

16) Which package contains the Random class?


a. java.util package
b. java.lang package
c. java.awt package
d. java.io package
CS8392 OBJECT ORIENTED PROGRAMMING IT/JJCET

17) What do you mean by nameless objects?


a. An object created by using the new keyword.
b. An object of a superclass created in the subclass.
c. An object without having any name but having a reference.
d. An object that has no reference.

18) An interface with no fields or methods is known as a ______.


a. Runnable Interface
b. Marker Interface
c. Abstract Interface
d. CharSequence Interface

19) Which of the following is a reserved keyword in Java?


a. object
b. strictfp
c. main
d. system

20) Which keyword is used for accessing the features of a package?


a. package
b. import
c. extends
d. export

21) In java, jar stands for_____.


a. Java Archive Runner
b. Java Application Resource
c. Java Application Runner
d. None of the above

22) What will be the output of the following program?


public class Test2 {
public static void main(String[] args) {
StringBuffer s1 = new StringBuffer("Complete");
s1.setCharAt(1,'i');
s1.setCharAt(7,'d');
System.out.println(s1);
} }
CS8392 OBJECT ORIENTED PROGRAMMING IT/JJCET

a. Complete
b. Iomplede
c. Cimpletd
d. Coipletd

23) Which of the following is false?


a. The rt.jar stands for the runtime jar
b. It is an optional jar file
c. It contains all the compiled class files
d. All the classes available in rt.jar is known to the JVM

24) What is the use of \w in regex?


a. Used for a whitespace character
b. Used for a non-whitespace character
c. Used for a word character
d. Used for a non-word character

25) What is meant by the classes and objects that dependents on each other?
a. Tight Coupling
b. Cohesion
c. Loose Coupling
d. None of the above

26) Given,
int values[ ] = {1,2,3,4,5,6,7,8,9,10};
for(int i=0;i< Y; ++i)
System.out.println(values[i]);
Find the value of value[i]?
a. 10
b. 11
c. 15
d. None of the above
CS8392 OBJECT ORIENTED PROGRAMMING IT/JJCET

27) What should be the execution order, if a class has a method, static block,
instance block, and constructor, as shown below?
public class First_C {
public void myMethod()
{
System.out.println("Method");
}
{
System.out.println(" Instance Block");
}
public void First_C()
{
System.out.println("Constructor ");
}
static {
System.out.println("static block");
}
public static void main(String[] args) {
First_C c = new First_C();
c.First_C();
c.myMethod();
}
}
a. Instance block, method, static block, and constructor
b. Method, constructor, instance block, and static block
c. Static block, method, instance block, and constructor
d. Static block, instance block, constructor, and method

28) Which of the following creates a List of 3 visible items and multiple selections
abled?
a. new List(false, 3)
b. new List(3, true)
c. new List(true, 3)
d. new List(3, false)
CS8392 OBJECT ORIENTED PROGRAMMING IT/JJCET

29) In which memory a String is stored, when we create a string


using new operator?
a. Stack
b. String memory
c. Heap memory
d. Random storage space

30) What is the use of the intern() method?


a. It returns the existing string from memory
b. It creates a new string in the database
c. It modifies the existing string in the database
d. None of the above

31) Which function among the following can’t be accessed outside the class in java
in same package?
a) public void show()
b) void show()
c) protected show()
d) static void show()

32) Which of the following is not OOPS concept in Java?


a) Inheritance
b) Encapsulation
c) Polymorphism
d) Compilation

33) Which of the following is a type of polymorphism in Java?


a) Compile time polymorphism
b) Execution time polymorphism
c) Multiple polymorphism
d) Multilevel polymorphism

***
CS8392 OBJECT ORIENTED PROGRAMMING IT/JJCET

UNIT-2 INHERITANCE AND INTERFACES

MULTIPLE CHOICE QUESTIONS

1) Which option is false about the final keyword?


a. A final method cannot be overridden in its subclasses.
b. A final class cannot be extended.
c. A final class cannot extend other classes.
d. A final method can be inherited.

2) Given that Student is a class, how many reference variables and objects are
created by the following code?
Student studentName, studentId;
studentName = new Student();
Student stud_class = new Student();
a. Three reference variables and two objects are created.
b. Two reference variables and two objects are created.
c. One reference variable and two objects are created.
d. Three reference variables and three objects are created.

3) Given,
ArrayList list = new ArrayList();
What is the initial quantity of the ArrayList list?
a. 5
b. 10
c. 0
d. 100

4) Which of the following is a mutable class in java?


a. java.lang.String
b. java.lang.Byte
c. java.lang.Short
d. java.lang.StringBuilder

5) What will be the output of the following program?


abstract class MyFirstClass
{
abstract num (int a, int b) { }
}
CS8392 OBJECT ORIENTED PROGRAMMING IT/JJCET

a. No error
b. Method is not defined properly
c. Constructor is not defined properly
d. Extra parentheses

6. Which member can never be accessed by inherited classes?


a) Private member function
b) Public member function
c) Protected member function
d) All can be accessed

7. Which is private member functions access scope?


a) Member functions which can only be used within the class
b) Member functions which can used outside the class
c) Member functions which are accessible in derived class
d) Member functions which can’t be accessed inside the class

8. Which syntax among the following shows that a member is private in a class?
a) private: functionName(parameters)
b) private(functionName(parameters))
c) private functionName(parameters)
d) private::functionName(parameters)

9. When does method overloading is determined?


a) At run time
b) At compile time
c) At coding time
d) At execution time

10. When Overloading does not occur?


a) More than one method with same name but different method signature and
different number or type of parameters
b) More than one method with same name, same signature but different number of
signature
c) More than one method with same name, same signature, same number of
parameters but different type
d) More than one method with same name, same number of parameters and
type but different signature
CS8392 OBJECT ORIENTED PROGRAMMING IT/JJCET

11. Which of these method of Object class can clone an object?


a) Objectcopy()
b) copy()
c) Object clone()
d) clone()

12. Which of these keywords can be used to prevent inheritance of a class?


a) super
b) constant
c) class
d) final

13. Which of these keywords cannot be used for a class which has been declared
final?
a) abstract
b) extends
c) abstract and extends
d) none of the mentioned

14. If a class inheriting an abstract class does not define all of its function then it
will be known as?
a) Abstract
b) A simple class
c) Static class
d) None of the mentioned

15. Which of this keyword must be used to inherit a class?


a) super
b) this
c) extent
d) extends

16. Which of these is correct way of inheriting class A by class B?


a) class B + class A {}
b) class B inherits class A {}
c) class B extends A {}
d) class B extends class A {}
CS8392 OBJECT ORIENTED PROGRAMMING IT/JJCET

17. Using which of the following, multiple inheritance in Java can be


implemented?
a) Interfaces
b) Multithreading
c) Protected methods
d) Private methods

18. All classes in Java are inherited from which class?


a) java.lang.class
b) java.class.inherited
c) java.class.object
d) java.lang.Object

19. If super class and subclass have same variable name, which keyword should be
used to use super class?
a) super
b) this
c) upper
d) classname

20. Which of these class is superclass of String and StringBuffer class?


a) java.util
b) java.lang
c) ArrayList
d) None of the mentioned

21. Which of these constructors is used to create an empty String object?


a) String()
b) String(void)
c) String(0)
d) None of the mentioned

22. Which of the following is the correct way of implementing an interface salary
by class manager?
a) class manager extends salary {}
b) class manager implements salary {}
c) class manager imports salary {}
d) none of the mentioned
CS8392 OBJECT ORIENTED PROGRAMMING IT/JJCET

23. Which of these keywords is used by a class to use an interface defined


previously?
a) import
b) Import
c) implements
d) Implements

24. What will happen if we provide concrete implementation of method in


interface?
a) The concrete class implementing that method need not provide implementation
of that method
b) Runtime exception is thrown
c) Compilation failure
d) Method not found exception is thrown

25. What happens when we access the same variable defined in two interfaces
implemented by the same class?
a) Compilation failure
b) Runtime Exception
c) The JVM is not able to identify the correct variable
d) The interfaceName.variableName needs to be defined

26. What is the minimum number of levels for a implementing multilevel


inheritance?
a) 1
b) 2
c) 3
d) 4

27. Which among the following best describes the Inheritance?


a) Copying the code already written
b) Using the code already written once
c) Using already defined functions in programming language
d) Using the data and functions into derived segment
CS8392 OBJECT ORIENTED PROGRAMMING IT/JJCET

28. Which programming language doesn’t support multiple inheritance?


a) C++ and Java
b) C and C++
c) Java and SmallTalk
d) Java

29. How can you make the private members inheritable?


a) By making their visibility mode as public only
b) By making their visibility mode as protected only
c) By making their visibility mode as private in derived class
d) It can be done both by making the visibility mode public or protected

30. If class A and class B are derived from class C and class D, then
________________
a) Those are 2 pairs of single inheritance
b) That is multilevel inheritance
c) Those is enclosing class
d) Those are all independent classes

***
CS8392 OBJECT ORIENTED PROGRAMMING IT/JJCET

UNIT-3 EXCEPTION HANDLING AND I/O

MULTIPLE CHOICE QUESTIONS

1) What is the default encoding for an OutputStreamWriter?


a. UTF-8
b. Default encoding of the host platform
c. UTF-12
d. None of the above

2) In character stream I/O, a single read/write operation performs _____.


a. Two bytes read/write at a time.
b. Eight bytes read/write at a time.
c. One byte read/write at a time.
d. Five bytes read/ write at a time.

3) What do you mean by chained exceptions in Java?


a. Exceptions occurred by the VirtualMachineError
b. An exception caused by other exceptions
c. Exceptions occur in chains with discarding the debugging information
d. None of the above

4) Which of these classes are the direct subclasses of the Throwable class?
a. RuntimeException and Error class
b. Exception and VirtualMachineError class
c. Error and Exception class
d. IOException and VirtualMachineError class

5) When does Exceptions in Java arises in code sequence?


a) Run Time
b) Compilation Time
c) Can Occur Any Time
d) None of the mentioned

6) Which of these keywords is not a part of exception handling?


a) try
b) finally
c) thrown
d) catch
CS8392 OBJECT ORIENTED PROGRAMMING IT/JJCET

7) Which of these keywords must be used to monitor for exceptions?


a) try
b) finally
c) throw
d) catch

8. Which of these keywords must be used to handle the exception thrown by try
block in some rational manner?
a) try
b) finally
c) throw
d) catch

9. Which of these keywords is used to manually throw an exception?


a) try
b) finally
c) throw
d) catch

10. What will be the output of the following Java program?


class exception_handling
{
public static void main(String args[])
{
try
{
int i, sum;
sum = 10;
for (i = -1; i < 3 ;++i)
sum = (sum / i);
}
catch(ArithmeticException e)
{
System.out.print("0");
}
System.out.print(sum);
}
}
CS8392 OBJECT ORIENTED PROGRAMMING IT/JJCET

a)0
b)05
c)CompilationError
d) Runtime Error

11)Which of the following operators is used to generate instance of an exception


which can be thrown using throw?
a) thrown
b) alloc
c) malloc
d) new

12. Which of the following handles the exception when a catch is not used?
a) finally
b) throw handler
c) default handler
d) java run time system

13. Which of these methods return description of an exception?


a) getException()
b) getMessage()
c) obtainDescription()
d) obtainException()

14. Which of these methods is used to print stack trace?


a) obtainStackTrace()
b) printStackTrace()
c) getStackTrace()
d) displayStackTrace()

15.Which of these classes is super class of Exception class?


a) Throwable
b) System
c) RunTime
d) Class
CS8392 OBJECT ORIENTED PROGRAMMING IT/JJCET

16. Which of these exceptions handles the divide by zero error?


a) ArithmeticException
b) MathException
c) IllegalAccessException
d) IllegarException

17. Which of these exceptions will occur if we try to access the index of an array
beyond its length?
a) ArithmeticException
b) ArrayException
c) ArrayIndexException
d) ArrayIndexOutOfBoundsException

18. Which of these class is related to all the exceptions that are explicitly thrown?
a) Error
b) Exception
c) Throwable
d) Throw

19. Which of these keywords is used to by the calling function to guard against the
exception that is thrown by called function?
a) try
b) throw
c) throws
d) catch

20. What exception thrown by parseInt() method?


a) ArithmeticException
b) ClassNotFoundException
c) NullPointerException
d) NumberFormatException

21. Which of these class is used to read from byte array?


a) InputStream
b) BufferedInputStream
c) ArrayInputStream
d) ByteArrayInputStream
CS8392 OBJECT ORIENTED PROGRAMMING IT/JJCET

22. Which of these is used to read a string from the input stream?
a) get()
b) getLine()
c) read()
d) readLine()

23. Which of these class is used to read characters and strings in Java from
console?
a) BufferedReader
b) StringReader
c) BufferedStreamReader
d) InputStreamReader

24. Which of these class is implemented by FilterInputStream class?


a) InputStream
b) InputOutputStream
c) BufferedInputStream
d) SequenceInputStream

25. Which of these class is used to read from a file?


a) InputStream
b) BufferedInputStream
c) FileInputStream
d) BufferedFileInputStream

26. Which of these exception is thrown in cases when the file specified for writing
is not found?
a) IOException
b) FileException
c) FileNotFoundException
d) FileInputException

27. Which of these values is returned by read() method is end of file (EOF) is
encountered?
a) 0
b) 1
c) -1
d) Null
CS8392 OBJECT ORIENTED PROGRAMMING IT/JJCET

28. Which of these exception is thrown by close() and read() methods?


a) IOException
b) FileException
c) FileNotFoundException
d) FileInputOutputException
CS8392 OBJECT ORIENTED PROGRAMMING IT/JJCET

UNIT-4 MULTITHREADING AND GENERIC PROGRAMMING

MULTIPLE CHOICE QUESTIONS

1) What is the use of the intern() method?


a. It returns the existing string from memory
b. It creates a new string in the database
c. It modifies the existing string in the database
d. None of the above

2) Which of the given methods are of Object class?


a. notify(), wait( long msecs ), and synchronized()
b. wait( long msecs ), interrupt(), and notifyAll()
c. notify(), notifyAll(), and wait()
d. sleep( long msecs ), wait(), and notify()

3) Which of the following is a valid syntax to synchronize the HashMap?


a. Map m = hashMap.synchronizeMap();
b. HashMap map =hashMap.synchronizeMap();
c. Map m1 = Collections.synchronizedMap(hashMap);
d. Map m2 = Collection.synchronizeMap(hashMap);

4) How many threads can be executed at a time?


a. Only one thread
b. Multiple threads
c. Only main (main() method) thread
d. Two threads

5) If three threads trying to share a single object at the same time, which condition
will arise in this scenario?
a. Time-Lapse
b. Critical situation
c. Race condition
d. Recursion
CS8392 OBJECT ORIENTED PROGRAMMING IT/JJCET

6) If a thread goes to sleep


a. It releases all the locks it has.
b. It does not release any locks.
c. It releases half of its locks.
d. It releases all of its lock except one

7) Which of the following modifiers can be used for a variable so that it can be
accessed by any thread or a part of a program?
a. global
b. transient
c. volatile
d. default

8) What is the result of the following program?


public static synchronized void main(String[] args) throws
InterruptedException {
Thread f = new Thread();
f.start();
System.out.print("A");
f.wait(1000);
System.out.print("B"); }
a. It prints A and B with a 1000 seconds delay between them
b. It only prints A and exits
c. It only prints B and exits
d. A will be printed, and then an exception is thrown.

9. Which of this method can be used to make the main thread to be executed last
amongall the threads?
a) stop()
b) sleep()
c) join()
d) call()

10. Which of this method is used to find out that a thread is still running or not?
a) run()
b) Alive()
c) isAlive()
d) checkRun()
CS8392 OBJECT ORIENTED PROGRAMMING IT/JJCET

11. Which of these method is used to explicitly set the priority of a thread?
a) set()
b) make()
c) setPriority()
d) makePriority()

12. What is synchronization in reference to a thread?


a) It’s a process of handling situations when two or more threads need access
to a shared resource
b) It’s a process by which many thread are able to access same shared resource
simultaneously
c) It’s a process by which a method is able to access many different threads
simultaneously
d) It’s a method that allow too many threads to access any information require

13. Which of these type parameters is used for a generic methods to return and
accept any type of object?
a) K
b) N
c) T
d) V

14. What are generic methods?


a) Generic methods are the methods defined in a generic class
b) Generic methods are the methods that extend generic class methods
c) Generic methods are methods that introduce their own type parameters
d) Generic methods are methods that take void parameters

15. Which of these is an correct way of defining generic method?


a) <T1, T2, …, Tn> name(T1, T2, …, Tn) { /* … */ }
b) public <T1, T2, …, Tn> name<T1, T2, …, Tn> { /* … */ }
c) class <T1, T2, …, Tn> name[T1, T2, …, Tn] { /* … */ }
d) <T1, T2, …, Tn> name{T1, T2, …, Tn} { /* … */ }

16. Which of the following allows us to call generic methods as a normal method?
a) Type Interface
b) Interface
c) Inner class
d) All of the mentioned
CS8392 OBJECT ORIENTED PROGRAMMING IT/JJCET

17. Which of these types cannot be used to initiate a generic type?


a) Integer class
b) Float class
c) Primitive Types
d) Collections

18. Which of these instances cannot be created?


a) Integer instance
b) Generic class instance
c) Generic type instance
d) Collection instances

19. Which of these data type cannot be type parameterized?


a) Array
b) List
c) Map
d) Set

20. Which of these keywords are used to implement synchronization?


a) synchronize
b) syn
c) synch
d) synchronized

21. Which of this method is used to avoid polling in Java?


a) wait()
b) notify()
c) notifyAll()
d) all of the mentioned

22. Which of these statements is incorrect?


a) A thread can be formed by implementing Runnable interface only
b) A thread can be formed by a class that extends Thread class
c) start() method is used to begin execution of the thread
d) run() method is used to begin execution of a thread before start() method in
special cases
CS8392 OBJECT ORIENTED PROGRAMMING IT/JJCET

23. Which of these method is used to begin the execution of a thread?


a) run()
b) start()
c) runThread()
d) startThread()

24. What does not prevent JVM from terminating?


a) Process
b) Daemon Thread
c) User Thread
d) JVM Thread

25. What is true about time slicing?


a) Time slicing is OS service that allocates CPU time to available runnable thread
b) Time slicing is the process to divide the available CPU time to available
runnable thread
c) Time slicing depends on its implementation in OS
d) Time slicing allocates more resources to thread

26. What decides thread priority?


a) Process
b) Process scheduler
c) Thread
d) Thread scheduler

27. Which of the following is a correct constructor for thread?


a) Thread(Runnable a, String str)
b) Thread(int priority)
c) Thread(Runnable a, int priority)
d) Thread(Runnable a, ThreadGroup t)

28. What is true about threading?


a) run() method calls start() method and runs the code
b) run() method creates new thread
c) run() method can be called directly without start() method being called
d) start() method creates new thread and calls code written in run() method
CS8392 OBJECT ORIENTED PROGRAMMING IT/JJCET

29. Which of the following stops execution of a thread?


a) Calling SetPriority() method on a Thread object
b) Calling notify() method on an object
c) Calling wait() method on an object
d) Calling read() method on an InputStream object

30. Which of the following will ensure the thread will be in running state?
a) yield()
b) notify()
c) wait()
d) Thread.killThread()

***
CS8392 OBJECT ORIENTED PTOGRAMMING IT/JJCET

UNIT -5 EVENT DRIVEN PROGRAMMING


MULTIPLE CHOICE QUESTIONS

1) Which of these functions is called to display the output of an applet?


a) display()
b) paint()
c) displayApplet()
d) PrintApplet()

2) Which of these operators can be used to get run time information about an
object?
a) getInfo
b) Info
c) instanceof
d) getinfoof

3) What is an event in delegation event model used by Java programming


language?
a) An event is an object that describes a state change in a source
b) An event is an object that describes a state change in processing
c) An event is an object that describes any change by the user and system
d) An event is a class used for defining object, to create events

4) Which of these methods are used to register a keyboard event listener?


a) KeyListener()
b) addKistener()
c) addKeyListener()
d) eventKeyboardListener()

5) Which of these methods are used to register a mouse motion listener?


a) addMouse()
b) addMouseListener()
c) addMouseMotionListner()
d) eventMouseMotionListener()
CS8392 OBJECT ORIENTED PTOGRAMMING IT/JJCET

6) What is a listener in context to event handling?


a) A listener is a variable that is notified when an event occurs
b) A listener is a object that is notified when an event occurs
c) A listener is a method that is notified when an event occurs
d) None of the mentioned

7) Which of these methods can be used to determine the type of event?


a) getID()
b) getSource()
c) getEvent()
d) getEventObject()

8) Which of these class is super class of all the events?


a) EventObject
b) EventClass
c) ActionEvent
d) ItemEvent

9) Which of these methods can be used to change location of an event?


a) ChangePoint()
b) TranslatePoint()
c) ChangeCordinates()
d) TranslateCordinates()

10) Which of the following is an immediate subclass of the Panel class?


a. Applet class
b. Window class
c. Frame class
d. Dialog class

11) Where are the following four methods commonly used?

1) public void add(Component c)


2) public void setSize(int width,int height)
3) public void setLayout(LayoutManager m)
4) public void setVisible(boolean)
CS8392 OBJECT ORIENTED PTOGRAMMING IT/JJCET

a. Graphics class
b. Component class
c. Both A & B
d. None of the above

12) Which is the container that doesn't contain title bar and MenuBars but it can
have other components like button, textfield etc?

a. Window
b. Frame
c. Panel
d. Container

13) Which method is used to set the graphics current color to the specified color
in the graphics class?

a. public abstract void setFont(Font font)


b. public abstract void setColor(Color c)
c. public abstract void drawString(String str, int x, int y)
d. None of the above

14) In Graphics class which method is used to draws a rectangle with the
specified width and height?

a. public void drawRect(int x, int y, int width, int height)


b. public abstract void fillRect(int x, int y, int width, int height)
c. public abstract void drawLine(int x1, int y1, int x2, int y2)
d. public abstract void drawOval(int x, int y, int width, int height)

15) Which object can be constructed to show any number of choices in the visible
window?
a. Labels
b. Choice
c. List
d. Checkbox
CS8392 OBJECT ORIENTED PTOGRAMMING IT/JJCET

16) The following


a) It is lightweight.
b) It supports pluggable look and feel.
c) It follows MVC (Model View Controller) architecture
are the advantages of _____ .
a. Swing
b. AWT
c. Both A & B
d. None of the above

***

You might also like