首页 > 英语四级
题目内容 (请给出正确答案)
[单选题]

下列程序的输出结果为()。voidmain(){inta=14,b=1;printf("%d/n",(a&b)&&b);}

A.0

B.1

C.true

D.false

查看答案
答案
收藏
如果结果不匹配,请 联系老师 获取答案
您可能会需要:
您的账号:,可能还需要:
您的账号:
发送账号密码至手机
发送
安装优题宝APP,拍照搜题省时又省心!
更多“下列程序的输出结果为()。voidmain(){inta=1…”相关的问题
第1题
写出下列程序段的输出结果(栈的元素类型S Elem Type为char)。

写出下列程序段的输出结果(栈的元素类型S Elem Type为char)。

点击查看答案
第2题
下列程序的输出结果为()。#includevoid main(){int a[] = {1, 2, 3, 4, 5}, i;for(i=1; i<5; i++){printf("%d", a[i]-a[i-1]);}}

A.1234

B.2345

C.11111

D.1111

点击查看答案
第3题
下列程序的输出结果为()。#includevoid main(){int a[5] = {1,2,3,4,5};int i,j,temp;for (i = 0, j = 4; i < j; i++, j--){temp = a[i]; a[i] = a[j]; a[j] = temp;}for (i = 0; i < 5; i++)printf ("%d", a[i]);}

A.13542

B.54321

C.12345

D.123

点击查看答案
第4题
已知下列的程序,请写出运行该程序后屏幕上输出的结果∶

点击查看答案
第5题
执行下列程序段输出的结果()。a=3IF a>0 ThenPrint("###")ElsePrint("$$$")End If
执行下列程序段输出的结果()。a=3IF a>0 ThenPrint("###")ElsePrint("$$$")End If

点击查看答案
第6题
阅读下列的程序classPerson{undefinedstatic{undefinedSystem.out.println(name);}privatestaticStringname=“hello”;}classDemo{undefinedpublicstaticvoidmain(String[]args){undefinedPersonp=null;}}下列关于程序运行结果的描述中,正确的是()。

A.无结果输出

B.输出null

C.输出hello

D.编译失败

点击查看答案
第7题
写出以下程序段的输出结果(队列中的元素类型Q Elem Type为char)。

写出以下程序段的输出结果(队列中的元素类型Q Elem Type为char)。

点击查看答案
第8题
请写出下列程序的输出结果。()#includeint main() /{char str[ ]="1A2B3C4D"; int i;

请写出下列程序的输出结果。()

#include

int main() /{

char str[ ]="1A2B3C4D"; int i;

for(i=0;str[i]!='/0';i++)

if ((str[i]<'0') || (str[i]>'9'))

printf("%c",str[i]);

return 0;

/}

}

点击查看答案
第9题
执行下面PL/SQL,emp表中存在编号为1234的雇员,说法正确的是:()。declarev_nameVARCHAR2(10);beginSELECTenameINTOv_nameFROMempWHEREempno='1234';dbms_output.put_line('found');EXCEPTIONWHENno_data_foundTHENdbms_output.put_line('notfound!');dbms_output.put_line('others');end;

A.程序编译错误

B.输出结果为:found

C.输出结果为:notfoundothers

D.输出结果为:foundothers

点击查看答案
第10题
阅读下列的程序classPerson{undefinedstatic{undefinedSystem.out.println(“static”);}Person(){undefinedSystem.out.println(“构造”);}}classDemo{undefinedpublicstaticvoidmain(String[]args){undefinedPersonp=newPerson();}}下列选项中,程序的运行结果是()

A.构造

B.static构造

C.static

D.没有输出结果

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