Deck 13: Java Programming: GUI, RMI, Polymorphism, and String Handling

ملء الشاشة (f)
exit full mode
سؤال
The following specifies the advantages of It is lightweight. It supports pluggable look and feel. It follows MVC (Model View Controller) architecture.

A)Swing
B)AWT
C)Both A & B
D)None of the above
استخدم زر المسافة أو
up arrow
down arrow
لقلب البطاقة.
سؤال
Swing is not a part of JFC (Java Foundation Classes) that is used to create GUI application?

A)True
B)False
C)none
D)all
سؤال
These two ways are used to create a Frame By creating the object of Frame class (association) By extending Frame class (inheritance)

A)True
B)False
C)none
D)all
سؤال
Which package provides many event classes and Listener interfaces for event handling?

A)java.awt
B)java.awt.Graphics
C)java.awt.event
D)None of the above
سؤال
The ActionListener interface is used for handling action events,For example,it's used by a

A)JButton
B)JCheckbox
C)JMenuItem
D)All of these
سؤال
Which is the container that doesn't contain title bar and MenuBars. It can have other components like button, textfield etc?

A)Window
B)Frame
C)Panel
D)Container
سؤال
Which of these package is used for all the text related modifications?

A)java.text
B)java.awt
C)java.lang.text
D)java.text.mofify
سؤال
RMI has which of these protocols implementations?

A)Java Remote Method Protocol (JRMP)
B)Internet Inter-ORB Protocol (IIOP)
C)Jinni Extensible Remote Invocation (JERI)
D)All mentioned above
سؤال
In RMI which layer defines and supports the invocation semantics of the RMI connection, this layer maintains the session during the method call?

A)The Stub & Skeleton Layer
B)The Application Layer
C)The Remote Reference Layer
D)The Transport Layer
سؤال
Which method of the Naming class (found in java.rmi) is used to update the RMI registry on the server machine?

A)rebind ()
B)lookup()
C)Both A & B
D)None of the above
سؤال
In RMI program the following two steps are used to, Either extend the UnicastRemoteObject class, the exportObject() method of the UnicastRemoteObject class,

A)Provide the Implementation of the remote interface
B)Create the remote interface
C)Create and start the remote application
D)Compile the implementation class and create the stub and skeleton objects using the rmic tool
سؤال
Which is built on the top of socket programming?

A)EJB
B)RMI
C)Both A & B
D)None of the above
سؤال
In RMI program the following example shows the,
Import java.rmi.*;
Public interface Adder extends Remote
{
Public int add(int x,int y)throws RemoteException;
}

A)Create and start the remote application
B)Create and start the client application
C)Create the remote interface
D)Provide the implementation of the remote interface
سؤال
In RMI applications which program obtains a remote reference to one or more remote objects on a server and then invokes methods on them?

A)Server
B)Client
C)Both A & B
D)None of the above
سؤال
Which is a one-way communication only between the client and the server and it is not a reliable and there is no confirmation regarding reaching the message to the destination?

A)TCP/IP
B)UDP
C)Both A & B
D)None of the above
سؤال
In a RMI Client Program, what are the exceptions which might have to handled?

A)RemoteException
B)NotBoundException
C)MalFormedURLException
D)All mentioned above
سؤال
Abbreviate the term DGC?

A)Digital Garbage Collection
B)Distributed Garbage Collection
C)Distributed Garbage Connection
D)None of the above
سؤال
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
سؤال
When does method overloading is determined?

A)At run time
B)At compile time
C)At coding time
D)At execution time
سؤال
Which concept of Java is a way of converting real world objects in terms of class?

A)Polymorphism
B)Encapsulation
C)Abstraction
D)Inheritance
سؤال
Which component is responsible to optimize bytecode to machine code?

A)JVM
B)JDK
C)JIT
D)JRE
سؤال
How can we identify whether a compilation unit is class or interface from a .class file?

A)Java source file header
B)Extension of compilation unit
C)We cannot differentiate between class and interface
D)The class or interface name should be postfixed with unit type
سؤال
Which of these packages contains abstract keyword?

A)java.lang
B)java.util
C)java.io
D)java.system
سؤال
Which of these class is used to create an object whose character sequence is mutable?

A)String()
B)StringBuffer()
C)String() & StringBuffer()
D)None of the mentioned
سؤال
Which of these method of class StringBuffer is used to find the length of current character sequence?

