此题为判断题(对,错)。
第1题:
If only we______(have)a phone! I'm tired of waiting outside the public phone box.
第2题:
第3题:
类MyClass的定义如下: class MyClass { public: MyClass(){value=0;} SetVariable(int i){value=i;) private: int value; }; 则对下列语句序列正确的描述是( )。
A.MyClass*p,my;p=&my;
B.语句p=&my;是把对象my赋值给指针变量p
C.语句MyClass*p,my;会调用两次类MyClass的构造函数
D.对语句*p.SetV ariable(5)与语句my.SetVariable(5)等价
第4题:
-Would you like to go to the cinema?
-I'd _____to go to the museum.
A. rather
B. Prefer
C. have
第5题:
下列程序的输出结果是【 】。
include<iostream. h>
class MyClass
{
public:
int number;
void set(int i);
};
int number=3;
void MyClass: :set (int i)
{
number=i;
}
void main( )
{
MyClass my1;
int number=10;
my1.set(5),
cout<<my1, number<<',';
my1.set(number);
cout<<my1.number<<',';
my1.set(: :number);
cout<<my1.number<<'.';
}
第6题:
Given the following DDL for the PARTS table:CREATE TABLE parts (part_no INT(9) NOT NULL, part_name VARCHAR(24), part_remain INT(9));All part numbers entered will be different and all rows should be displayed in order of increasing part numbers whenever the table is queried. Which of the following create index statements will meet this criteria and require the least amount of storage for the index object?()
A.CREATE UNIQUE INDEX idx_partno ON parts(part_no)
B.CREATE UNIQUE INDEX idx_partno ON parts(part_name ASC)
C.CREATE UNIQUE INDEX idx_partno ON parts(part_name, part_no ASC)
D.CREATE UNIQUE INDEX idx_partno ON parts(part_no, part_name ASC)