2020年7月软件设计模式 A卷.doc2020年7月软件设计模式+A卷
2020年7月软件设计模式+A卷
1 / 7
2020年7月软件设计模式+A卷
东北大学继续教育学院
软件设计模式 试 卷(作业考核 线上 1) A 卷
学****中心: 计算机科学与技术 院校学号: C900249姓名 张志君
(共 5 页)
总分 题号 一 二 三 四 五 六 七 八 九 十
得分
一、单选题(共 40 分, 20 小题,每小题 2 分。)
1. 以下标识符中,正确的是: A
#
在 c#程序中,入口函数的正确声明为: B
A. static int main(){ ..}
B. static void Main(){ }
2020年7月软件设计模式+A卷
2020年7月软件设计模式+A卷
7 / 7
2020年7月软件设计模式+A卷
void main(){
}
2020年7月软件设计模式+A卷
2020年7月软件设计模式+A卷
7 / 7
2020年7月软件设计模式+A卷
Main(){
}
2020年7月软件设计模式+A卷
2020年7月软件设计模式+A卷
7 / 7
2020年7月软件设计模式+A卷
在 C#中,引用命名空间 system 的正确语句是: A
using System;
#import<System>;
uses System;
#include<System>;
4. 在 C#中,表示一个字符串的变量应使用以下哪条语句定义 B
A. CString str;
B. string str;
C. Dim str as string
D. char * str;
2020年7月软件设计模式+A卷
2020年7月软件设计模式+A卷
7 / 7
2020年7月软件设计模式+A卷
5.
结构化程序设计的 3 种结构是: D
A. 顺序结构、 if 结构、 for 结构
B. if 结构、 if else 结构、 else if 结构
C. while 结构、 do while 结构、 foreach
结构
2020年7月软件设计模式+A卷
2020年7月软件设计模式+A卷
7 / 7
2020年7月软件设计模式+A卷
顺序结构、分支结构、循环结构
能正确表示逻辑关系“ a>=10 或 a<=0”的 C#语言表达式是 D
a>=10 or a<=0
a>=10|a<=0
a>=10&&a<=0
2020年7月软件设计模式+A卷
2020年7月软件设计模式+A卷
7 / 7
2020年7月软件设计模式+A卷
D. a>=10||a<=0
分析下列程序: A public class class4
{
private string _sData = "";
public string sData{set{_sData = value;}}
2020年7月软件设计模式 A卷 来自淘豆网www.taodocs.com转载请标明出处.