
【名词&注释】
存储单元(memory cell)、内存空间(memory space)、全局变量(global variable)、不符合(inconformity)、局部变量(local variable)、抽象类(abstract class)、顺序排列(seriation)、控制符(control character)、八进制数(octal number)、不允许(not allow)
[单选题]设有以下语句:
A. z=x^y$amp;则z的二进制值是
B. 00010100
C. 00011011
D. 00011100
E. 00011000
查看答案&解析
举一反三:
[单选题]使用SQL语句将学生表S中年龄(AGE)大于30岁的记录删除,正确的命令是______。
A. DELETE FOR AGE>30
B. DELETE FROM S WHERE AGE>30
C. DELETE S FOR AGE>30
D. DELETE S WHERE AGE>30
[单选题]执行下列程序时,会产生( )异常。 public class Test{ public static void main(String args[ ]){ int d=101; int b=220; long a=321; System.out.println((a-b)/(a-b-d)); } }
A. ArraylndexOutOfBoundsException
B. NumberFormatException
C. ArithmeticException
D. EOFExcepfion
[单选题]在C语言中,只有在使用时才占用内存单元的变量,其存储类型是( )。
A. auto和register
B. extern和register
C. auto和static
D. static和register
[单选题]在Java中,表示换行符的转义字符是( )。
A. \n
B. \f
C. 'n'
D. \dd
[单选题]不允许(not allow)作为类及类成员的访问控制符(control character)的是( )。
A. public
B. private
C. static
D. pratected
[单选题]在下面程序中,A、
B、C、D四句编译时不会出错的是()。include using namespace std;class
在下面程序中,A、
B、C、D四句编译时不会出错的是( )。 #include iostream> using namespace std; class Base{ public: Base(); Base(int e):count(C.{} virtual void print() const = 0; private: int count; }; class Derived :public Base{ public: Derived():Base(0) {} Derived(int C.:Base(C.{} void printt() const{cout "Derived"endl:} }; void main( ) { Derived d(10); Base *pb; pb = &d; //A Base &cb= d; Derived dd = *pb; //B Derived &cd = cb; //C Base bb = d; //D
A. C、D四句编译时不会出错的是( )。 include iostream> using namespace std; class Base{ public: Base(); Base(int e):count(C. {} virtual void print() const = 0; private: int count; }; class Derived :public Base{ public: Derived():Base(0) {} Derived(int C. :Base(C. {} void printt() const{cout "Derived"endl:} }; void main( ) { Derived d(10); Base *pb; pb = &d; //A Base &cb= d; Derived dd = *pb; //B Derived &cd = cb; //C Base bb = d; //D
[单选题]有以下程序: struct STU { char name[10]; int num; int score; }; main() { struct STU s[5]={{"YangSan",20041,703},{"LiSiGuo",20042,580}, {"WangYin",20043,680},{"SunDan",20044,550), {'Penghua",20045,537}},*p[5],*t; int i,j; for(i=0;i5;i++) p[i]=&s[i]; for(i=0;i4;i++) for(j=i+1;j5;j++) if(p[i]->Score>p[j]->Score) { t=p[i];p[i]=p[j];p[i]=t; } printf("%d %d\n",s[1].Score,p[1]->Score); } 执行后输出结果是( )。
A. 550 550
B. 680 680
C. 580 550
D. 580 680
[单选题]设已打开5个文件,文件号为1、2、3、4、5。要关闭所有文件,则下列语句中正确的是( )。
A. Close 1,2,3,4,5
B. Close 1,2,3,04,5
C. Close 1-5
D. Close 1,2,3,4,5
本文链接:https://www.zhukaozhuanjia.com/download/wqvjd5.html