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

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

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

1.单选题 (1分)
Which of the following string content is incorrect?
A'abc'
B"12’12"
C"0"
D" "

正确答案: A
 
2.单选题 (1分)
Suppose there are two statements: string s1;char s2[20];, which of the following statement is incorrect?
As1=s1+s2;
Bs1.append(s2);
Cs1=s2;
Ds2=s1;

正确答案: D
 
3.单选题 (1分)
Which of the following statement is correct about delete operation? int* arr = new int[10]; delete arr;
Adelete will fail.
BAn exception may be thrown at time.
Cdelte[] arr; must be used to properly deallocate arr.
DThe compiler will emit a diagnostic error.

正确答案: ……此处隐藏8457个字…… flag
B
&ver  fall_5   5bit  less
C_val  callme  file4name   _sch_code  type_id
D
c_plus_plus  typename   input  pass

正确答案: C
39.单选题 (1分)
The compiler automatically converts operands in the following circumstances except
A
In initializations, the initializer is converted to the type of the variable.
B
In assignments, the right-hand operand is converted to the type of the left-hand.
C
In arithmetic operations, "smaller" type converts to the "larger" one.
DIn relational expressions with operands of mixed types, the automatic conversion stops.

正确答案: D

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