首页
题库
网课
在线模考
搜标题
搜题干
搜选项
填空题
以下程序运行后的输出结果是______。
#include<stdio.h>
main()
int f, f1, f2, i; f1=0; f2=1;
printf("%d %d", f1, f2);
for(i=3; i<=5; i++)
f=f1+f2; printf("%d", f);
f1=f2; f2=f;
printf("\n");
答案:
0 1 1 2 3
点击查看答案解析
在线练习
你可能感兴趣的试题
填空题
在数据库技术中,实体集之间的联系可以是一对一或一对多或多对多的,那么“学生”和“可选课程”的联系为______。
答案:
多对多
点击查看答案解析
填空题
某二叉树有5个度为2的结点及3个度为1的结点,则该二叉树中共有______个点。
答案:
N
点击查看答案解析
填空题
程序流程图中的菱形框表示的是______。
答案:
逻辑判断
点击查看答案解析
填空题
若有定义语句:int a=5;,则表达式a++的值是______。
答案:
E
点击查看答案解析
填空题
人员基本信息一般包括:身份证号、姓名、性别、年龄等。其中可以作为主关键字的是______。
答案:
身份证号
点击查看答案解析
填空题
软件开发过程主要分为需求分析、设计、编码和测试4个阶段,其中______阶段产生“软件需求规格说明书”。
答案:
需求分析
点击查看答案解析
填空题
若有语句double x=17; int y;,当执行y=(int)(x/5)%2;之后y的值为______。
答案:
A
点击查看答案解析
填空题
以下程序运行后的输出结果是______。
#include<stdio.h>
main()
int a=1, b=7;
do
b=b/2; a+=b;
while(b>1);
printf("%d\n", a);
答案:
E
点击查看答案解析
填空题
以下程序运行时从键盘输入:How are you <回车>,则输出结果为______。
#include<stdio.h>
main()
char a[20]="How are you",b[20];
scanf("%s", b); printf("%s %s\n", a, b);
答案:
How are youHow
点击查看答案解析
填空题
以下程序运行后的输出结果是______。
#include<stdio.h>
main()
int x=20;
printf("%d", 0<x<20);
printf("%d\n", 0<x && x<20);
答案:
J
点击查看答案解析
填空题
设有定义:
struct person
int ID; char name[12]; P;
请将scanf("%d", ______);语句补充完整,使其能够为结构体变量P的成员ID正确读入数据。
答案:
&p.ID
点击查看答案解析
填空题
以下程序运行后的输出结果是______。
#include<stdio.h>
main()
int f, f1, f2, i; f1=0; f2=1;
printf("%d %d", f1, f2);
for(i=3; i<=5; i++)
f=f1+f2; printf("%d", f);
f1=f2; f2=f;
printf("\n");
答案:
0 1 1 2 3
点击查看答案解析
填空题
以下程序运行后的输出结果是______。
#include<stdio.h>
int a=5;
void fun(int b)
int a=10; a+=b; printf("%d", a);
main()
int c=20;
fun(c); a+=c; printf("%d\n", a);
答案:
3025
点击查看答案解析
填空题
以下程序运行后的输出结果是______。
#include<stdio.h>
typedef struct
int num; double s; REC;
void fun1(REC x)x.num=23; x.s=88.5;
main()
REC a=16, 90.0;
fun1(a);
printf("%d\n", a.num);
答案:
P
点击查看答案解析
填空题
以下程序运行后的输出结果是______。
#include<stdio.h>
fun(int x)
if(x/2>0) fun(x/2);
printf("%d", x);
main()
fun(6); printf("\n");
答案:
1 3 6
点击查看答案解析