A)length()
B)Length()
C)capacity()
D)Capacity()
فتح الحزمة
قم بالتسجيل لفتح البطاقات في هذه المجموعة!
Unlock Deck
Unlock Deck
1/25
auto play flashcards
العب
simple tutorial
ملء الشاشة (f)
exit full mode
Deck 13: Java Programming: GUI, RMI, Polymorphism, and String Handling
1
The following specifies the advantages of It is lightweight. It supports pluggable look and feel. It follows MVC (Model View Controller) architecture.

A)Swing
B)AWT
C)Both A & B
D)None of the above
Swing
2
Swing is not a part of JFC (Java Foundation Classes) that is used to create GUI application?

A)True
B)False
C)none
D)all
False
3
These two ways are used to create a Frame By creating the object of Frame class (association) By extending Frame class (inheritance)

A)True
B)False
C)none
D)all
False
4
Which package provides many event classes and Listener interfaces for event handling?

A)java.awt
B)java.awt.Graphics
C)java.awt.event
D)None of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
5
The ActionListener interface is used for handling action events,For example,it's used by a

A)JButton
B)JCheckbox
C)JMenuItem
D)All of these
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
6
Which is the container that doesn't contain title bar and MenuBars. It can have other components like button, textfield etc?

A)Window
B)Frame
C)Panel
D)Container
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
7
Which of these package is used for all the text related modifications?

A)java.text
B)java.awt
C)java.lang.text
D)java.text.mofify
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
8
RMI has which of these protocols implementations?

A)Java Remote Method Protocol (JRMP)
B)Internet Inter-ORB Protocol (IIOP)
C)Jinni Extensible Remote Invocation (JERI)
D)All mentioned above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
9
In RMI which layer defines and supports the invocation semantics of the RMI connection, this layer maintains the session during the method call?

A)The Stub & Skeleton Layer
B)The Application Layer
C)The Remote Reference Layer
D)The Transport Layer
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
10
Which method of the Naming class (found in java.rmi) is used to update the RMI registry on the server machine?

A)rebind ()
B)lookup()
C)Both A & B
D)None of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
11
In RMI program the following two steps are used to, Either extend the UnicastRemoteObject class, the exportObject() method of the UnicastRemoteObject class,

A)Provide the Implementation of the remote interface
B)Create the remote interface
C)Create and start the remote application
D)Compile the implementation class and create the stub and skeleton objects using the rmic tool
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
12
Which is built on the top of socket programming?

A)EJB
B)RMI
C)Both A & B
D)None of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
13
In RMI program the following example shows the,
Import java.rmi.*;
Public interface Adder extends Remote
{
Public int add(int x,int y)throws RemoteException;
}

A)Create and start the remote application
B)Create and start the client application
C)Create the remote interface
D)Provide the implementation of the remote interface
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
14
In RMI applications which program obtains a remote reference to one or more remote objects on a server and then invokes methods on them?

A)Server
B)Client
C)Both A & B
D)None of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
15
Which is a one-way communication only between the client and the server and it is not a reliable and there is no confirmation regarding reaching the message to the destination?

A)TCP/IP
B)UDP
C)Both A & B
D)None of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
16
In a RMI Client Program, what are the exceptions which might have to handled?

A)RemoteException
B)NotBoundException
C)MalFormedURLException
D)All mentioned above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
17
Abbreviate the term DGC?

A)Digital Garbage Collection
B)Distributed Garbage Collection
C)Distributed Garbage Connection
D)None of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
18
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
19
When does method overloading is determined?

A)At run time
B)At compile time
C)At coding time
D)At execution time
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
20
Which concept of Java is a way of converting real world objects in terms of class?

A)Polymorphism
B)Encapsulation
C)Abstraction
D)Inheritance
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
21
Which component is responsible to optimize bytecode to machine code?

A)JVM
B)JDK
C)JIT
D)JRE
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
22
How can we identify whether a compilation unit is class or interface from a .class file?

A)Java source file header
B)Extension of compilation unit
C)We cannot differentiate between class and interface
D)The class or interface name should be postfixed with unit type
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
23
Which of these packages contains abstract keyword?

A)java.lang
B)java.util
C)java.io
D)java.system
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
24
Which of these class is used to create an object whose character sequence is mutable?

A)String()
B)StringBuffer()
C)String() & StringBuffer()
D)None of the mentioned
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
25
Which of these method of class StringBuffer is used to find the length of current character sequence?

A)length()
B)Length()
C)capacity()
D)Capacity()
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
locked card icon
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.