EMT Practice Test

1. Question Content...


Question List

Question1: How many of the JavaServer Faces (JSF) lifecycle phases involve the processing of events?

Question2: What is the size, in bytes, of the Long data type in IBM LotusScript?

Question3: Charles is using IBM LotusScript to read a text file. He would like to read the first 23 characters in the file and replace them with a different string value. The following code snippet has a statement missing after the last line. What statement will Charles append to the snippet to complete the code?

Question4: Which statement is true regarding the Extension Library Tooltip control?

Question5: Steve has written an agent which makes external ODBC calls, and he has confirmed the driver is thread safe. What can Steve set to report the driver is thread safe?

Question6: Which server-side Global Function is available through the XPages runtime?

Question7: Lynn would like to obtain the current date and time from the server hosting the database where his Formula code is executing. Which line of code could he use to do that?

Question8: Sam would like to use Formula Language to extract the word "cat" from the sentence: "The black cat walked under the ladder". She has assigned the sentence to the variable "MySentence". Which line of code could she use to do that?

Question9: Within the JavaServer Faces (JSF) lifecycle the "view" which contains all the GUI components is managed internally by which object?

Question10: There is a case where the XPage needs to check for certain conditions of the XPage prior to submission to the server for processing. All data entry controls are configured with server-side validators. Which XSP method could be used to prevent a page submission?

Question11: If the facet is named, which is true?

Question12: Barb added an Application Layout control to the ccAppLayout custom control she is developing. What must Barb do to enable all of the editable areas in the Application Layout control for use on the XPages where she will add the ccAppLayout custom control?

Question13: What value does this formula return? FIELD Items := 10; FIELD Values := 5; rate := 0.10; subtotal := Items
* Values; subtotal * (1 + rate)

Question14: Charles needs to create a button with a link that will open an attachment that is in a document in his Domino application. What is the proper syntax to use for the URL in the button ?

Question15: Helen is using a Repeat control to add a row to a table for each view entry in a Domino View data source.
When she tests her code she sees 10 tables and not one table with 10 rows. How could she correct this?

Question16: Which control can a Tool Bar Button control be added into within a mobile application?

Question17: Jack wants to be able to add a client-side JavaScript (CSJS) library as a resource to his XPages custom control. How would he accomplish this?

Question18: Nathan wishes to create the ability to refresh a specific area of his XPage. Starting with "Select the onclick event of the button", which steps would Nathan then take to select the panel to refresh?

Question19: Jessica wants to resize a text field from its default size. What should she enter in the HTML attributes for the field?

Question20: Charles would like to use JavaScript in his XPages application to access an IBM Domino database and view the access control list entries for the specified database. What order will the entries be retrieved in when he uses the GetFirstEntry and GetNextEntry methods?

Question21: Johnny is adding a single button to change an In-Place Form from read mode to edit mode and vice versa.
Which server-side JavaScript code snippet can be utilized?

Question22: What is an Editable Area?

Question23: If a document contains rich content in native IBM Notes (CD) format, what could be used to access that data as MIME content?

Question24: Jimmy wants to define a data source within his XPages application. Which option is a valid data source?

Question25: Laura wants to add a flag to her XPages control, but does not see it in the All Properties section within IBM Domino Designer in Eclipse. How can she add a custom attribute?

Question26: Linda would like to call an existing IBM LotusScript agent via an XPage. The agent will update a value on the XPage it was called from. Which is the correct way to call the agent to allow an update?

Question27: Michael has designed a mobile application with two mobile pages. For the first mobile page he set the pageName property to "page1" and for the second mobile page he set the pageName property to "page2".
What server-side simple action can Michael add on the second page to navigate the mobile application user to the first page when touched?

Question28: Which is true about a Callback control?

Question29: Jenna is working on an XPage with multiple data sources which are document1, document2, view2, and view1. The XPage needs a new custom control that needs access to data source document2 from the XPage. After opening the custom control in IBM Domino Designer, how should Jenna pass the data source object handle "document2" from the XPage to the custom control?

Question30: Which property does the Dojo Text Area control have that the Multiline Edit Box control does not?

Question31: Jason added a Data View control to an XPage and defined as its data source the
"CustomersByNameView" in the Customers application. He specified the CustomerName column as the column to open the selected customer document when clicked. Into which property of the Data View control should Jason add columns to display the values from the City, Contact and Phone columns in the data source?

Question32: When he saved this mobile XPage John received a compile-time error indicating a required property for the
<xe:singlePageApp> control is not present.

What property and value must John add to the <xe:singlePageApp> start tag to correct this error?

Question33: What two items are true regarding managed beans? (Choose two.)

Question34: What does the ContentAsText property of a NotesMIMEEntity object containing a multipart entity return?

