習(xí)題03章-Lotus Domino 6.5 程序設(shè)計(jì)_第1頁
習(xí)題03章-Lotus Domino 6.5 程序設(shè)計(jì)_第2頁
習(xí)題03章-Lotus Domino 6.5 程序設(shè)計(jì)_第3頁
習(xí)題03章-Lotus Domino 6.5 程序設(shè)計(jì)_第4頁
習(xí)題03章-Lotus Domino 6.5 程序設(shè)計(jì)_第5頁
已閱讀5頁,還剩10頁未讀, 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡介

1、習(xí)題03章: Lotus Domino 6.5 程序設(shè)計(jì)1.問答題Domino提供了幾種編程語言?22.問答題在選擇編程語言時(shí)可以遵循什么原則?23.問答題用公式寫一個(gè)代理,修改符合調(diào)價(jià)的文檔的域的值?34.問答題什么是表單公式?35.問答題在寫視圖選擇公式時(shí)要注意什么46.問答題公式語言有幾種變量類型?47.問答題在公式中如何表示文本常量?48.問答題在公式中如何表示時(shí)間常量?59.計(jì)算題有兩個(gè)列表temp1,temp2,計(jì)算temp的結(jié)果。510.公式函數(shù) 寫出middle函數(shù)的值。511.選擇題 有一個(gè)視圖名稱為“_Marketing_Procedures”,在公式中引用視圖的名稱,下面

2、那一個(gè)是正確的?。512.問答題 如何調(diào)試公式?613.問答題 請(qǐng)寫一個(gè)驗(yàn)證郵件地址的公式?614.問答題使用什么函數(shù)可以返回服務(wù)器的名稱?615.選擇題在“IBMDomino”服務(wù)器上有一個(gè)數(shù)據(jù)庫“discuss.nsf”,下面哪個(gè)是DbName函數(shù)返回的值?616.問答題Domino 前端用戶接口類的作用,有哪些常用的類?717.問答題如何使用Domino后端對(duì)象修改文檔的Subject域的值?718.選擇題which one of the following formulas dose cheng use to change the value of the releasedate fi

3、eld to today's date?819.選擇題kristin wants to build an action which exits the video form .the action will be avaiable only when the user is reading the document ,which one of the following accomplish this ?920.選擇題tony would like to make it easier for users of the video application to enter new doc

4、 using the “video form”, hed like users to be able to create new “video” doc from within the view. Which one of the following should tony so to build this interface?921.選擇題tony would like to make it easier for users of the video application to enter new doc using the “video form”, hed like users to

5、be able to create new “video” doc from within the view. Which one of the following should tony so to build this interface?922.選擇題which one of the following should maria do to display the release date in a text column?1023.選擇題Which one of the following Function to all "response"and "re

6、sponse to response"documents of parent documents?1024.選擇題Yuri created a formula for a button. The code is supposed to set the value of an existing field called title. He used the following formula:1025.選擇題kristin wants to create an action in the titles view,the code in the action is "1126.

7、選擇題Ariel is designing an application and would like to create response documents with a copy of the original doc in a collapsible select one of the following command,provided with the correct parameters,will allow her to do this?1127.選擇題helga is working with a multy-vlue field that has numeric value

8、s in a list. she would like to apply a formula to each item in the list, return the list which one of the following fuctions can she use to accomplish this with one line of code?1128.選擇題maria coded "alpha .beta .gamma "as a list in a notes formula .which one of the following indicates the

9、syntax entered1229.選擇題which one of the following should cathy use to sort a list?1230.選擇題which one of the following formulas would find the first word (all characters before the fist space) in a string field called name?1231.選擇題What will the following formula produce, assuming that the Author field

10、contains the following James Adair/Meadowlands/ACME1232.選擇題which one of the following is an fuction that Lonnie can use to return the value from a specifield field?1333.選擇題lisa is writing a formula to determine the number of elements in a list . she wants to ensure that a value is returned . even if

