若程序在运行时陷入死循环,则该情况属于______。
2023-09-01
A.语法错误
B.运行时异常
C.动态的语义错误
D.静态的语义错误
参考答案:C
B.运行时异常
C.动态的语义错误
D.静态的语义错误
参考答案:C
本题考查程序运行基础知识。程序错误可分为两类:语法错误和语义错误,语法描述语言的结构(形式或样子),语义表达语言的含义。语法错误会在编译阶段检查出来,程序中有语法错误时不能通过编译。语义错误分为静态的语义错误和动态语义错误,静态的语义错误是指在编译阶段发现的错误,动态的语义错误在程序运行时才出现。
![]( //img1.runjiapp.com/duoteimg/tiku/images/pc/questionBank/main-list-title-icon.png)
![](https://img1.runjiapp.com/duoteimg/tiku/banner/bn_59.jpg)
![](https://img1.runjiapp.com/duoteimg/tiku/banner/bn_82.jpg)
![](https://img1.runjiapp.com/duoteimg/tiku/banner/bn_70.jpg)
![](https://img1.runjiapp.com/duoteimg/tiku/banner/bn_73.jpg)
![](https://img1.runjiapp.com/duoteimg/tiku/banner/bn_98.jpg)
![](https://img1.runjiapp.com/duoteimg/tiku/banner/bn_67.jpg)
![](https://img1.runjiapp.com/duoteimg/tiku/banner/bn_29.jpg)
![](https://img1.runjiapp.com/duoteimg/tiku/banner/bn_3.jpg)
热门标签