题目详情
当前位置:首页 > 职业培训考试
题目详情:
发布时间:2023-12-30 20:29:20

[单项选择]有以下程序    #include<iostream.h>    void main( )    { int a=5,b=0,c=0;      if(a=b+c) cout<<"* * *" <<endl;      else cout<<"$$$"<<endl;}   下列选项叙述正确的是( )。
A. 有语法错不能通过编译
B. 可以通过编译但不能通过连接
C. 输出* * *
D. 输出 $ $ $

更多"有以下程序    #include<iostream.h>    "的相关试题:

[单项选择]有以下程序:#include <iostream.h>#include void main( ){ double d= 123.456789; cout<<setprecision(3)<<d<<","; cout<<setprecision(4)<<d<<","; cout<<setprecision(5 )<<d<<end1;}程序执行后的输出结果是( )。
A. 123,123.4,123.45
B. 123,123.5,123.46
C. 123,123,123.4
D. 123.456789,123.456789,123.456789
[单项选择]以下程序的输出结果是 #include void main( ) { char c='Z'; cout < < c-25;}
A. 97
B. Z
C. z-25
D. 2
[单项选择]下面程序运行后的输出结果是 () 。#include #include void main( ){ char a[7] = "china"; int i, j; i = sizeof(a); j = strlen(a); printf("%d, %d/n", i, j);}
A. 5, 5
B. 6, 6
C. 7, 5
D. 7, 6
[单项选择]有如下程序段 #include void main( ) { int a=14,b=15,x; char c='A'; x=(a&&b) &&(c<'B') ; cout < < x;} 执行该程序段后,x的值为
A. ture
B. false
C. 0
D. 1
[单项选择]下面程序的运行结果为 #include void main( ) { char a=,'3'; switch(a) { case'3':cout < < "3"; case'2':cout < < "2";break; default:cout < < "1"; } }
A. 3
B. 321
C. 31
D. 32
[单项选择]有以下程序    #include<iostream.h>    void main( )    { int a=5,b=0,c=0;      if(a=b+c) cout<<"* * *" <<endl;      else cout<<"$$$"<<endl;}   下列选项叙述正确的是( )。
A. 有语法错不能通过编译
B. 可以通过编译但不能通过连接
C. 输出* * *
D. 输出 $ $ $
[单项选择]阅读以下程序 #include<iostream.h> void main( ) { char line[10]; cin>>line; cout<<line<<endl; } 如运行时输入This is example.<CR>,则程序的输出结果是
A. This
B. This is
C. This is a
D. This is an exampl

我来回答:

购买搜题卡查看答案
[会员特权] 开通VIP, 查看 全部题目答案
[会员特权] 享免全部广告特权
推荐91天
¥36.8
¥80元
31天
¥20.8
¥40元
365天
¥88.8
¥188元
请选择支付方式
  • 微信支付
  • 支付宝支付
点击支付即表示同意并接受了《购买须知》
立即支付 系统将自动为您注册账号
请使用微信扫码支付

订单号:

请不要关闭本页面,支付完成后请点击【支付完成】按钮
恭喜您,购买搜题卡成功
重要提示:请拍照或截图保存账号密码!
我要搜题网官网:https://www.woyaosouti.com
我已记住账号密码