11、 the value her function is evaluating turns out to bu a null string . which one of the following can she so to accomplish this ?1334.選擇題which one of the following agents would change the contents of the type field to "sci-fi" in all documents which have "james adair"in the direct

12、or field?1335.選擇題which one of the following statements would lee include in an agent to limit the documents processed by the agent to those for which the value of the type field is "action"?1336.選擇題In the video form. the OrderDate field (Which shows When the video may be ordered)is calcula

13、ted based on the Date field (Which displays the release date ). The order date is 30 days prior to the release date. Which one the following formulas will calculate the OrderDate value?1437.選擇題jim ,a domino programmer, want to determine the number of working days in a year. Which one of the followin

14、g formula should he use?1438.選擇題Several functions can execute multiple statements. Which one of the following initializes a variable and can increment in during the operation?1439.選擇題james needs to sort a list of values in a list of values in fieldA, and when the form in saved ,he wants to sort the

15、list before it is saved. Which one of the following formulas would accomplish this?1540.選擇題Danielle wants to capture everying from a notes hieranchical name except for the common name .which one of the following formula will accomplish this?151. 問答題Domino提供了幾種編程語言?答:Domino提供了豐富的編程語言,用戶可以根據(jù)自己的特點(diǎn)和場合選擇

16、自己喜歡的編程方式。包含公式語言,LotusScript,JavaScript,Java。2. 問答題在選擇編程語言時(shí)可以遵循什么原則?答:1) 公式是具有類似編程語言特征的表達(dá)式,具備簡單的編程邏輯,主要使用函數(shù)和命令。對(duì)用戶當(dāng)前正在處理的對(duì)象,最好使用公式編程。例如:返回域的缺省值或確定視圖的選擇條件。2) JavaScript 是跨平臺(tái)、面向?qū)ο蟮拿枋鲂哉Z言。通過從 Objects 附簽中選擇 JS Header,可在編程窗格中編寫 Header script,JavaScript 最好用于 Web 應(yīng)用程序,或者單個(gè)應(yīng)用程序被同時(shí)用于 Notes 和 Web 環(huán)境時(shí)。3) LotusS

17、cript 是完全面向?qū)ο蟮木幊陶Z言。它通過預(yù)定義的類與 Domino 接口。Domino 監(jiān)控用戶代碼的編譯和加載,并且自動(dòng)包含 Domino 的類定義。LotusScript 最好用于編程邏輯比較復(fù)雜的地方。LotusScript 擅長訪問存儲(chǔ)的數(shù)據(jù)庫數(shù)據(jù)(后端)。4) Java 是一種完全面向?qū)ο蟮木幊陶Z言,它與 Domino 的接口是通過預(yù)定義的類實(shí)現(xiàn)的。在代理方面它可與 LotusScript 相比,但是它不能附加到 Domino UI 中的事件中。Java 可以用在代理、Java 應(yīng)用程序和小程序中,可以在 Domino 以外編寫和編譯,并且可以通過類接口訪問 Domino。3.

18、問答題用公式寫一個(gè)代理,修改符合調(diào)價(jià)的文檔的域的值?答:以下公式根據(jù)“TotalSales”域的值,為選定的文檔的“Category”域?qū)懭胫怠H绻Z句中不包含“SELECT All”語句,則 SELECT 語句必須出現(xiàn)在公式中的應(yīng)用語句之前。SELECT TotalSales >= 200000;FIELD Category := "Above Quota"4. 問答題什么是表單公式?答:表單公式確定在視圖中打開文檔時(shí),使用哪個(gè)表單顯示文檔。表單公式是可選的。表單公式必須返回表單名。Domino Designer 按以下優(yōu)先次序選擇表單:1) 存儲(chǔ)在文檔中的表單。2

