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
(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
2、d
3、d
4、a
5、a
6、d
7、c
8、e
9、b
10、b