Question35: Sally wants to manually bind an Edit Box control to the LastName field on her document data source
"contactDoc". Which is the correct syntax for the Edit Box?

Question36: Gary is writing a view selection formula to only display documents which have a Status field value of
"Complete". Which formula will display the correct documents?

Question37: What would this code snippet accomplish when added to an XPage application?

Question38: By default, in which file type are custom controls stored within the Eclipse workspace?

Question39: Slobo is working on a new XPages application. He has a requirement to use a Stylesheet (CSS). How would he use it on a XPage?

Question40: Which control, used to dynamically switch content, includes a useHash property to support switching content via a URL hash tag?

Question41: Which is a valid property for an <xp:eventHandler>?

Question42: Scott wants to add a <STYLE> tag with a computed rendered property to his XPage. He knows that that
<xp:style> tag is not valid XML markup. How can he add the computed style tag to his XPage using one of the All property values of a computed text field?

Question43: Marco has designed a mobile application with two mobile pages. For the first mobile page he set the pageName property to "viewMobilePage" and for the second mobile page he set the pageName property to "documentMobilePage". He designed the viewMobilePage to display a listing of customer names from the CustomersByName view. He designed the documentMobilePage to display the document details for the customer touched on the viewMobilePage. He specified "customerDoc" as the name for the Domino Document data source and the field with the customer phone number is named "phone". What can Marco do to add a touch control to dial the phone number for the customer currently displayed on the documentMobilePage?

Question44: Ken has written an IBM LotusScript agent that updates existing documents with new data. However, after the agent runs, some of the documents are giving errors while users are working with them in the user interface. Some of the data that was added is not passing the field validation tests. What can Ken do to make sure the data he is adding to the documents is valid before he saves the changes?

Question45: Which statement is true about the Application Layout control?

Question46: Which control, used to dynamically switch content, includes support to code the Dynamic Content display using a Simple Action, client-side or server-side JavaScript?

Question47: Which server notes.ini property will set the maximum Java Heap size used by the HTTP process?

Question48: Charles will use DOM to access document-related data using server-side JavaScript. Which class would Charles use to access character data?

Question49: In IBM LotusScript, when a variable that has a Variant data type is initialized, what value does it contain?

Question50: Charles wants to be able to add a collapsible area to his XPage. Which control would allow him to do that?

Question51: Which statement is true regarding the Extension Library Tooltip control?

Question52: Sofia has created a button on an XPage that has the following JavaScript code for the onclick event:
sessionScope.put("School","Walton"); If the application is closed and reopened, what is the value in contained in sessionScope.School?

Question53: James is using the simple action "Send mail message" in a button. Which statement describes a limitation when using this simple action?

Question54: Sarah wants a partial refresh to occur within her XPages application when a user clicks a button. Which is the correct attribute for the button <xp:eventHandler> to ensure a partial refresh?

Question55: Jaden is looking for a way to show all the error messages from his validated fields in one place. Which of the following could he use to accomplish this?

Question56: Davis is concerned that the Extension Library REST Service is not secure. Which is a true statement?

Question57: Into which property of the Data View control should Mary define the leftmost column with a link to open the selected document when clicked?

Question58: Akane is trying to decide between using @Command([RefreshWindow]) and @Command (ReloadWindow]) in a view action. What is the significant difference between the two?

Question59: Which statement is true for the Single Page Application control for use on a mobile XPage?

Question60: Steve has written an agent which is called from a web application. Steve plans to enable "Run Web Agents concurrently". What two things should Steve consider before enabling? (Choose two.)

Question61: James has created an IBM Domino application that users will access over the web. He needs to create a link to open the application's "Using This Application" page. What URL string will he use?

Question62: Which control should Jane use to switch display to any one of several views in the Customers application?

Question63: What is one effect triggered by @Command([ToolsRefreshAllDocs])?

Question64: Mark has designed a mobile application with two mobile pages. For the first mobile page he set the pageName property to "viewMobilePage" and for the second mobile page he set the pageName property to "documentMobilePage". He designed the viewMobilePage to display a listing of customer names from the CustomersByName view. He designed the documentMobilePage to display the document details for the customer touched on the viewMobilePage. He specified "customerDoc" as the name for the Domino Document data source and the field with the customer phone number is named "phone". What can Mark do to add a touch control to send an SMS message to the customer currently displayed on the documentMobilePage?

Question65: Gabe is using the Calendar classes to create a repeat meeting. How does Gabe use the NotesCalendar class to create a repeating event?

Question66: There is a requirement in a XPage to display a dialog box to gather data from the user without losing the context of the underlying XPage. After the user enters FirstName, LastName, and MiddleInitial, the underlying XPage should be updated with the "Full Name". Which control should be used?