19、) 表單公式中指定的表單。3) 文檔創(chuàng)建時(shí)使用的表單。4) 數(shù)據(jù)庫的缺省表單。5. 問答題在寫視圖選擇公式時(shí)要注意什么答:選擇公式選擇顯示在視圖中的文檔。選擇公式必須以 SELECT 語句結(jié)束。例如:Select form=“Main Topic”;6. 問答題公式語言有幾種變量類型?答:變量有兩種類型,域和臨時(shí)變量。公式可以訪問正在處理的文檔中的域。每個(gè)域的名稱和類型都在數(shù)據(jù)庫設(shè)計(jì)中指定。使用Field關(guān)鍵字訪問域變量。FIELD Subject := "No Subject"臨時(shí)變量只存在于公式中。其作用范圍就是所在公式,除了公式中賦予的屬性之外不再具有其他屬性。下面公

20、式為臨時(shí)變量temp賦值。temp:=username7. 問答題在公式中如何表示文本常量?文本常量是包含在引號(hào)中的字符,其中也包括空格、數(shù)字和特殊字符。反斜杠 () 在文本常量中作為轉(zhuǎn)義字符使用。要在文本常量中嵌入引號(hào),須在每個(gè)嵌入的引號(hào)前加上一個(gè)反斜杠。要在文本常量中嵌入反斜杠,則必須鍵入兩個(gè)反斜杠。公式是:"Type "Yes" or "No""結(jié)果是:Type "Yes" or "No"除了可以使用引號(hào)表示文本常量外,還可以使用大括號(hào),表示文本常量。上面對(duì)文本常量用大括號(hào)表示為:Type

21、 "Yes" or "No"。不需要使用反斜杠作為轉(zhuǎn)義符。8. 問答題在公式中如何表示時(shí)間常量?答:時(shí)間-日期常量由時(shí)間和(或)日期構(gòu)成,放在方括號(hào)中。24 小時(shí)制 時(shí)間格式為 hh:mm:ss,日期的格式為 mm/dd/yy。時(shí)間和日期的格式為 time date 或 date time。例如:5:30 PM 6/15,6/15/97如果時(shí)間-日期值相減,所得的整數(shù)結(jié)果表示兩者之間秒的差值。9. 計(jì)算題有兩個(gè)列表temp1,temp2,計(jì)算temp的結(jié)果。temp1:= "A":"B":"C"

22、temp2:= "1":"2":"3":”4”:”5”;temp:=temp1+temp2.答:"A1":"B2":"C3":”C4”:”C5”。兩個(gè)列表執(zhí)行運(yùn)算,如果長度不同,用最后一個(gè)元素補(bǔ)充。兩個(gè)列表的對(duì)應(yīng)元素盡心運(yùn)算。10. 公式函數(shù) 寫出middle函數(shù)的值。Middle(“IBM And CQU”; 4; 3)的值?答:“And”。該函數(shù)截取子字符串,從第一個(gè)參數(shù)確定的位置的后面一個(gè)字符開始3個(gè)字符長度。Middle(“IBM And CQU”; “IB”; 3)

23、的值?答:“M A”。從“IB”后面的字符竄開始計(jì)算3個(gè)字符長度。11. 選擇題 有一個(gè)視圖名稱為“_Marketing_Procedures”,在公式中引用視圖的名稱,下面那一個(gè)是正確的?。A) Command(ViewChange; "MarketingProcedures")B) Command(ViewChange; "MarketingProcedures")C) Command(ViewChange; "_MarketingProcedures")D) Command(ViewChange; "_Marketin

24、g_Procedures")答:A是正確的。在公式中指定表單和視圖的名稱時(shí):ü 不要包含名稱中的快速鍵字符,即下劃線(如果有的話)。公式語言把下劃線作為下劃線文字處理。ü 要包括級(jí)聯(lián)字符(即反斜杠),但注意需要轉(zhuǎn)義字符,因此要輸入兩個(gè)反斜杠。12. 問答題 如何調(diào)試公式?答:公式語言不提供正規(guī)的調(diào)試機(jī)制??梢允褂?Prompt 設(shè)置斷點(diǎn)并檢查變量。prompt函數(shù)顯示一個(gè)對(duì)話框,并根據(jù)用戶的操作返回一個(gè)文本值。DominoR6提供了一個(gè)新的函數(shù)StatusBar()。可以把信息打印到狀態(tài)欄上,無需用戶響應(yīng),不會(huì)中斷程序執(zhí)行。13. 問答題 請(qǐng)寫一個(gè)驗(yàn)證郵件地址的公

25、式?答:if(contains(ThisValue;"");success;Failure("請(qǐng)輸入正確的郵件地址!")14. 問答題使用什么函數(shù)可以返回服務(wù)器的名稱?答:ServerName15. 選擇題在“IBMDomino”服務(wù)器上有一個(gè)數(shù)據(jù)庫“discuss.nsf”,下面哪個(gè)是DbName函數(shù)返回的值?A) CN=syzx-server/O=cqu; discuss.nsfB) discuss.nsfC) CN=syzx-server/O=cquD) “CN=syzx-server/O=cqu”:” discuss.nsf”答:D是正確的,db

