Deck 24: Web Applications

ملء الشاشة (f)
exit full mode
سؤال
One of the required steps in designing a JavaBean is:

A) Implement the get and set methods for all properties.
B) Implement a constructor with one argument.
C) Implement the helper methods.
D) Add the JSF components needed.
استخدم زر المسافة أو
up arrow
down arrow
لقلب البطاقة.
سؤال
In a web application, the web server sends pages formatted in ____.

A) XML
B) HTML
C) Text
D) JavaBeans
سؤال
The collection of choices for a radio button tag can be specified with a ___ tag.

A) f:selectItems
B) f:Items
C) f:selectRadioItems
D) f:selectChoiceItems
سؤال
Which of the following contains a method expression?

A)
B)
C)
D) ...
سؤال
Suppose a DictionaryBean class has a method String getLanguage(). Which JSF page statement would display the language properly?

A) The language of the dictionary is value="dictionaryBean.getLanguage".
B) The language of the dictionary is #{dictionaryBean.getLanguage}.
C) The language of the dictionary is value="#{dictionaryBean.language}".
D) The language of the dictionary is #{dictionaryBean.language}.
سؤال
JSF page syntax is a mixture of ______ and JSF-specific tags.

A) XML
B) Beans
C) HTML
D) JSP
سؤال
____ support the separation of presentation and business logic.

A) Session expressions
B) Application expressions
C) Value expressions
D) Method expressions
سؤال
______ of a bean component can be accessed by tools without having to write Java code.

A) Options
B) Elements
C) Types
D) Properties
سؤال
If the scope of a managed bean has been set to _______, then the bean stays alive during multiple requests from the same browser.

A) session
B) global
C) private
D) public
سؤال
In JSF, button groups and ____ require that you specify two properties: the collection of possible choices and the actual choice.

A) menus
B) cookies
C) images
D) text areas
سؤال
What does the value expression timeZoneBean.city do when it is part of the JSF tag ?

A) Sets the timeBean.city instance variable.
B) Calls the timeBean.setTime method
C) Calls the timeBean.setTime method method
D) Calls either the timeBean.setTime or timeBean.setTime method
سؤال
What does the value expression timeBean.time do?

A) Sets the timeBean.time instance variable.
B) Calls the timeBean.setTime method
C) Calls the timeBean.getTime method
D) Creates an input field called time.
سؤال
Name one of the requirements for a Java class to become a JavaBean?

A) A JavaBean must have get, set, and command action methods.
B) A JavaBean must have only get and set methods.
C) A JavaBean must have a public constructor with one or more arguments.
D) A JavaBean must have a public constructor with no arguments.
سؤال
____ link JSF pages with Java objects.

A) JavaBeans
B) Browsers
C) Value expressions
D) Session bindings
سؤال
The keys of the map specified in f:selectItems are the ____ that are displayed next to each choice.

A) attributes
B) text
C) labels
D) values
سؤال
The Java library contains a _______ class that provides information about time zones around the world.

A) Time
B) Zone
C) TimeDate
D) TimeZone
سؤال
Every bean must have a ____ with no arguments.

A) read method
B) set method
C) constructor
D) get method
سؤال
The purpose of a JSF page is to generate a ____ page.

A) Hyper Text Markup Language
B) Server
C) Java Formatted
D) Browser
سؤال
Which of the following is an example of a server with a JSF container?

A) JSF
B) GlassFish
C) JDBC
D) JSP
سؤال
The ____ tag is used to specify all choices for a component that allows selection from a list of choices.

A) h:commandButton
B) f:selectItems
C) h:selectManyRadio
D) h:inputText
سؤال
When a form from a web application is submitted by a user, where are the form elements sent?

A) to a database pool
B) to a server browser
C) to a web browser
D) to a web server
سؤال
To query a database, a JavaBean needs a(n) ____________ object.

A) Table
B) Connection
C) Bean
D) HTML
سؤال
A _______ is an application whose user interface is displayed in a web browser.

A) server application
B) web application
C) client application
D) internet application
سؤال
The _______ converts a JSF page to an HTML page.

A) JSF translator
B) JSF compiler
C) JSF container
D) HTML converter
سؤال
The user interface of a web application is displayed in a ______.

A) protocol
B) server browser
C) web browser
D) web server
سؤال
Which of the following statements is correct?