Question67: Tyler has designed a viewMobilePage to display a listing of customer names from the CustomersByName view. During testing Tyler determined that to avoid scrolling he will need to restrict the number of customer names displayed on the viewMobilePage to ten. How can he do this?

Question68: What format does the NotesCalendar class use for the data in the calendar entries?

Question69: Charles has created an agent which uses the Send method of the NotesDocument class. He has added a button to the document and it should be included when the message is sent. Which code snippet below would correctly send the message and include the button?

Question70: Which server-side JavaScript statement will return the user to the xHome.xsp XPage?

Question71: Which navigator control only works with data within the same database?

Question72: Linda has an existing IBM LotusScript agent she would like to invoke from an XPage. Assuming the agent name is FRED, what should Linda add to her XPage to call the agent?

Question73: Which is true with regards to XPages Event Handlers?

Question74: John added a Dynamic View Panel to the CustomersViews XPage to switch display to any one of several views in the Customers application. He set the pageName property to the CustomerDocument XPage to identify the XPage to open when a customer name is selected from the displayed view in the Dynamic View Panel control. What must John do to have the selected customer document open in read mode on the CustomerDocument XPage?

Question75: James is creating an IBM LotusScript agent that will concatenate a string value and a numeric expression.
Using the following code snippet, what will be the output? a$ = "500" b% = 200 c$ = "100" print (a$ & b%)
+ c$

Question76: Steven is using Java to write an agent in his application and needs to get a handle to the database that the agent is running in. How can Steven accomplish this?

Question77: Jack is working on a new XPages application. He has a requirement to use a JavaScript library from a previous XPages project. After adding the JavaScript file in the Script Libraries section, how would he use it on an XPage?

Question78: Jen added an Application Layout control to the ccAppLayout custom control she is developing. To the titleBarTabs in the configuration she added three <xe:pageTreeNode> nodes to open an XPage with a Domino View data source in the Customers, Parts and Sales applications respectively. The label property for the three tabs she set to "Customers Application", "Parts application" and "Sales Application". What must Jen do to show the "Customers Application" tab as selected when any of the "Customers" XPages is rendered in a browser?

Question79: If the facet name is computed which is true?

Question80: Jason is designing a mobile application with three mobile pages. Which control should Jason add to his XPage to be the overall container for all of the mobile pages in his application?

Question81: Which attribute of a facet specifies the location to display the facet's contents in its parent control?

Question82: A developer is working on an XPage and there is a client-side feature that needs to compute a value from a viewScope variable docStatus. Which Expression Language syntax will compute the value client-side?

Question83: Kamden is looking for a simple way to ensure that some of his XPages fields are filled in by the end user.
What steps could he use to accomplish this?

Question84: The "Run server-based XPages applications directly on Domino server" property setting is selected for an xPage application. When launched by an IBM Notes client user, what will happen?

Question85: Ava is working on an XPage with multiple data sources which are document1, document2, view1, and view2. The XPage needs a new custom control that needs access to data source view1 from the XPage.
Which is the correct way to pass the data source object handle "view1" from the XPage to the custom control?

Question86: Pamela wants to be able to able to debug her JavaScript within her XPages in the Notes client (XPiNC) application. What Extension Library control should she add to her XPage to enable this?

Question87: William wants to show line numbers in the Source Editor. How can he accomplish that?

Question88: Greg is designing a mobile application and would like to provide his mobile application users with a wheel selector interface to set a date value. How can he add a date wheel selector interface to his mobile input page?

Question89: Michael has designed a mobile application with two mobile pages. For the first mobile page he set the pageName property to "page1" and for the second mobile page he set the pageName property to "page2".
What should Michael add on the second page to navigate the mobile application user to the first page when touched?

Question90: Which is a true statement about XPages in the Notes client (XPiNC)?

Question91: Which is a valid method of the XSP client-side object?

Question92: Which property can be used to control the look and feel of the In-Place Form control?

Question93: Which control should Larry add to the left column area of an Application Layout to provide a menu selection interface that uses the "lotusSelected" style class to indicate that a menu choice was selected?

Question94: John wants to add a "data-role" attribute to his Edit Box control. Which can he use to accomplish this?

Question95: When adding a custom control to his XPage, Dennis wants to display a custom message to the designer rather than the normal design representation of the custom control. How would he accomplish this?

Question96: Which is the correct way to compute a client-side JavaScript variable fullName from two fields on a datasource firstName and lastName?

Question97: Sofia has created a button on an XPage that has the following JavaScript code for the onclick event:
applicationScope.put("School","Montessori"); If the application is closed and reopened, what is the value in contained in applicationScope.School?

Question98: Which statement is true when developing an XPage in IBM Domino Designer?

Question99: Which property of the Form Table control is used to display an asterisk (*) before the label for any required fields?