PROBLEM SET
题库
按难度与知识点筛选,找到适合的练习题。
题目列表
共 67434 题
A36687
有以下程序#include <stdio.h>struct tt {int x;struct tt *y; *p}; struct tt a[4]={20,a+1,15,a+2,30,a+3,17,a}; main() { int i; p=a; for(i=1;i<=2;i++) { printf("%d,",p->x); p=p->y; } }程序的运行结果是( )
其他-C-L2
困难
--
A36688
某二叉树的前序序列为ABCDEFG,中序序列为DCBAEFG,则该二叉树的深度为( )
其他-C-L2
困难
--
A36689
不属于对象构成成份的是( )
其他-C-L2
困难
--
A36690
以下不能将s所指字符串正确复制到t所指存储空间的是( )
其他-C-L2
困难
--
A36691
有以下程序struct S(int a; int b;}; main(){ struct S a,*p=&a; a.a=99; printf("%d\n",___);}程序要求输出结构体中成员a的数据,以下不能填入横线处的内容是( )
其他-C-L2
困难
--
A36692
有以下程序(strcpy为字符串复制函数,strcat为字符串连接函数)#include <stdio.h>#include <string.h>main(){ char a[10]="abc", b[10]="012", c[10]="xyz"; strcpy (a+1, b+2); puts (strcat (a, c+1); }程序运行后的输出结果是( )
其他-C-L2
困难
--
A36693
有以下程序#include <stdio.h>int b=2; int fun(int *k){ b=*k+b; return(b);}main(){ int a[10]={1, 2, 3, 4, 5, 6, 7, 8}, i ; for (i=2;i<4;i++) { b=fun(&a[i]+b; printf("%d",b); } printf("\n");}程序运行后的输出结果是( )
其他-C-L2
困难
--
A36694
下面描述中正确的是( )
其他-C-L2
困难
--
A36695
设fp为指向某二进制文件的指针,且已读到此文件未尾,则函数feof(fp)的返回值为( )
其他-C-L2
困难
--
A36696
线性表的链式存储结构与顺序存储结构相比,链式存储结构的优点有( )
其他-C-L2
困难
--
A36697
下列叙述中正确的是( )
其他-C-L2
困难
--
A36698
学院的每名教师只能属于一个系,则实体系和实体教师间的联系是( )
其他-C-L2
困难
--
A36699
设某二叉树中共有140个结点,其中有40个度为1的结点。则( )
其他-C-L2
困难
--
A36700
阅读以下程序#include <stdio.h>main(){ int case; float printF; printf("Please enter 2 numbers:"); scanf("%d %f",&case,&printF); printf("%d %f\n",case,printF);}该程序在编译时产生错误,其出错原因是( )
其他-C-L2
困难
--
A36701
有以下程序main(){ int y=10; while(y--); printf("y=%d\n",y);}程序执行后的输出结果是( )
其他-C-L2
困难
--
A36702
有下列程序#include <stdio.h>void fun (int *a, int n)/*fun函数的功能是将a所指数组元素从大到小排序*/{ int t,i,j; for (i=0;i<n-1;j++) for (j=i+1;j<n;j++) if(a[i]<a[j) {t=a[i];a[i]=a[j];a[j]=t;}}main(){ int c[10]={1,2,3,4,5,6,7…
其他-C-L2
困难
--
A36703
在E-R图中,用来表示实体间联系的图形是( )
其他-C-L2
困难
--
A36704
有以下程序#include <stdio.h>main(){ int x=8; for(;x>0;x--) { if(x%3){printf("%d,",x--);continue;} printf("%d,",--x); }}程序的运行结果是( )
其他-C-L2
困难
--
A36705
在数据库系统中,考虑数据库实现的数据模型是( )
其他-C-L2
困难
--
A36706
设二叉树的前序序列与中序序列均为ABCDEFGH,则该二叉树的后序序列为( )
其他-C-L2
困难
--