A) A server with a JSF container such as GlassFish manages a pool of database connections.
B) JSF tags use XML syntax but the / before the closing angle bracket is not required.
C) JSF tags are case insensitive.
D) A JSF page cannot contain XML tags.
سؤال
The user interface of a JSF application is described by ________.

A) a set of HTML-only pages.
B) a set of JSF servers.
C) a set of JSF events.
D) a set of JSF pages.
سؤال
Swing differs from JSF in that it ________.

A) handles form-posting events.
B) paints pixels in a frame.
C) paints by emitting HTML code.
D) hides high-level details.
سؤال
A JSF page contains ________.

A) HTML tags.
B) HTML tags and JSF tags.
C) JSF tags only.
D) no tags at all.
سؤال
When a submit button is pressed in a simple JSF application, what does the outcome string represent?

A) the next page to be displayed
B) the error message to be displayed
C) the data submitted by the user
D) the data to be displayed
سؤال
A set of JSF pages makes ________.

A) the user interface of a web application.
B) the user interface of a database application.
C) the user interface of a server application.
D) the user interface of a client application.
سؤال
Where does the application program of a web application reside?

A) On the client server.
B) On the web server.
C) On the client side.
D) On the browser client.
سؤال
A _____ is an object that is controlled by the JSF container.

A) TimeBean
B) HTML page
C) JSF page
D) managed bean
سؤال
A method _________ specifies a bean and a method that should be invoked on the bean.

A) property
B) name
C) expression
D) value
سؤال
The JSF tags are dynamically translated into HTML tags and text. In this context, dynamic means:

A) the translation uses polymorphism.
B) the translation depends on the current state of Java objects.
C) the translation is done by the web browser.
D) the translation changes the state of the Java objects.
سؤال
One of the web application frameworks that has been developed is ________.

A) JavaServer Framework
B) JavaServer Faces
C) HTTP
D) JEEF
سؤال
Several elements of a JSF page are tags with a(n) ________.

A) h: prefix.
B) a: prefix.
C) D)
سؤال
An HTML page contains ____ that describe the structure of the page.

A) heading
B) links
C) tags
D) input elements
سؤال
Which of the following represents part of the business logic of a three-tier application?

A) Web browser
B) The database
C) JSF container
D) The network
سؤال
Both Swing and JSF handle the tedious details of capturing user input, but JSF ________.

A) is a client application.
B) hides high-level details.
C) handles form-posting events.
D) paints pixels in a frame.
سؤال
JSF pages define the ___________ of a web application.

A) swings
B) presentation logic
C) business logic
D) value expressions
سؤال
The application server listens to web requests, typically on which port?

A) 80
B) 8000
C) 8080
D) 1560
سؤال
Managed beans define the ___________ of a web application.

A) swing
B) presentation logic
C) business logic
D) value expressions
سؤال
The expression #{timeBean.time} is called a ____________.

A) bean expression
B) time expression
C) value expression
D) managed bean
سؤال
The part of the web application that is independent of the graphical user interface is called:

A) Swing.
B) presentation logic.
C) business logic.
D) HTML.
سؤال
All application files in a web application should be zipped up into a file with extension:

A) )zip
B) )jar
C) )web
D) )war
سؤال
Value expressions tie the ___________ together to make a web application.

A) GUI and the database server
B) managed beans and JSF pages
C) JSF and Swing components
D) JSF and HTML
سؤال
When deploying a JSF application, all class files must be placed in the _______ directory:

A) WEB-BEAN/classes/
B) BEAN-INF/classes/
C) WEB/INF/classes/
D) WEB-INF/classes/
سؤال
One of the steps in deploying a JSF application is to _______ of the web application:

A) Create a WEB-INF subdirectory in the root directory of the application directory
B) Create an INF-WEB subdirectory in the root directory of the application directory
C) Create a WEB-INF subdirectory in the application directory
D) Create a WEB-INF/classes subdirectory in the root directory of the application directory
سؤال
A _______ consists of a small string that the web server sends to a browser and that is later sent back to the same server.

A) stateless protocol
B) tasteless protocol
C) cookie
D) jar
سؤال
What do you need to run a JSF application?

A) A server and a client.
B) A server with swing.
C) Presentation and business logic.
D) A server with a JSF container.
سؤال
The user interface of a web application is called:

