题目详情
当前位置:首页 > 职业培训考试
题目详情:
发布时间:2024-06-10 07:03:07

[单项选择]阅读下面的程序:
#include<iostream.h>
void main( )

int x;
cin>>x;
if(x++>5)
cout<<x<<end1;
else
cout<<x--<<end1;

如果两次执行上述程序,且键盘输入分别为4和6,则输出结果分别是( )。
A. 4,6
B. 3,6
C. 4,7
D. 5,7

更多"阅读下面的程序: #include<iostream.h> voi"的相关试题:

[单项选择]下面程序的运行结果为
#include
void main( )

char a=,'3';
switch(
[单项选择]有以下程序:
#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<iostream.h>
void main( )

int x;
cin>>x;
if(x++>5)
cout<<x<<endl;
else
cout<<x——<<endl;

如果两次执行上述程序,且键盘输入分别为4和6,则输出结果分别是( )。
A. 4,6
B. 3,6
C. 4,7
D. 5,7
[单项选择]阅读下面的程序:
#include <iostream.h>
void main( )

int x;
cin>>x;
if(x++>5)
cout<<x<<endl;
else
cout<<x--<<endl;

如果两次执行上述程序,且键盘输入分别为4和6,则输出结果分别是( )。
A. 4,6
B. 3,6
C. 4,7
D. 5,7
[单项选择]阅读下面的程序:
#include<iostream.h>
void main( )

int x;
cin>>x;
if(x++>5)
cout<<x<<end1;
else
cout<<x--<<end1;

如果两次执行上述程序,且键盘输入分别为4和6,则输出结果分别是( )。
A. 4,6
B. 3,6
C. 4,7
D. 5,7
[单项选择]执行下列程序段,结果是
#include
void main( )
int x=40;
char y='C';
int n;
n=(x&0xff)&&c(y> 'B');
cout < < n;
A. 0
B. 1
C. 2
D. 3
[单项选择]以下程序的输出结果是
#include
void main( )
char c='Z';
cout < < c-25;
A. 97
B. Z
C. z-25
D. 2
[单项选择]有如下程序段
#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<iostream.h>
void main( )

charline[10];
in>>line;
cout<<line<<endl;

如运行时输入This is an example.<CR>,则程序的输出结果是( )。
A. This
B. This is
C. This is a
D. This is an example.
[单项选择]下面程序的结果是
   #include" iostream.h"
   void main( )
   
    char * str;
    Str="test!";
    cout < < str[5];

我来回答:

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

订单号:

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