导航
您当前的位置:首页 > 试卷大全 > 高教类 > 工学

学堂在线南方科技大学C/C++:从基础语法到优化策略(2024秋)期末考试题答案

类型:全真试卷  解析:有解析  年份:2024  ★收藏  ✚纠错

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.

正确答案:错误

Tags:学堂在线 南方科技大学 C/C++:从基础语法到优化策略(2024秋) 期末考试题答案
您可能感兴趣的试卷
相关试卷
关于我们 | 用户指南 | 版权声明 | 给我留言 | 联系我们 | 积分商城 | 答案求助 | 网站地图
Copyright © 2024 www.daanwo.com All Rights Reserved