A) Swings
B) presentation logic
C) business logic
D) XML
سؤال
With GlassFish, the default deployment directory is called:

A) domains/deploy
B) domains/domain1/deploy
C) domains/autodeploy
D) domains/domain1/autodeploy
سؤال
The name of the bean in the expression #{timeBean.time} is:

A) time
B) timeBean
C) Bean
D) timeBean.time
سؤال
The JSF technology enables the separation of :

A) HTML and Swing.
B) presentation and application.
C) business logic and presentation.
D) JSF and HTML.
سؤال
One of the steps in deploying a JSF application is to _______ of the web application:

A) Place the file web.xml in the WEB-INF directory
B) Place the file web.xml in the root directory
C) Place the file web.xml in the WEB-INF/classes directory
D) Place the file web.xml in the modules directory
سؤال
What does the second period in the following command denote?
Jar cvf time.war .

A) The root directory.
B) The parent directory
C) The current directory
D) The jar command directory
سؤال
One of the steps in deploying a JSF application is to _______ of the web application:

A) Place JSF pages (such as index.xhtml) in the WEB-INF directory
B) Place JSF pages (such as index.xhtml) in the root directory
C) Place JSF pages (such as index.xhtml) in the WEB-INF/classes directory
D) Place the file web.xml in the root directory
سؤال
All application files in a web application should be zipped up by running the _____ command.

A) zip
B) jar
C) unzip
D) war
سؤال
The expression #{timeBean.time} calls the ____________ method.

A) time
B) setTime
C) getTime
D) displayTime
سؤال
Which method(s) will this line from a JSF page call?

A) TimeZoneBean.getCity()
B) TimeZoneBean.setCity()
C) TimeZoneBean.getCity() and TimeZoneBean.setCity()
D) TimeZoneBean.checkCity() and TimeZoneBean.setCity()
سؤال
One of the corresponding methods for a JavaBean property called city is:

A) getcity()
B) getCity()
C) GetCity()
D) Getcity()
سؤال
If a JavaBean property has only a get method, then it is __________________.

A) a write-only property.
B) a read-write property.
C) a read-only property.
D) a hidden only property.
سؤال
If a JavaBean property has only a set method, then it is __________________.

A) a write-only property.
B) a read-write property.
C) a read-only property.
D) a hidden only property.
سؤال
One of the corresponding methods for a JavaBean property called ID is:

A) getid()
B) getID()
C) getId()
D) GetId()
سؤال
Consider the following code fragment:
Public String checkCity()
{
Zone = getTimeZone(city);
If (zone == null) { return "error"; }
Return "next";
}
Which JSF statement will call this method?

A)
B)
C)
D)
سؤال
_______ were invented to overcome the stateless protocol restrictions of HTTP.

A) Protocols
B) POP protocols
C) Servers
D) Cookies
سؤال
Which method(s) will this line from a JSF page call when the user submits the page?

A) TimeZoneBean.getCity()
B) TimeZoneBean.setCity()
C) TimeZoneBean.getCity() and TimeZoneBean.setCity()
D) TimeZoneBean.checkCity() and TimeZoneBean.setCity()
سؤال
Which method(s) will this line from a JSF page call?
The current time is #{timeBean.time}

A) TimeBean.getCity()
B) TimeBean.setCity()
C) TimeBean.getCity() and TimeBean.setCity()
D) TimeBean.checkCity() and TimeBean.setCity()
سؤال
The string that determines the next page that the JSF container sends to the browser is called the __________________.

A) bean navigator
B) outcome string
C) JavaBean result
D) HTML string
سؤال
Consider the following code fragment:
Public String checkCity()
{
Zone = getTimeZone(city);
If (zone == null) { return "error"; }
Return "next";
}
What is the result of executing the following JSF statement if zone is null?

A) An error message is printed.
B) The error.html page is displayed.
C) The next.html page is displayed.
D) The same page is displayed again.
سؤال
What does a method expression consist of?

A) The name of a bean only.
B) An outcome.
C) The name of a method only.
D) The name of a bean and the name of a method.
سؤال
When the string The current time is #{timeBean.time} is rendered, the JSF container calls the __________________.

A) time method.
B) setTime method.
C) getTime method.
D) both the setTime and the getTime methods.
سؤال
When is displayed, the JSF container calls the __________________.