26、name函數(shù)返回的是一個(gè)文本列表,包含服務(wù)器的名字和數(shù)據(jù)庫的文件名。16. 問答題Domino 前端用戶接口類的作用,有哪些常用的類?答:前端UI(User Interface)對(duì)象操作當(dāng)前用戶界面,通常用于事件編程。主要有下面的一些前端類。前端UI類說明NotesUIWorkSpace表示當(dāng)前Notes的工作臺(tái),是使用前段對(duì)象的入口NotesUIDatabase表示當(dāng)前正在使用的數(shù)據(jù)庫NotesUIView表示當(dāng)前視圖NotesUIDocument表示當(dāng)前打開的文檔NotesUIScheduler表示當(dāng)前文檔中內(nèi)嵌的日程安排Button表示按鈕,只有相關(guān)聯(lián)的事件,沒有方法和屬性Field表示

27、一個(gè)域,只有相關(guān)聯(lián)的事件,沒有方法和屬性Navigator表示一個(gè)導(dǎo)航器,只有相關(guān)聯(lián)的事件,沒有方法和屬性NotesTimer是一個(gè)可編程定時(shí)器,相隔一段的時(shí)間執(zhí)行事件。17. 問答題如何使用Domino后端對(duì)象修改文檔的Subject域的值?答:后端對(duì)象的訪問路徑。NotesSessionNotesDatabaseNotesViewNotesDocument NotesItem以“討論數(shù)據(jù)庫”為例,獲取文檔中“subject”域的值。Dim session As New NotesSessionDim db As NotesDatabaseDim view As NotesViewDim d

28、oc As NotesDocumentDim item As NotesItemSet db = session.CurrentDatabaseSet view = db.GetView( "所有文檔" )Set doc = view.GetFirstDocumentSet item = doc.GetFirstItem( "Subject" )Messagebox "Subject of first document in 所有文檔視圖 is: " + item.Text Messagebox "Subject of fi

29、rst document is: " +item.Values(0)要獲得域的值,還可以用doc.subject(0),或者doc.getItemValue(“Subject”)。18. 選擇題which one of the following formulas dose cheng use to change the value of the releasedate field to today's date?A) releaseDate:=today B) temp releasedate:=today C) FIELD releasedate:=today D) Ch

30、ange field (releasedate today )19. 選擇題kristin wants to build an action which exits the video form .The action will be available only when the user is reading the document ,which one of the following accomplish this ?A) command(back) B) command(fileexit) C) command(gotoview) D) command(fileclosewindo

31、w)20. 選擇題Tony would like to make it easier for users of the video application to enter new doc using the “video form”, hed like users to be able to create new “video” doc from within the view. Which one of the following should Tony so to build this interface?A. create a view action that has the foll

32、owing formula: command(create;”video”)B. create a form action that has the following formula:command(compose;”video”)C. create a view action that has the following formula: command(compose;”video”)D. create a database action that has the following formula: command(compose;”video”)21. 選擇題Tony would l

33、ike to make it easier for users of the video application to enter new doc using the “video form”, hed like users to be able to create new “video” doc from within the view. Which one of the following should Tony so to build this interface?A. create a view action that has the following formula:command

