1. The Text property of a control determines:
(a) the name that you use to refer to the control in your C# code (b) the name of the control and the text that’s displayed in it (c) the text that’s displayed in the form (d) the text that’s displayed in the control
(e) none of the above
2. Which conventions for method names?
of the following names does NOT follow the recommended C# naming
(a) Score4 (b) ScoreFour (c) FourScore (d) fourScore (e) all of the above names follow the naming conventions for methods
3. What statement can be used in C# code to terminate a loop before the loop index reaches its final value?
(a) exit (b) end (c) else (d) break (e) none of the above
4. If orderTotal has a value of 50 and quantity has a value of 10, what is the value of discount after these statements are executed?
if (quantity == 1 || quantity == 2) discount = 0;
else if (quantity >= 3 && quantity < 10) discount = orderTotal * 0.1;
else if (quantity > 10 && quantity <= 25) discount = orderTotal * 0.2;
else
discount = orderTotal * 0.3;
(a) 15 (b) 10 (c) 5 (d) 0 (e) none of the above
5. A new object that is created based on a class is referred to as a(n) _______________ of the class.
(a) instance (b) property (c) method (d) copy
(e) none of the above6. The hexadecimal number 3C converts to which binary number:
(a) 1100 0011 (b) 0011 0110 (c) 0011 1010 (d) 0011 1100 (e) 0101 01017. If the class of an object is System.Windows.Forms.TextBox, the actual class is TextBox and System.Windows.Forms is the _______________.
(a) name (b) namespace (c) pseudoclass (d) folder (e) none of the above
8. Which of the following is NOT a method used for data security:
(a) asymmetric- key cryptology (b) biometric check sums (c) cryptographic check sums (d) digital signatures
(e) symmetric- key cryptology
9. The decimal number 45 can be represented as which binary number:
(a) 0010 1100 (b) 0010 1101 (c) 0011 0101 (d) 0011 1100 (e) 0101 0101
10. The decimal number 45 can be represented as which hexadecimal number:
(a) 2C (b) 2D (c) 35 (d) 3C (e) 55

解决方案 »

  1.   

    1、d  (控件的Text属性就是控件呈现的文本信息)2、d  (C#建议的方法名称是首字母大写)3、d(break可以提前跳出循环)4、a  (50*0.3=15)5、e (在一个类的基础上创建的类,成为该类的子类SubClass)6、d (十六进制3C转换成二进制为0011 1100)7、b (命名空间)8、b,c(不是很确定,check sum是校验和,跟数据安全没有关系)9、b (十进制45转换成二进制为0010 1101)10、b (十进制45转换成十六进制为2D)
      

  2.   

    更正一下第五题,看错了选A  (在一个类的基础上创建的对象称为该类的一个实例) instance
      

  3.   

    1.d 2不确定 3.d 4.a 5.a 6.b 7.b 8.b 9.b 10.b
      

  4.   

    1、d
    2、d
    3、d
    4、a
    5、a
    6、d
    7、c
    8、e
    9、b
    10、b