首页 > 大学本科
题目内容 (请给出正确答案)
[单选题]

下面代码的输出结果是()。 for a in ["torch","soap","bath"]: print(a)

A.torch,soap,bath

B.torch soap bath,

C.torch,soap,bath,

D.torch soap bath

查看答案
答案
收藏
如果结果不匹配,请 联系老师 获取答案
您可能会需要:
您的账号:,可能还需要:
您的账号:
发送账号密码至手机
发送
安装优题宝APP,拍照搜题省时又省心!
更多“下面代码的输出结果是()。 for a in ["torch…”相关的问题
第1题
已知在ASCⅡ代码中,字母A的序号为65,以下程序输出的结果是______。#include<stdio.h>main(){char c

已知在ASCⅡ代码中,字母A的序号为65,以下程序输出的结果是______。

#include<stdio.h>

main()

{char c1='A',c2='Y';

printf("%d,%d\n",c1,c2);

}

点击查看答案
第2题
下面程序段的输出结果是______。#include<stdio.h>int b=1:int func(int *a){*a+=b;return(*a);)m

下面程序段的输出结果是______。

#include<stdio.h>

int b=1:

int func(int *a)

{*a+=b;return(*a);)

main()

{int a=2,res=1;

res+=func(&a);

prf("%d%d\n",a,res);}

点击查看答案
第3题
下面程序的输出结果是______。#include<stdio. h>main(){static char b[]="Hello! world! ";char

下面程序的输出结果是______。

#include<stdio. h>

main()

{static char b[]="Hello! world! ";

char *chp=&b[6];

while(--chp>=&b[0])putchar (*chp);

putchar('\n');

}

点击查看答案
第4题
若下面程序的输出结果是4,请填空。 main() { int i,j,k; k = 0 ; i = j =【 】;

若下面程序的输出结果是4,请填空。 main() { int i,j,k; k = 0 ; i = j =【 】; k+=-(i+j);printf("%d\n",k); }

点击查看答案
第5题
若有宏定义:#define MOD(x,y)x%y则执行下面语句后的输出结果是int a=13,b=96;printf("%d\n",MOD(

若有宏定义:#define MOD(x,y)x%y

则执行下面语句后的输出结果是

int a=13,b=96;

printf("%d\n",MOD(b,a));()

A.1

B.2

C.5

D.6

点击查看答案
第6题
下面程序段执行后输出的结果是()#include<stdio.h>main(){int i;for(i=1;i<8;i++){{if(i%3){printf("*");continue;}}printf("#");}printf("\n");}

A.*#**#**#

B.**#**#*

C.*#**#**

D.**#**

点击查看答案
第7题
若输入3个整数3,2,1<回车>则下面程序的输出结果是#include<stdio.h>main(){int i,n,aa[10]={0,0,

若输入3个整数3,2,1<回车>则下面程序的输出结果是

#include<stdio.h>

main()

{int i,n,aa[10]={0,0,0,0,0,0};

scanf("%d%d%d",&n,&aa[0],&aa[1]);

for(i=0;i<=n;i++)

printf("%d",aa[i]);

}

点击查看答案
第8题
给出下面代码的输出()public class Test {public static void main(String[ ] args) {int[][]

A.0

B.1

C.2

D.4

点击查看答案
第9题
下面程序段执行后输出的结果是()#include<stdio.h>main(){int a[2][2]={{1,2),{5,7)),*P,i;p=&a[0][0];for(i=0;i<2;i++)"P++=i+1:printf("%d",*(p-2));}

A.1

B.2

C.5

D.7

点击查看答案
第10题
阅读下面SQL代码片段: DECLARE val; IF val IS NULL THEN SELECT 'val is NULL'; ELSE

A.输出val is NULL

B.输出val is not NULL

C.语法错误

D.运行时出现异常

点击查看答案
第11题
给出以下代码,该程序的运行结果是()class Example {public static void main (String args[])

A.-1

B.Exception

C.1

D.0

点击查看答案
退出 登录/注册
发送账号至手机
密码将被重置
获取验证码
发送
温馨提示
该问题答案仅针对搜题卡用户开放,请点击购买搜题卡。
马上购买搜题卡
我已购买搜题卡, 登录账号 继续查看答案
重置密码
确认修改