34、(create;”video”)B. create a form action that has the following formula:command(compose;”video”)C. create a view action that has the following formula: command(compose;”video”)D. create a database action that has the following formula:command(compose;”video”)22. 選擇題which one of the following should M

35、aria do to display the release date in a text column?A. used the number and time format optionsB. used the date to text functions to convert time to textC. concatenated the date types using mathematical operatorsD. used the text functions to convert time and number data to text in text columns23. 選擇

36、題Which one of the following Function to all "response" and "response to response" documents of parent documents?A. Responses B. AllChildren C. AllResponsesD. AllDescendants24. 選擇題Yuri created a formula for a button. The code is supposed to set the value of an existing field calle

37、d title. He used the following formula:title:= propercase (title); “”after the formula runs ,the title field is null. Why?A) the value of one field cannot be set from the value in another fieldB) the text string in the formula is set to null. Thus notes cannot validate the formulaC) c when setting t

38、he value of a field , the formula must be in the fields input validation eventD) the formula does not specify that title is an existing field. Thus it is interpreted as a temporary variable25. 選擇題Kristin wants to create an action in the titles view, the code in the action is " FIeld Type:="

39、;action"Field Director :="marjirie kramer"“”when the user clicks the action .what will be affected?A) THE video form B) all selected documents C) ALL documents in the database D) Documents defined by the selection formula in the view 26. 選擇題Ariel is designing an application and would

40、like to create response documents with a copy of the original doc in a collapsible select one of the following command, provided with the correct parameters, will allow her to do this?A. command(composewithcopy)B. command(composewithsection)C. command(composewithreference)D. command(composewithrefer

41、encesection)27. 選擇題Helga is working with a multy-value field that has numeric values in a list. she would like to apply a formula to each item in the list, return the list which one of the following fuctions can she use to accomplish this with one line of code?A. transform (可以把一個(gè)公式應(yīng)用到列表中的每一個(gè)元素)B. Li

42、stprocessC. processlistD. listevaluate28. 選擇題Maria coded "alpha .beta .gamma "as a list in a notes formula .which one of the following indicates the syntax entered A. "Alpha,""beta","gamma" B. "alpha"&"beta"&,"gamma"C. &qu

43、ot;Alpha;""beta""gamma" D. "Alpha":"beta":"gamma"29. 選擇題which one of the following should Cathy use to sort a list?A. sortB. sortlistC. datasortD. listorder30. 選擇題which one of the following formulas would find the first word (all characters befo

44、re the fist space) in a string field called name?A. first (name) B. left(name;1) C. Left (name;" ") D. left(" "name) 31. 選擇題What will the following formula produce, assuming that the Author field contains the following James Adair/Meadowlands/ACMELeft(Name(CN;Author);""

45、)A. Adair B. JamesC. James Adair D. Meadowlands 32. 選擇題which one of the following is an function that Lonnie can use to return the value from a specified field?A. valueB. getfieldC. GetItemValeD. getfieldvalue33. 選擇題Lisa is writing a formula to determine the number of elements in a list . She wants

46、to ensure that a value is returned even if the value her function is evaluating turns out to be a null string. Which one of the following can she use to accomplish this?A. use a defaule formula of 1B. use elements and add 1 to the totalC. use the count function instead of elementsD. use texttotime t

47、o ensure that all strings arte converted to date-time values34. 選擇題which one of the following agents would change the contents of the type field to "sci-fi" in all documents which have "james adair"in the director field?A. if (director ="james adair", type ="sci-fi

48、"B. select director ="james adair", type ="sci-fi"C. select director ="james adair", FIELD type: ="sci-fi"D. if (director ="james adair",new field ( type,"sci-fi")35. 選擇題which one of the following statements would lee include in an age

49、nt to limit the documents processed by the agent to those for which the value of the type field is "action"?A. FIELD Type :="action" B. SELECT Type ="action"C. SELECT Type :="action " D. if (type="action":success:failure)36. 選擇題In the video form, the

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。

評(píng)論

0/150

提交評(píng)論