A) time method.
B) setTime method.
C) getTime method.
D) both the setTime and the getTime methods.
فتح الحزمة
قم بالتسجيل لفتح البطاقات في هذه المجموعة!
Unlock Deck
Unlock Deck
1/74
auto play flashcards
العب
simple tutorial
ملء الشاشة (f)
exit full mode
Deck 24: Web Applications
1
One of the required steps in designing a JavaBean is:

A) Implement the get and set methods for all properties.
B) Implement a constructor with one argument.
C) Implement the helper methods.
D) Add the JSF components needed.
A
2
In a web application, the web server sends pages formatted in ____.

A) XML
B) HTML
C) Text
D) JavaBeans
B
3
The collection of choices for a radio button tag can be specified with a ___ tag.

A) f:selectItems
B) f:Items
C) f:selectRadioItems
D) f:selectChoiceItems
A
4
Which of the following contains a method expression?

A)
B)
C)
D) ...
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
5
Suppose a DictionaryBean class has a method String getLanguage(). Which JSF page statement would display the language properly?

A) The language of the dictionary is value="dictionaryBean.getLanguage".
B) The language of the dictionary is #{dictionaryBean.getLanguage}.
C) The language of the dictionary is value="#{dictionaryBean.language}".
D) The language of the dictionary is #{dictionaryBean.language}.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
6
JSF page syntax is a mixture of ______ and JSF-specific tags.

A) XML
B) Beans
C) HTML
D) JSP
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
7
____ support the separation of presentation and business logic.

A) Session expressions
B) Application expressions
C) Value expressions
D) Method expressions
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
8
______ of a bean component can be accessed by tools without having to write Java code.

A) Options
B) Elements
C) Types
D) Properties
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
9
If the scope of a managed bean has been set to _______, then the bean stays alive during multiple requests from the same browser.

A) session
B) global
C) private
D) public
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
10
In JSF, button groups and ____ require that you specify two properties: the collection of possible choices and the actual choice.

A) menus
B) cookies
C) images
D) text areas
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
11
What does the value expression timeZoneBean.city do when it is part of the JSF tag ?

A) Sets the timeBean.city instance variable.
B) Calls the timeBean.setTime method
C) Calls the timeBean.setTime method method
D) Calls either the timeBean.setTime or timeBean.setTime method
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
12
What does the value expression timeBean.time do?

A) Sets the timeBean.time instance variable.
B) Calls the timeBean.setTime method
C) Calls the timeBean.getTime method
D) Creates an input field called time.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
13
Name one of the requirements for a Java class to become a JavaBean?

A) A JavaBean must have get, set, and command action methods.
B) A JavaBean must have only get and set methods.
C) A JavaBean must have a public constructor with one or more arguments.
D) A JavaBean must have a public constructor with no arguments.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
14
____ link JSF pages with Java objects.

A) JavaBeans
B) Browsers
C) Value expressions
D) Session bindings
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
15
The keys of the map specified in f:selectItems are the ____ that are displayed next to each choice.

A) attributes
B) text
C) labels
D) values
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
16
The Java library contains a _______ class that provides information about time zones around the world.

A) Time
B) Zone
C) TimeDate
D) TimeZone
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
17
Every bean must have a ____ with no arguments.

A) read method
B) set method
C) constructor
D) get method
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
18
The purpose of a JSF page is to generate a ____ page.

A) Hyper Text Markup Language
B) Server
C) Java Formatted
D) Browser
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
19
Which of the following is an example of a server with a JSF container?

A) JSF
B) GlassFish
C) JDBC
D) JSP
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
20
The ____ tag is used to specify all choices for a component that allows selection from a list of choices.

A) h:commandButton
B) f:selectItems
C) h:selectManyRadio
D) h:inputText
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
21
When a form from a web application is submitted by a user, where are the form elements sent?

A) to a database pool
B) to a server browser
C) to a web browser
D) to a web server
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
22
To query a database, a JavaBean needs a(n) ____________ object.

A) Table
B) Connection
C) Bean
D) HTML
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
23
A _______ is an application whose user interface is displayed in a web browser.

A) server application
B) web application
C) client application
D) internet application
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
24
The _______ converts a JSF page to an HTML page.

A) JSF translator
B) JSF compiler
C) JSF container
D) HTML converter
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
25
The user interface of a web application is displayed in a ______.

A) protocol
B) server browser
C) web browser
D) web server
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
26
Which of the following statements is correct?

