1.单选题(1分)
If p and q are pointers that point to a same array, which is nonsense operation with them?
Aif(p>=q);
Bp=null;
Cp=q+1;
Dp=p+q;
正确答案:D
2.单选题(1分)
If there is a statement: int m=10; ,which of the following statement is correct?
Aint &x = m;
Bint &y = 10;
Cint &z;
Dfloat &t = &m;
正确答案:A
3.单选题(1分)
Which of the following string content is incorrect?
A'abc'
B"12’12"
C"0"
D" "
正确答案:A
4.单选题(1分)
Suppose there are two statements: string s1;char s2[20];, which of the following statement is incorrect?< ……此处隐藏10010个字…… ion of the program.
正确答案:正确
46.判断题(1分)
The functions with the same signatures but different return types can be overloaded.
正确答案:错误
47.判断题(1分)
The parameter of a copy constructor is usually an object or a reference of an object.
正确答案:正确
48.判断题(1分)
In public inheritance, both the public and private members of the base class are visible in the derived class.
正确答案:错误
49.判断题(1分)
When an operator is overloaded, the precedence and associative properties of the original operator do not change.
正确答案:正确
50.判断题(1分)
Suppose an array arr is defined, then using sizeof(arr) can get the numbers of the elements in arr.
正确答案:错误