题目内容 (请给出正确答案)
[单选题]

以下是while语句的基本形式: while(表达式){语句:} 其中“表达式”()。

A.必须是逻辑表达式

B.必须是关系表达式

C.必须是逻辑表达式或关系表达式

D.可以是任意合法的表达式

提问人:网友zhang26262 发布时间:2022-01-06
参考答案
查看官方参考答案
如搜索结果不匹配,请 联系老师 获取答案
网友答案
查看全部
  • · 有5位网友选择 D,占比55.56%
  • · 有3位网友选择 B,占比33.33%
  • · 有1位网友选择 A,占比11.11%
匿名网友 选择了D
[223.***.***.107] 1天前
匿名网友 选择了D
[223.***.***.107] 1天前
匿名网友 选择了B
[152.***.***.51] 1天前
匿名网友 选择了D
[93.***.***.137] 1天前
匿名网友 选择了B
[223.***.***.106] 1天前
匿名网友 选择了D
[150.***.***.133] 1天前
匿名网友 选择了D
[131.***.***.252] 1天前
匿名网友 选择了A
[23.***.***.31] 1天前
匿名网友 选择了D
[34.***.***.121] 1天前
匿名网友 选择了B
[2.***.***.109] 1天前
加载更多
提交我的答案
登录提交答案,可赢取奖励机会。
更多“以下是while语句的基本形式:while(表达式){语句:…”相关的问题
第1题
● 下面的一段C 程序中,循环体语句 (59) 退出循环。 unsigned char size; int aa; size = 100; whi

● 下面的一段C 程序中,循环体语句 (59) 退出循环。

unsigned char size;

int aa;

size = 100;

while (size-- >= 0) {

aa += size;

}

(59)

A. 执行100次后

B. 执行101次后

C. 执行99次后

D. 死循环,不会

点击查看答案
第2题
● 下面的一段C 程序中,循环体语句 (59) 退出循环。 unsigned char size; int aa; size = 100; whi

● 下面的一段C 程序中,循环体语句 (59) 退出循环。

unsigned char size;

int aa;

size = 100;

while (size-- >= 0) {

aa += size;

}

A. 执行100次后

B. 执行101次后

C. 执行99次后

D. 死循环,不会

点击查看答案
第3题
● 程序设计语言中(34) 。 (34)A. while循环语句的执行效率比do-while循环语句的执行效率高 B. whi

● 程序设计语言中(34) 。

(34)

A. while循环语句的执行效率比do-while循环语句的执行效率高

B. while 循环语句的循环体执行次数比循环条件的判断次数多1.而do-while语句的循环体执行次数比循环条件判断次数少1

C. while 语句的循环体执行次数比循环条件的判断次数少1,而 do-while语句的循环体执行次数比循环条件的判断次数多1

D. while 语句的循环体执行次数比循环条件的判断次数少1,而 do-while语句的循环体执行次数等于循环条件的判断次数

点击查看答案
第4题
以下选项中循环结构合法的是()。A.while(inti<7)(i++;system.out.println("iis"+i);}B.intj=3;whi

以下选项中循环结构合法的是()。

A.while(inti<7)(i++;system.out.println("iis"+i);}

B.intj=3;while(j){system.out.println("jis"+j);}

C.intj=0;for(intk=0;j+k!=10;j++,k++){system.out.println("jis"+j+"kis"+k);}

D.intj=0;do{system.out.println("jis"+j++);if(j==3){continueloop;}}while(j<10);

点击查看答案
第5题
有以下程序:#include<stdio.h>main(){int s=0,a=1,n; scanf("%d",&n); do {s+=1;a=a-2;} whi

有以下程序: #include <stdio.h> main() { int s=0,a=1,n; scanf("%d",&n); do {s+=1;a=a-2;} while(a!=n); printf("%d\n",s); } 若要使程序的输出值为2,则应该从键盘给n输入的值是()。

A.-1

B.-3

C.-5

D.0

点击查看答案
第6题
以下能够正确计算n!的程序是A.Private Sub Command1_Click() n=5: x=1 Do x=x*i i=i+1 Loop Whi

以下能够正确计算n!的程序是

A.Private Sub Command1_Click() n=5: x=1 Do x=x*i i=i+1 Loop While i<n Print x End Sub

B.Private Sub Command1_Click() n=5: x=1: i=1 Do x=x*i i=i+1 Loop While i<n Print x End Sub

C.Private Sub Command1_Click() n=5:x=1:i=1 Do x=x*i i=i+1 Loop While i<= n Print x End Sub

D.Private Sub Command1_Click() n=5:x=1:i=1 Do x=x*i i=i+1 Loop While i>n Print x End Sub

点击查看答案
第7题
His supposition is good in theory _____ cannot be put into practice.A、andB、orC、butD、whi

His supposition is good in theory _____ cannot be put into practice.

A、and

B、or

C、but

D、while

点击查看答案
第8题
I go to the movies occasionally at the weekends.A.now and againB.frequentlyC.once in a whi

I go to the movies occasionally at the weekends.

A.now and again

B.frequently

C.once in a while

D.here and there

点击查看答案
第9题
The fact () he succeeded in the experiment pleased everybody.A、blankB、whichC、thatD、whi

The fact () he succeeded in the experiment pleased everybody.

A、blank

B、which

C、that

D、while

点击查看答案
第10题
While dealing with the terrorists, the President actually ______.A.lost control of the Whi

While dealing with the terrorists, the President actually ______.

A.lost control of the White House

B.paid little attention to the safety of his wife and daughter

C.killed almost all the terrorists

D.made the best use of his mobile phone

点击查看答案
账号:
你好,尊敬的用户
复制账号
发送账号至手机
密码将被重置
获取验证码
发送
温馨提示
该问题答案仅针对搜题卡用户开放,请点击购买搜题卡。
马上购买搜题卡
我已购买搜题卡, 登录账号 继续查看答案
重置密码
确认修改
欢迎分享答案

为鼓励登录用户提交答案,简答题每个月将会抽取一批参与作答的用户给予奖励,具体奖励活动请关注官方微信公众号:简答题

简答题官方微信公众号

警告:系统检测到您的账号存在安全风险

为了保护您的账号安全,请在“简答题”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!

微信搜一搜
简答题
点击打开微信
警告:系统检测到您的账号存在安全风险
抱歉,您的账号因涉嫌违反简答题购买须知被冻结。您可在“简答题”微信公众号中的“官网服务”-“账号解封申请”申请解封,或联系客服
微信搜一搜
简答题
点击打开微信