答案仅供参考,欢迎交流质疑。
一、选择题
2. The smallest unit for deployment in C# is called _______.
A.Assembly B.Namespace C.Package D.Modole
Assembly is the smallest unit for deployment and dynamic loading
the smallest unit for versioning
3. Not a valid indetifier _______.
A.@do B._main_ C.in D.πλα
In是C#关键字;可以以π、字母下划线开头
@+关键字也可以。
4. How to assign a char-type variable c with a single quote character _______.
A.c=”’” B.c=’\”’ C.c=’\’’ D.c=\’
转义符
5. How many bytes will an int type variable usually take on 64-bit machines? _______
A.2 B.4 C.8 D.16
占4字节,32位
8. “enum color:byte{Red,Yellow,Blue,Green,Purple};”, then “(Color.Yellow & Color.Blue” is _______.
A.Color.Red B.Color.Green C.Color.Purple D.null
9. How do you format a float numble x only showing 3 numbles after the dot with an 8 character width?
A.”{1:f3}”,x B.”{1,8:f}” ,x C.”{1,8:f3}”,x D.”{0,8:f3}”,x
索引必须从0开始
二、判断题
1. Multiple catch blocks are allowed after one try block. T
2. String type variables are legal as branch values in switch structure. T
C#中string可以作为分支判断值
sbyte、byte、short