A) A server with a JSF container such as GlassFish manages a pool of database connections.
B) JSF tags use XML syntax but the / before the closing angle bracket is not required.
C) JSF tags are case insensitive.
D) A JSF page cannot contain XML tags.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
27
The user interface of a JSF application is described by ________.

A) a set of HTML-only pages.
B) a set of JSF servers.
C) a set of JSF events.
D) a set of JSF pages.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
28
Swing differs from JSF in that it ________.

A) handles form-posting events.
B) paints pixels in a frame.
C) paints by emitting HTML code.
D) hides high-level details.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
29
A JSF page contains ________.

A) HTML tags.
B) HTML tags and JSF tags.
C) JSF tags only.
D) no tags at all.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
30
When a submit button is pressed in a simple JSF application, what does the outcome string represent?

A) the next page to be displayed
B) the error message to be displayed
C) the data submitted by the user
D) the data to be displayed
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
31
A set of JSF pages makes ________.

A) the user interface of a web application.
B) the user interface of a database application.
C) the user interface of a server application.
D) the user interface of a client application.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
32
Where does the application program of a web application reside?

A) On the client server.
B) On the web server.
C) On the client side.
D) On the browser client.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
33
A _____ is an object that is controlled by the JSF container.

A) TimeBean
B) HTML page
C) JSF page
D) managed bean
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
34
A method _________ specifies a bean and a method that should be invoked on the bean.

A) property
B) name
C) expression
D) value
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
35
The JSF tags are dynamically translated into HTML tags and text. In this context, dynamic means:

A) the translation uses polymorphism.
B) the translation depends on the current state of Java objects.
C) the translation is done by the web browser.
D) the translation changes the state of the Java objects.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
36
One of the web application frameworks that has been developed is ________.

A) JavaServer Framework
B) JavaServer Faces
C) HTTP
D) JEEF
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
37
Several elements of a JSF page are tags with a(n) ________.

A) h: prefix.
B) a: prefix.
C) D)
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
38
An HTML page contains ____ that describe the structure of the page.

A) heading
B) links
C) tags
D) input elements
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
39
Which of the following represents part of the business logic of a three-tier application?

A) Web browser
B) The database
C) JSF container
D) The network
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
40
Both Swing and JSF handle the tedious details of capturing user input, but JSF ________.

A) is a client application.
B) hides high-level details.
C) handles form-posting events.
D) paints pixels in a frame.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
41
JSF pages define the ___________ of a web application.

A) swings
B) presentation logic
C) business logic
D) value expressions
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
42
The application server listens to web requests, typically on which port?

A) 80
B) 8000
C) 8080
D) 1560
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
43
Managed beans define the ___________ of a web application.

A) swing
B) presentation logic
C) business logic
D) value expressions
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
44
The expression #{timeBean.time} is called a ____________.

A) bean expression
B) time expression
C) value expression
D) managed bean
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
45
The part of the web application that is independent of the graphical user interface is called:

A) Swing.
B) presentation logic.
C) business logic.
D) HTML.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
46
All application files in a web application should be zipped up into a file with extension:

A) )zip
B) )jar
C) )web
D) )war
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
47
Value expressions tie the ___________ together to make a web application.

A) GUI and the database server
B) managed beans and JSF pages
C) JSF and Swing components
D) JSF and HTML
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
48
When deploying a JSF application, all class files must be placed in the _______ directory:

A) WEB-BEAN/classes/
B) BEAN-INF/classes/
C) WEB/INF/classes/
D) WEB-INF/classes/
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
49
One of the steps in deploying a JSF application is to _______ of the web application:

A) Create a WEB-INF subdirectory in the root directory of the application directory
B) Create an INF-WEB subdirectory in the root directory of the application directory
C) Create a WEB-INF subdirectory in the application directory
D) Create a WEB-INF/classes subdirectory in the root directory of the application directory
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
50
A _______ consists of a small string that the web server sends to a browser and that is later sent back to the same server.

A) stateless protocol
B) tasteless protocol
C) cookie
D) jar
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
51
What do you need to run a JSF application?

A) A server and a client.
B) A server with swing.
C) Presentation and business logic.
D) A server with a JSF container.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
52
The user interface of a web application is called:

A) Swings
B) presentation logic
C) business logic
D) XML
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
53
With GlassFish, the default deployment directory is called:

