Deck 25: Web Applications
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/75
Play
Full screen (f)
Deck 25: 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) 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
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
A) attributes
B) text
C) labels
D) values
C
3
______ of a bean component can be accessed by tools without having to write Java code.
A) Options
B) Elements
C) Types
D) Properties
A) Options
B) Elements
C) Types
D) Properties
D
4
Which of the following contains a method expression?
A)
B)
C)
D) ...
A)
B)
C)
D)
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
5
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.
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.
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
6
____ support the separation of presentation and business logic.
A) Session expressions
B) Application expressions
C) Value expressions
D) Method expressions
A) Session expressions
B) Application expressions
C) Value expressions
D) Method expressions
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
7
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}.
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}.
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
8
Which of the following is an example of a server with a JSF container?
A) JSF
B) GlassFish
C) JDBC
D) JSP
A) JSF
B) GlassFish
C) JDBC
D) JSP
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
9
JSF page syntax is a mixture of ______ and JSF-specific tags.
A) XML
B) Beans
C) HTML
D) JSP
A) XML
B) Beans
C) HTML
D) JSP
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
10
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.
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.
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
11
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) f:selectItems
B) f:Items
C) f:selectRadioItems
D) f:selectChoiceItems
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
12
In a web application, the web server sends pages formatted in ____.
A) XML
B) HTML
C) Text
D) JavaBeans
A) XML
B) HTML
C) Text
D) JavaBeans
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
13
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
A) menus
B) cookies
C) images
D) text areas
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
14
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
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
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
15
The Java library contains a _______ class that provides information about time zones around the world.
A) Time
B) Zone
C) TimeDate
D) TimeZone
A) Time
B) Zone
C) TimeDate
D) TimeZone
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
16
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
A) h:commandButton
B) f:selectItems
C) h:selectManyRadio
D) h:inputText
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
17
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
A) session
B) global
C) private
D) public
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
18
____ link JSF pages with Java objects.
A) JavaBeans
B) Browsers
C) Value expressions
D) Session bindings
A) JavaBeans
B) Browsers
C) Value expressions
D) Session bindings
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
19
Every bean must have a ____ with no arguments.
A) read method
B) set method
C) constructor
D) get method
A) read method
B) set method
C) constructor
D) get method
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
20
The purpose of a JSF page is to generate a ____ page.
A) Hyper Text Markup Language
B) Server
C) Java Formatted
D) Browser
A) Hyper Text Markup Language
B) Server
C) Java Formatted
D) Browser
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
21
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.
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.
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
22
Several elements of a JSF page are tags with a(n) ________.
A) h: prefix.
B) a: prefix.
C) D)
A) h: prefix.
B) a: prefix.
C) D)
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
23
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
A) Web browser
B) The database
C) JSF container
D) The network
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
24
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) On the client server.
B) On the web server.
C) On the client side.
D) On the browser client.
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
25
A JSF page contains ________.
A) HTML tags.
B) HTML tags and JSF tags.
C) JSF tags only.
D) no tags at all.
A) HTML tags.
B) HTML tags and JSF tags.
C) JSF tags only.
D) no tags at all.
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
26
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.
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.
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
27
What is the difference between the client-server architecture and the three-tier architecture?
A) In the three-tier architecture, each tier is a database server.
B) In the client-server architecture, each client program has a presentation layer.
C) The three-tier application must be distributed over all desktops, but client-server does not.
D) The client-server application must reside on a server, but three-tier does not.
A) In the three-tier architecture, each tier is a database server.
B) In the client-server architecture, each client program has a presentation layer.
C) The three-tier application must be distributed over all desktops, but client-server does not.
D) The client-server application must reside on a server, but three-tier does not.
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
28
A method _________ specifies a bean and a method that should be invoked on the bean.
A) property
B) name
C) expression
D) value
A) property
B) name
C) expression
D) value
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
29
One of the web application frameworks that has been developed is ________.
A) JavaServer Framework
B) JavaServer Faces
C) HTTP
D) JEEF
A) JavaServer Framework
B) JavaServer Faces
C) HTTP
D) JEEF
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
30
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.
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.
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
31
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
A) to a database pool
B) to a server browser
C) to a web browser
D) to a web server
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
32
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.
A) is a client application.
B) hides high-level details.
C) handles form-posting events.
D) paints pixels in a frame.
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
33
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
A) server application
B) web application
C) client application
D) internet application
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
34
To query a database, a JavaBean needs a(n) ____________ object.
A) Table
B) Connection
C) Bean
D) HTML
A) Table
B) Connection
C) Bean
D) HTML
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
35
An HTML page contains ____ that describe the structure of the page.
A) heading
B) links
C) tags
D) input elements
A) heading
B) links
C) tags
D) input elements
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
36
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.
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.
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
37
The _______ converts a JSF page to an HTML page.
A) JSF translator
B) JSF compiler
C) JSF container
D) HTML converter
A) JSF translator
B) JSF compiler
C) JSF container
D) HTML converter
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
38
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) handles form-posting events.
B) paints pixels in a frame.
C) paints by emitting HTML code.
D) hides high-level details.
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
39
The user interface of a web application is displayed in a ______.
A) protocol
B) server browser
C) web browser
D) web server
A) protocol
B) server browser
C) web browser
D) web server
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
40
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) 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
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
41
JSF pages define the ___________ of a web application.
A) swings
B) presentation logic
C) business logic
D) value expressions
A) swings
B) presentation logic
C) business logic
D) value expressions
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
42
The application server listens to web requests, typically on which port?
A) 80
B) 8000
C) 8080
D) 1560
A) 80
B) 8000
C) 8080
D) 1560
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
43
A _____ is an object that is controlled by the JSF container.
A) TimeBean
B) HTML page
C) JSF page
D) managed bean
A) TimeBean
B) HTML page
C) JSF page
D) managed bean
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
44
The name of the bean in the expression #{timeBean.time} is:
A) time
B) timeBean
C) Bean
D) timeBean.time
A) time
B) timeBean
C) Bean
D) timeBean.time
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
45
Managed beans define the ___________ of a web application.
A) swing
B) presentation logic
C) business logic
D) value expressions
A) swing
B) presentation logic
C) business logic
D) value expressions
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
46
The expression #{timeBean.time} is called a ____________.
A) bean expression
B) time expression
C) value expression
D) managed bean
A) bean expression
B) time expression
C) value expression
D) managed bean
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
47
All application files in a web application should be zipped up by running the _____ command.
A) zip
B) jar
C) unzip
D) war
A) zip
B) jar
C) unzip
D) war
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
48
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) 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
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
49
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.
A) Swing.
B) presentation logic.
C) business logic.
D) HTML.
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
50
The JSF technology enables the separation of :
A) HTML and Swing.
B) presentation and application.
C) business logic and presentation.
D) JSF and HTML.
A) HTML and Swing.
B) presentation and application.
C) business logic and presentation.
D) JSF and HTML.
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
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.
A) A server and a client.
B) A server with swing.
C) Presentation and business logic.
D) A server with a JSF container.
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
52
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
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
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
53
All application files in a web application should be zipped up into a file with extension:
A) )zip
B) )jar
C) )web
D) )war
A) )zip
B) )jar
C) )web
D) )war
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
54
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
A) The root directory.
B) The parent directory
C) The current directory
D) The jar command directory
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
55
With GlassFish, the default deployment directory is called:
A) domains/deploy
B) domains/domain1/deploy
C) domains/autodeploy
D) domains/domain1/autodeploy
A) domains/deploy
B) domains/domain1/deploy
C) domains/autodeploy
D) domains/domain1/autodeploy
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
56
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
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
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
57
The expression #{timeBean.time} calls the ____________ method.
A) time
B) setTime
C) getTime
D) displayTime
A) time
B) setTime
C) getTime
D) displayTime
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
58
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/
A) WEB-BEAN/classes/
B) BEAN-INF/classes/
C) WEB/INF/classes/
D) WEB-INF/classes/
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
59
The user interface of a web application is called:
A) Swings
B) presentation logic
C) business logic
D) XML
A) Swings
B) presentation logic
C) business logic
D) XML
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
60
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
A) GUI and the database server
B) managed beans and JSF pages
C) JSF and Swing components
D) JSF and HTML
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
61
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
A) bean navigator
B) outcome string
C) JavaBean result
D) HTML string
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
62
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()
A) TimeZoneBean.getCity()
B) TimeZoneBean.setCity()
C) TimeZoneBean.getCity() and TimeZoneBean.setCity()
D) TimeZoneBean.checkCity() and TimeZoneBean.setCity()
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
63
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.
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.
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
64
One of the corresponding methods for a JavaBean property called ID is:
A) getid()
B) getID()
C) getId()
D) GetId()
A) getid()
B) getID()
C) getId()
D) GetId()
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
65
_______ were invented to overcome the stateless protocol restrictions of HTTP.
A) Protocols
B) POP protocols
C) Servers
D) Cookies
A) Protocols
B) POP protocols
C) Servers
D) Cookies
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
66
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.
{
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.
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
67
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.
A) a write-only property.
B) a read-write property.
C) a read-only property.
D) a hidden only property.
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
68
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.
A) time method.
B) setTime method.
C) getTime method.
D) both the setTime and the getTime methods.
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
69
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)
{
Zone = getTimeZone(city);
If (zone == null) { return "error"; }
Return "next";
}
Which JSF statement will call this method?
A)
B)
C)
D)
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
70
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()
A) TimeZoneBean.getCity()
B) TimeZoneBean.setCity()
C) TimeZoneBean.getCity() and TimeZoneBean.setCity()
D) TimeZoneBean.checkCity() and TimeZoneBean.setCity()
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
71
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()
A) TimeBean.getCity()
B) TimeBean.setCity()
C) TimeBean.getCity() and TimeBean.setCity()
D) TimeBean.checkCity() and TimeBean.setCity()
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
72
One of the corresponding methods for a JavaBean property called city is:
A) getcity()
B) getCity()
C) GetCity()
D) Getcity()
A) getcity()
B) getCity()
C) GetCity()
D) Getcity()
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
73
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.
A) a write-only property.
B) a read-write property.
C) a read-only property.
D) a hidden only property.
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
74
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
A) stateless protocol
B) tasteless protocol
C) cookie
D) jar
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck
75
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.
A) time method.
B) setTime method.
C) getTime method.
D) both the setTime and the getTime methods.
Unlock Deck
Unlock for access to all 75 flashcards in this deck.
Unlock Deck
k this deck