西交《编译原理》在线作业(West to compile principles online homework).doc

西交《编译原理》在线作业(West to compile principles online homework).doc

  1. 1、本文档共23页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
西交《编译原理》在线作业(West to compile principles online homework)

西交《编译原理》在线作业(West to compile principles online homework) West to compile principles online homework Total score: 100 test time: - Radio examination A multiple-choice question Radio examination questions (40 questions, 80 points) 1. in the following description of the syntax tree, the error is (). The root knot of the A. syntax tree is marked by the start symbol B. a syntax tree represents all the different derivations of a sentence pattern C. a syntax tree is a common abstraction of different derivations, and represents them D. a sentence pattern is not the only grammar tree Full marks: 2 2. assignment statements: X: = (a+b) / (C-D) - (a+b*c) r (Poland) said is inverse. A. Xab+cd-/-bc*a+-: = B. Xab+/cd--bc*a+--: = C. Xab+-cd-/abc*+-: = D. Xab+cd-/abc*+--: = Full marks: 2 3. regular grammar () two semantic. A. yes B. certainly not C. must be D. yes, it isnt Full marks: 2 4. the principle of optimization is (). A. normal form B. context free grammar Semantic rules of C. language The equivalent transformation rule of D. program Full marks: 2 5. in the following compilation methods, the top-down analysis method has. The simple analysis of the priority operator priority analysis of the recursive descent analysis prediction technology. LR (K) of the SLR (K) analysis and LL (K) analysis and LALR (K) analysis A. 3 4 7 B. 3 4 8 The C. II. D. 3 4 5 6 7 Full marks: 2 6., at all stages of compilation, the most closely related to the target machine is (). A. lexical analysis B. syntax analysis C. semantic analysis D. object code generation Full marks: 2 7. because of the limitations of specific machine memory capacity, compilers are often grouped together in several different stages. A. process B. program C. batch D. times Full marks: 2 8. syntax of the grammar G. The left and right arrangement of leaf nodes is one of G. A. sentences B. sentence patterns C. handle D. prime phrase Full marks: 2 9. in LR analysis, the state in the stack is the DFA state that identifies the canonic

您可能关注的文档

文档评论(0)

jgx3536 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

版权声明书
用户编号:6111134150000003

1亿VIP精品文档

相关文档