A) domains/deploy
B) domains/domain1/deploy
C) domains/autodeploy
D) domains/domain1/autodeploy
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
54
The name of the bean in the expression #{timeBean.time} is:

A) time
B) timeBean
C) Bean
D) timeBean.time
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
55
The JSF technology enables the separation of :

A) HTML and Swing.
B) presentation and application.
C) business logic and presentation.
D) JSF and HTML.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
56
One of the steps in deploying a JSF application is to _______ of the web application:

A) Place the file web.xml in the WEB-INF directory
B) Place the file web.xml in the root directory
C) Place the file web.xml in the WEB-INF/classes directory
D) Place the file web.xml in the modules directory
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
57
What does the second period in the following command denote?
Jar cvf time.war .

A) The root directory.
B) The parent directory
C) The current directory
D) The jar command directory
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
58
One of the steps in deploying a JSF application is to _______ of the web application:

A) Place JSF pages (such as index.xhtml) in the WEB-INF directory
B) Place JSF pages (such as index.xhtml) in the root directory
C) Place JSF pages (such as index.xhtml) in the WEB-INF/classes directory
D) Place the file web.xml in the root directory
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
59
All application files in a web application should be zipped up by running the _____ command.

A) zip
B) jar
C) unzip
D) war
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
60
The expression #{timeBean.time} calls the ____________ method.

A) time
B) setTime
C) getTime
D) displayTime
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
61
Which method(s) will this line from a JSF page call?

A) TimeZoneBean.getCity()
B) TimeZoneBean.setCity()
C) TimeZoneBean.getCity() and TimeZoneBean.setCity()
D) TimeZoneBean.checkCity() and TimeZoneBean.setCity()
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
62
One of the corresponding methods for a JavaBean property called city is:

A) getcity()
B) getCity()
C) GetCity()
D) Getcity()
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
63
If a JavaBean property has only a get method, then it is __________________.

A) a write-only property.
B) a read-write property.
C) a read-only property.
D) a hidden only property.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
64
If a JavaBean property has only a set method, then it is __________________.

A) a write-only property.
B) a read-write property.
C) a read-only property.
D) a hidden only property.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
65
One of the corresponding methods for a JavaBean property called ID is:

A) getid()
B) getID()
C) getId()
D) GetId()
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
66
Consider the following code fragment:
Public String checkCity()
{
Zone = getTimeZone(city);
If (zone == null) { return "error"; }
Return "next";
}
Which JSF statement will call this method?

A)
B)
C)
D)
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
67
_______ were invented to overcome the stateless protocol restrictions of HTTP.

A) Protocols
B) POP protocols
C) Servers
D) Cookies
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
68
Which method(s) will this line from a JSF page call when the user submits the page?

A) TimeZoneBean.getCity()
B) TimeZoneBean.setCity()
C) TimeZoneBean.getCity() and TimeZoneBean.setCity()
D) TimeZoneBean.checkCity() and TimeZoneBean.setCity()
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
69
Which method(s) will this line from a JSF page call?
The current time is #{timeBean.time}

A) TimeBean.getCity()
B) TimeBean.setCity()
C) TimeBean.getCity() and TimeBean.setCity()
D) TimeBean.checkCity() and TimeBean.setCity()
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
70
The string that determines the next page that the JSF container sends to the browser is called the __________________.

A) bean navigator
B) outcome string
C) JavaBean result
D) HTML string
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
71
Consider the following code fragment:
Public String checkCity()
{
Zone = getTimeZone(city);
If (zone == null) { return "error"; }
Return "next";
}
What is the result of executing the following JSF statement if zone is null?

A) An error message is printed.
B) The error.html page is displayed.
C) The next.html page is displayed.
D) The same page is displayed again.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
72
What does a method expression consist of?

A) The name of a bean only.
B) An outcome.
C) The name of a method only.
D) The name of a bean and the name of a method.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
73
When the string The current time is #{timeBean.time} is rendered, the JSF container calls the __________________.

A) time method.
B) setTime method.
C) getTime method.
D) both the setTime and the getTime methods.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
74
When is displayed, the JSF container calls the __________________.

A) time method.
B) setTime method.
C) getTime method.
D) both the setTime and the getTime methods.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.
فتح الحزمة
k this deck
locked card icon
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 74 في هذه المجموعة.