第三章 选择结构习题解析(国外英文资料).docVIP

  • 9
  • 0
  • 约1.92万字
  • 约 16页
  • 2017-06-05 发布于河南
  • 举报

第三章 选择结构习题解析(国外英文资料).doc

第三章 选择结构习题解析(国外英文资料)

第三章 选择结构习题解析 Chapter 3 choose structure A, multiple choice 1, this is the main feature of the test sentence. A statement contains only one semicolon, and the D term has two semicolons, which should be two statements, so choose D. The semicolon is the sign of the end of the statement. This is the equivalent of the true and false conditions. The E in the question is true for non-zero, and the zero is false. So if you take the non-zero and the zero to the choices, you put the non-zero values in the choices, and you put 1 in, and in the answer, A. So E is 0, 0, 0 is the true value, which is 1; The answer is 1 0 is the true value, which is 1, and 1 = 0 is a false value, which is 0; The answer in 1 D! The value of 0 is the true value, which is 1, and in the four choices, only the value of C is 0, and the rest is 1; Therefore, choose C; Any legitimate expression of D can be used as the operator of a logical operator to make the integer, type, and character. This problem is mainly about the logical operation and the priority of relational operations. For priority number 14, logic and number 5, logic or number 4. The parentheses are priority 15. The arithmetic level is high, and the arithmetic level is low. So the first thing that were going to do is were going to do it in parentheses ! 7 + 5-1 4 + 4/2 is logical and plus or minus multiplication. The result is 0 + 5-1 4 + 2 The calculation is 4 6, and the values of both sides of the logic are greater than 0, so the result is 1. The problem is the logical operator! The priority level between | and |. ! Highest, second, | | is lowest. Get first! A is 0, so dont count it! The value of b, that is! A ! The value of b is 0, and c equals 0. C equals 1, and 0, |, b1, b1, 1 is 1, so thats choice D. It is not difficult to learn the logical, relational and arithmetic operations. A option! A 0, so! A = = 1 is false, so you dont have to compute the expression in the back, because 0 and any number are false; The B term first calculates

文档评论(0)

1亿VIP精品文档

相关文档