
【名词&注释】
字符串(string)、关键字、线性表(linear list)、实体完整性(entity integrity)、“先进先出”、返回值、必须有(must have)
[单选题]在满足实体完整性约束的条件下
A. 一个关系中应该有一个或多个候选关键字
B. 一个关系中只能有一个候选关键字
C. 一个关系中必须有(must have)多个候选关键字
D. 一个关系中可以没有候选关键字
查看答案&解析
点击获取本科目所有试题
举一反三:
[单选题]如果一个模板声明列出了多个参数,则每个参数之间必须使用逗号隔开,每个参数都必须使用( )关键字来修饰。
A. const
B. static
C. void
D. class
[单选题]下面程序段的输出结果为 public class Test { int a, b; Test() { a=100; b=200; } Test(int x,int y) { a=x; b=y; } public static void main(String args[]) { Test Obj1=new Test(12,45); System.out.println("a=+Obj1.a+" b="+Obj1.B) ; Test Obj2=new Test(); System.out.println("="+Obja+" b="+ObjB) ; } }
A. a=100 b=200 a=12 b=45
B. a=12 b=45 a=100 b=200
C. a=12 b=200 a=100 b=45
D. a=100 b=45 a=12 b=200
[单选题]对下述程序的判断中,正确的是()。includevoid main(){char *P,s[256];p=s;while(strcmp
对下述程序的判断中,正确的是( )。 #includestdio.h> void main() {char *P,s[256]; p=s; while(strcmp(s,"the end")) {printf("Input the string:"); gets(s); while(*P) putchar(*p++);}}
A. 此程序循环接收字符串并输出,直到接收到字符串“the end”为止
B. 此程序循环接收字符串,接收到字符串“the end”则输出,否则程序终止
C. 此程序循环接收字符串并输出,直到接收字符串“the end”为止,但因为代码有错误,程序不能正常工作
D. 此程序循环接收字符串并将其连接在一起,直到接收字符串“the end”为止,输出连接在一起的字符串
[单选题]下面程序的运行结果是______。 main() { char ch[7]={"65ab21"}; int i,s=0; for(i=0;ch[i]>="0'&&ch[i]='9';i+=2) s=10*s+ch[i]-'0'; printf("%d\n”,s); }
A. 12ba56
B. 6521
C. 6
D. 62
[单选题]下列关于队列的叙述中正确的是( )。
A. 在队列中只能插入数据
B. 在队列小只能删除数据
C. 队列是先进先出的线性表
D. 队列是先进后出的线性表
本文链接:https://www.zhukaozhuanjia.com/download/j38dx8.html