Deck 9: JSP, Threading, and RMI
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
فتح الحزمة
قم بالتسجيل لفتح البطاقات في هذه المجموعة!
Unlock Deck
Unlock Deck
1/23
العب
ملء الشاشة (f)
Deck 9: JSP, Threading, and RMI
1
In JSP page directive which attribute defines theMIME(Multipurpose Internet Mail Extension) type of the HTTP response?
A)import
B)content type
C)extends
D)info
A)import
B)content type
C)extends
D)info
content type
2
A JSP page consists of which tags?
A)html tags
B)jsp tags
C)both a & b
D)none of the above
A)html tags
B)jsp tags
C)both a & b
D)none of the above
both a & b
3
What alternatives exist to embedding Java code directly within the HTML markup of your JSP page?
A)moving the code into your session manager.
B)moving the code into scriptlets.
C)moving the code into javabeans and servlets.
D)moving the code into a transaction manager.
A)moving the code into your session manager.
B)moving the code into scriptlets.
C)moving the code into javabeans and servlets.
D)moving the code into a transaction manager.
moving the code into javabeans and servlets.
4
What type of scriptlet code is better-suited to being factored forward into a servlet?
A)code that deals with logic that is common across requests.
B)code that deals with logic that is vendor specific)
C)code that deals with logic that relates to database access.
D)code that deals with logic that relates to client scope.
A)code that deals with logic that is common across requests.
B)code that deals with logic that is vendor specific)
C)code that deals with logic that relates to database access.
D)code that deals with logic that relates to client scope.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 23 في هذه المجموعة.
فتح الحزمة
k this deck
5
URL encoding is the method of replacing all the spaces and other extra characters into their corresponding _______ Characters?
A)hex
B)binary
C)octal
D)decimal
A)hex
B)binary
C)octal
D)decimal
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 23 في هذه المجموعة.
فتح الحزمة
k this deck
6
Which of the scripting of JSP not putting content into service method of the converted servlet?
A)declarations
B)scriptlets
C)expressions
D)none of the above
A)declarations
B)scriptlets
C)expressions
D)none of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 23 في هذه المجموعة.
فتح الحزمة
k this deck
7
What requires less resources?
A)thread
B)process
C)thread and process
D)neither thread nor process
A)thread
B)process
C)thread and process
D)neither thread nor process
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 23 في هذه المجموعة.
فتح الحزمة
k this deck
8
What does not prevent JVM from terminating?
A)process
B)daemon thread
C)user thread
D)jvm thread
A)process
B)daemon thread
C)user thread
D)jvm thread
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 23 في هذه المجموعة.
فتح الحزمة
k this deck
9
What decides thread priority?
A)process
B)process scheduler
C)thread
D)thread scheduler
A)process
B)process scheduler
C)thread
D)thread scheduler
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 23 في هذه المجموعة.
فتح الحزمة
k this deck
10
What should not be done to avoid deadlock?
A)avoid using multiple threads
B)avoid hold several locks at once
C)execute foreign code while holding a lock
D)use interruptible locks
A)avoid using multiple threads
B)avoid hold several locks at once
C)execute foreign code while holding a lock
D)use interruptible locks
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 23 في هذه المجموعة.
فتح الحزمة
k this deck
11
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
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 23 في هذه المجموعة.
فتح الحزمة
k this deck
12
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)
A)thread(runnable a, string str)
B)thread(int priority)
C)thread(runnable a, int priority)
D)thread(runnable a, threadgroup t)
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 23 في هذه المجموعة.
فتح الحزمة
k this deck
13
Which of the following will ensure the thread will be in running state?
A)yield()
B)notify()
C)wait()
D)thread.killthread()
A)yield()
B)notify()
C)wait()
D)thread.killthread()
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 23 في هذه المجموعة.
فتح الحزمة
k this deck
14
Which of these are types of multitasking?
A)process based
B)thread based
C)process and thread based
D)none of the mentioned
A)process based
B)thread based
C)process and thread based
D)none of the mentioned
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 23 في هذه المجموعة.
فتح الحزمة
k this deck
15
What will happen if two thread of the same priority are called to be processed simultaneously?
A)anyone will be executed first lexographically
B)both of them will be executed simultaneously
C)none of them will be executed
D)it is dependent on the operating system
A)anyone will be executed first lexographically
B)both of them will be executed simultaneously
C)none of them will be executed
D)it is dependent on the operating system
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 23 في هذه المجموعة.
فتح الحزمة
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
A)remoteexception
B)notboundexception
C)malformedurlexception
D)all mentioned above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 23 في هذه المجموعة.
فتح الحزمة
k this deck
17
Which is a one-way communication only between the client and the server and itis not a reliable and there is no confirmation regarding reaching the message tothe destination?
A)tcp/ip
B)udp
C)both a & b
D)none of the above
A)tcp/ip
B)udp
C)both a & b
D)none of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 23 في هذه المجموعة.
فتح الحزمة
k this deck
18
An RMI Server is responsible for,
A)creating an instance of the remote object
B)exporting the remote object
C)binding the instance of the remote object to the rmi registry
D)all mentioned above
A)creating an instance of the remote object
B)exporting the remote object
C)binding the instance of the remote object to the rmi registry
D)all mentioned above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 23 في هذه المجموعة.
فتح الحزمة
k this deck
19
In RMI Distributed object applications need to do?
A)locate remote objects
B)communicate with remote objects
C)load class definitions for objects that are passed around
D)all mentioned above
A)locate remote objects
B)communicate with remote objects
C)load class definitions for objects that are passed around
D)all mentioned above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 23 في هذه المجموعة.
فتح الحزمة
k this deck
20
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
A)server
B)client
C)both a & b
D)none of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 23 في هذه المجموعة.
فتح الحزمة
k this deck
21
Which package is used for Remote Method Invocation (RMI)?
A)java.lang.rmi
B)java.lang.reflect
C)java.applet
D)java.rmi
A)java.lang.rmi
B)java.lang.reflect
C)java.applet
D)java.rmi
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 23 في هذه المجموعة.
فتح الحزمة
k this deck
22
Java supports RMI, RMI Stands for?
A)random method invocation
B)remote memory interface
C)remote method invocation.
D)random method invocation,
A)random method invocation
B)remote memory interface
C)remote method invocation.
D)random method invocation,
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 23 في هذه المجموعة.
فتح الحزمة
k this deck
23
Which is built on the top of socket programming?
A)ejb
B)rmi
C)both a & b
D)none of the above
A)ejb
B)rmi
C)both a & b
D)none of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 23 في هذه المجموعة.
فتح الحزمة
k this deck