Test06(选择题)

上传人:hs****ma 文档编号:563656435 上传时间:2023-10-28 格式:DOC 页数:4 大小:229.50KB
返回 下载 相关 举报
Test06(选择题)_第1页
第1页 / 共4页
Test06(选择题)_第2页
第2页 / 共4页
Test06(选择题)_第3页
第3页 / 共4页
Test06(选择题)_第4页
第4页 / 共4页
亲,该文档总共4页,全部预览完了,如果喜欢就下载吧!
资源描述

《Test06(选择题)》由会员分享,可在线阅读,更多相关《Test06(选择题)(4页珍藏版)》请在金锄头文库上搜索。

1、Test BankChapter Six (Programming Languages)Multiple Choice Questions1. Which of the following is an example of a language that is based on the functional paradigm?A. LISPB. PROLOGC. CD. C+ANSWER: A2. Which of the following is an example of a language that is based on the object-oriented paradigm?A.

2、 LISPB. PROLOGC. CD. C+ANSWER: D3. Most machine languages are based on the A. Imperative paradigmB. Declarative paradigmC. Functional paradigmD. Object-oriented paradigmANSWER: A4. Which of the following is not a type of statement found in a typical high-level imperative programming language?A. Impe

3、rative statementB. Exclamatory statementC. Declarative statementD. Comment statementANSWER: B5. Which of the following does not require a Boolean structure?A. If-then-else statementB. While loop statementC. Assignment statementD. For loop statementANSWER: C6. Which of the following is not a control

4、statement?A. If-then-else statementB. While loop statementC. Assignment statementD. For loop statementANSWER: C7. Which of the following is not a control statement?A. If-then-else statementB. While loop statementC. Assignment statementD. For loop statementANSWER: C8. Which of the following is not a

5、step in the process of translating a program?A. Executing the programB. Parsing the programC. Lexical analysisD. Code generationANSWER: A9. Which of the following is not associated with object-oriented programming?A. InheritanceB. ResolutionC. EncapsulationD. PolymorphismANSWER: B10. Which of the fo

6、llowing is not associated with the concept of data type?A. CoercionB. BooleanC. Operator precedenceD. Strongly typed languageANSWER: C11. Positions within arrays are identified by means of numbers calledA. IndicesB. ParametersC. Instance variablesD. ConstantsANSWER: A12. Which of the following is ig

7、nored by a compiler?A. Control statementsB. Declarations of constantsC. Procedure headersD. Comment statementsANSWER: D13. Which of the following is not a possible value of the expression 4 + 6 2 - 1A. 4B. 5C. 6D. 10ANSWER: B14. Which of the following is not a way of referring to a value in a progra

8、m?A. VariableB. LiteralC. ConstantD. TypeANSWER: D15. Which of the following is the scope of a variable?A. The number of characters in the variables nameB. The portion of the program in which the variable can be accessedC. The type associated with the variableD. The structure associated with the var

9、iableANSWER: B16. Which of the following is a means of nullifying conflicts among data types?A. InheritanceB. ParsingC. CoercionD. Code optimizationANSWER: C17. Which of the following is not constructed by a typical compiler?A. Source codeB. Symbol tableC. Parse treeD. Object programANSWER: A18. Whi

10、ch of the following is a means of defining similar yet different classes in an object-oriented program?A. InheritanceB. ParsingC. CoercionD. Code optimizationANSWER: A19. Which of the following is not a parse tree of an expression based on the following grammar? A. B. C. ANSWER: C20. Which of the fo

11、llowing statements is not a resolvent of the following clauses?P OR Q OR RP OR TQ OR TR OR TA. Q OR R OR TB. T OR PC. P OR R OR TD. Q OR TANSWER: B21. Which of the following can Prolog conclude from the following program?parent(jill, sue).parent(jill, sally).parent(john, sue).parent(john, sally).sibling(X, Y) :- parent(Z, X), parent(Z, Y).A. parent(jill, john)B. sister(sue, sally)C. sibling(sue, sally)D. sibling(jill, sue)ANSWER: C

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 建筑/环境 > 施工组织

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号