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

[单项选择]以下程序运行后,输出结果是( )。
#define PT 5.5
#define S(x)PT*x*x
#include<stdio.h>
main( )
int a=1,b=2;
prinf("%4.1f/n",S(a+b));
A. 49.5
B. 9.5
C. 22
D. 45.0

更多"以下程序运行后,输出结果是( )。 #define PT 5.5 "的相关试题:

[单项选择]以下程序输出的结果是_______。
main( )

int a=65535;
printf("%d%u",a,
A. ;
B. 65535 65535
C. -1 65535
D. 65535-1
[单项选择]以下程序的输出结果是( )。
#include<iostream>
using namespace std;
int main( )

cout.fill('*');
cout.width(5);
cout<<hex<<100<<endl;
return ( );

A. **100
B. ***64
C. 100**
D. 64***
[单项选择]以下程序的输出结果是( )。
#include <iostream>
using namespace std;
int main( )
int a=1,b;
switch(
[单项选择]以下程序的输出结果是
#include<iostream.h>
long fun(int n)
long s;
if(n=1||n=2) s=2:
else s=n-fun(n-1);
return s;

void main( )
cout<<fun(3);=
A. 1
B. 2
C. 3
D. 4
[单项选择]以下程序的输出结果是
#include<iostream.h>
voidmain( )
intx=1,y=3;
cout<<X++<<",";
intx=0;X+=y*2;
cout<<x<<","<<y<<",";

cout<<x<<","<<y;

A. 1,6,3,1,3
B. 1,6,3,6,3
C. 1,6,3,2,3
D. 1,7,3,2,3
[单项选择]以下程序的输出结果是( )。
union myun
struct
int x, y, z; )u;
int k;
a;
main( )
a. u. x=4; a.u.y=5; a.u.z=6;
a.k=0:
printf(%d/n", a.u.x);

A. 4
B. 5
C. 6
D. 0
[单项选择]以下程序的输出结果是( )。
#include <stdio.h>
main( )
int a=21,b=11;
printf("%d/n",--a+b,--b+
A. ;
[单项选择]以下程序的输出结果是( )。
#include<iostream.h>
int fun (char*s)

char *p=s;
while (*p!='/0,) p++:
return (p-s):

void main( )

cout<<fun (" ABCDEF ")<<endl:

A. 3
B. 6
C. 8
D. 0
[单项选择]以下程序的输出结果是( )。   char str[15]=”hello!”;   printf(“%d/n”,strlen(str));
A. 15
B. 14
C. 7
D. 6
[单项选择]以下程序运行后的输出结果是
#include<stdio.h>
struct st
int x,y; data[2]=1,10,2,20;
main( )
struet st *p=data;
printf("%d,",p->y);printf("%d/n",(++p)->x);

A. 10,1
B. 20,1
C. 10,2
D. 20,2
[单项选择]以下程序的输出结果是______。
main( )
int a=3;
printf("%d/n",(a+=a-+a*
A. )
[单项选择]以下程序的输出结果是( )。
int f( )
static int i=0;
int s=1;
S+=i;i++:
return s;
main( )
int i,a=0;
for(i=0;1<5;i++)a+=f( );
printf("%d/n",
A. ;A) 20B) 24C) 25D)
[单项选择]以下程序的输出结果是( )。
main( )
int a=666,b=888;
prinf(%d/n",(a,b));

A. 错误信息
B. 666
C. 888
D. 666, 888
[单项选择]以下程序的输出结果是 ______。
x=2^-2
Print x
End
A. 4
B. 0.25
C. 4
D. 程序错误
[单项选择]以下程序运行后的输出结果是
#include <stdio.h>
main( )
char a=4:
printf("%d/n",a=a<<1);

A. 40
B. 16
C. 8
D. 4
[单项选择]以下程序运行后输出的结果是 ______。
Option Base 1
Private Sub Form_Click( )
Dim A(20)
For K=1 To 20
A(K)=K^2
Next K
Print A(K)
End Sub
A. 20
B. 441
C. 400
D. 出错信息
[单项选择]以下程序的输出结果是______。
#include<stdio.h>
main( )
int a=200;
#define a 100
printf("%d",
A. ;
[单项选择]以下程序的输出结果是( )。
main( )
int num=0;
while(num<=2)
num++;
printf("%d/n", num);


A. 1
B. 1
C. 1
D. 1
[单项选择]以下程序运行后的输出结果是
#include<stdio.h>
main( )
int x=1,y=2,z=3;
it(x>y)
if(y<z) printf("%d",++z);
else printf("%d",++y);
printf("%d/n",x++);

A. 331
B. 41
C. 2
D. 1

我来回答:

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

订单号:

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