题目详情

在高级程序设计语言中,以下关于编译和解释叙述正确的是(  )。

  • A.在解释方式下,一次翻译可以多次执行
  • B.在编译方式下,一次编译可以多次执行
  • C.在解释方式下,需要生成目标代码
  • D.在编译方式下,无需进行语法分析

正确答案及解析

正确答案
B
解析

本题考查编译和解释的区别。

编译:1、利用编译程序从源语言编写的源程序产生目标程序的过程。2、用编译程序产生目标程序的动作。编译就是把高级语言变成计算机可以识别的2进制语言,计算机只认识1和0,编译程序把人们熟悉的语言换成2进制的。编译程序把一个源程序翻译成目标程序的工作过程分为五个阶段:词法分析;语法分析;语义检查和中间代码生成;代码优化;目标代码生成。主要是进行词法分析和语法分析,又称为源程序分析,分析过程中发现有语法错误,给出提示信息。

解释:指程序不要做任何变动,以源代码的形式提供目标在计算机上执行,但是计算机不能识别源代码,需要边解释边执行,解释一条执行一条。

解释方式不产生与源程序等价的独立目标程序,而编译方式则需要将源程序翻译成独立的目标程序。

综合分析,本题选B,A解释方式下一次解释对应一次执行,C解释方式下不需要生成目标代码,D编译方式下需要进行语法分析。

包含此试题的试卷

你可能感兴趣的试题

单选题

Advancements in ( )have contributed to the growth of the automotive industry through the creation and evolution of self-driving vehicles.

  • A.Artificial Intelligence
  • B.Cloud Computing
  • C.Internet of Things
  • D.Big Data
查看答案
单选题

In project human resource management , ( )is not a source of power for the project manager.

  • A.referent power
  • B.expert power
  • C.reward power
  • D.audit power
查看答案
单选题

At the project establishment stage , the feasibility study mainly includes techinical feasibility analysis , ( ), operation environment feasibility analysis and other aspects of feasibility analysis.

  • A.detail feasibility analysis
  • B.opportunity analysis
  • C.economic feasibility analysis
  • D.risk analysis
查看答案
单选题

( )is a grid that shows the project resources assigned to each work package.

  • A.Stakeholder engagement assessment matrix
  • B.Requirements traceability matrix
  • C.Probability and impact matrix
  • D.Responsibility assignment matrix
查看答案
单选题

Xinhua News Agency reported in January 2022,Chian will further promote the developmet of a digital economy during the 14th Five-Year Plan eriod(2021-2025). The plan also emphasized industrial ( )transformation.

  • A.digital
  • B.networking
  • C.intelligentize
  • D.informatization
查看答案

相关题库更多 +