题目详情

需编译运行的程序,其()错误在编译时不能发现。

  • A.逻辑
  • B.语法
  • C.括号不匹配
  • D.关键字拼写

正确答案及解析

正确答案
A
解析

本题考查程序代码错误的基本知识。

程序中的错误分为语法错误和语义错误两种。一般情况下,语法是关于程序的样子或结构的规则。语法错误是形式上的错误,这类错误编译器可以检查出来。括号不匹配和关键字拼写错误是关于语言结构的错误,是两种常见的语法错误。语义错误是程序含义〔功能)上的错误,可分为静态语义错误和动态语义错误。静态语义错误编译器可以检查出来。动态语义反映程序的逻辑,这种错误发生在程序运行期间,常见的逻辑错误有0作为除数、死循环和无穷递归等,编译时检查不出这类错误。

包含此试题的试卷

你可能感兴趣的试题

单选题

(  )is the process of transforming information so it is unintelligible to anyone but the intended recipient.

  • A.Encryption
  • B.Decryption
  • C.Security
  • D.Protection
查看答案
单选题

As each application module is completed,it undergoes(  )to ensure that it operates correctly and reliably.

  • A.unit testing
  • B.integration testing
  • C.system testing
  • D.acceptance testing
查看答案
单选题

(  )algorithm specifies the way to arrange data in a particular order.

  • A.Search
  • B.Random
  • C.Sorting
  • D.Merge
查看答案
单选题

After analyzing the source code,(  )generates machine instructions that will carry out the meaning of the program at a later time.

  • A.an interpreter
  • B.a linker
  • C.a compiler
  • D.a converter
查看答案
单选题

(  )can help organizations to better understand the information contained within the data and will also help identify the data that is most important to the business and future business decisions.

  • A.Data processing system
  • B.Big Data analytics
  • C.Cloud computing
  • D.Database management
查看答案

相关题库更多 +