[Free] 2018(Jan) EnsurePass Examcollection IBM C2040-410 Dumps with VCE and PDF 31-40

Ensurepass.com : Ensure you pass the IT Exams
2018 Jan IBM Official New Released C2040-410
100% Free Download! 100% Pass Guaranteed!
http://www.EnsurePass.com/C2040-410.html

IBM Notes and Domino 9.0 Social Edition Application Development B

Question No: 31 – (Topic 1)

Peter is writing a Java agent for his application that will need to read data from a text file on the server. How can Peter accomplish this task?

  1. Use the Session class createFile method and use the File class methods to get the data from the file.

  2. Use the Session class Open method and use the standard Java IO methods to get the data from the file.

  3. Use the Session class createStream method and use the Stream class methods to get the data from the file.

  4. Use the Session class getDatabse method, supply the name of the file instead of a database name, and use the Database class methods toread the file.

Answer: C

Question No: 32 – (Topic 1)

Jason added a Data View control to an XPage and defined as its data source the quot;CustomersByNameViewquot; 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?

  1. columns

  2. addColumns

  3. multiColumns

  4. extraColumns

Answer: D

Question No: 33 – (Topic 1)

If the facet is named, which is true?

  1. The control added is determined at run time.

  2. Controls cannot be added to the editable area.

  3. Multiple controls can be added to the editable area.

  4. Only one control can be added to the editable area.

Answer: D

Question No: 34 – (Topic 1)

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

  1. var fullname = quot;#{javascript:document1.firstName #39; #39; document1.lastName;}quot;;

  2. var fullname = quot;#{javascript:document1.getDocument().firstName #39; #39; document1.getDocument().lastName;}quot;;

  3. var fullname = quot;#{javascript:document1.getItemValue(#39;firstName#39;) #39; #39; document1.getItemValue(#39;lastName#39;);}quot;;

  4. var fullname = quot;#{javascript:document1.getItemValueString(#39;firstName#39;) #39; #39;

document1.getItemValueString(#39;lastName#39;);}quot;;

Answer: D

Question No: 35 – (Topic 1)

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?

  1. myTime := @Now([SERVERTIME])

  2. myTime := @ServerTime([NOW])

  3. myTime := @Time([SERVER]:[NOW])

  4. myTime := @Server([TIME]:[NOW])

Answer: A

Question No: 36 – (Topic 1)

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

  1. Gabe will need to use the CreateRepeatEntry method of the NotesCalendar class.

  2. Gabe needs to include an RRule item in the iCalendar data he is passing to the CreateEntry call.

  3. Gabe will need to make a call to the CreateEntry method of the NotesCalendar class for each occurrence of the event.

  4. Gabe should populate the Repeat property of the NotesCalendarEntry to true and populate the RepeatInterval property of theNotesCalendarEntry with the correct data.

Answer: B

Question No: 37 – (Topic 1)

Which is true with regards to XPages Event Handlers?

  1. Event Handlers must be attached to an XPage control event.

  2. Event Handlers can be used to execute client-side and server-side JavaScript in the same event.

  3. When an Event Handler event is complete, client-side JavaScript can be inserted through the onCompleted property.

  4. It is not possible to use client-side JavaScript to specifically call server-side JavaScript code without using a partial refresh.

Answer: B

Question No: 38 – (Topic 1)

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?

  1. Jack cannot accomplish this as resources can only be added to XPages and not custom controls.

  2. Within the Properties view of the custom control, select quot;Resourcesquot; and then add the appropriate resource by selecting from the prompts.

  3. Within the Events view of the custom control, select the onClientLoad event and insert the resource name within the client-side JavaScriptsection.

  4. Within the Properties view of the custom control, select quot;Dojoquot; and select the quot;Insert

Custom Libraryquot; option. Then follow the prompts to add theappropriate library.

Answer: B

Question No: 39 – (Topic 1)

What are three valid input objects for the NotesXMLProcessor class? (Choose three.)

  1. NotesView

  2. NotesForm

  3. NotesStream

  4. NotesDXLImporter

  5. NotesDXLExporter

  6. NotesRichTextItem

Answer: C,E,F

Question No: 40 – (Topic 1)

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?

  1. Dim doc as NotesDocument#39;…set value of doc…Call doc.Save(True, False)Call doc.Send(False, True)

  2. Dim doc as NotesDocument#39;…set value of doc…Call doc.Save(False, False)Call doc.Send(True)

  3. Dim doc as NotesDocument#39;…set value of doc…Call doc.Save(False)Call doc.Send(SendTo, True)

  4. Dim doc as NotesDocument#39;…set value of doc…Call doc.Save(True)Call doc.Send(quot;SendToquot;, True)

Answer: B

100% Ensurepass Free Download!
Download Free Demo:C2040-410 Demo PDF
100% Ensurepass Free Guaranteed!
C2040-410 Dumps

EnsurePass ExamCollection Testking
Lowest Price Guarantee Yes No No
Up-to-Dated Yes No No
Real Questions Yes No No
Explanation Yes No No
PDF VCE Yes No No
Free VCE Simulator Yes No No
Instant Download Yes No No

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.