能正确表示“当x的取值在[-58,-40]和[40,58]范围内为真,否则为假”的表达式是()。
A: (x>=-58)&&(x<=-40)&&(x>=40)&&(x<=58)
B: (x>=-58)∥(x<=-40)∥(x>=40)∥(x<=58)
C: (x>=-58)&&(x<=-40)∥(x>=40)&&(x<=58)
A: (x>=-58)&&(x<=-40)&&(x>=40)&&(x<=58)
B: (x>=-58)∥(x<=-40)∥(x>=40)∥(x<=58)
C: (x>=-58)&&(x<=-40)∥(x>=40)&&(x<=58)
举一反三
- 能正确表示“当x的取值在[-58,-40]和[40,58]范围内为真,否则为假”的表达式是: (x>= -58) && (x<= -40) && (x>=40) && (x<=58)|(x>= -58) && (x<= -40) || (x>=40) && (x<=58)|(x>= -58) | |(x<= -40) && (x>=40) || (x<=58)|(x>= -58) || (x<= -40) || (x>=40) || (x<=58)
- 假定16<X≤40,那么用边界值分析法,X在测试中应该取的边界值是: A: X=16,X=17,X=40,X=41 B: X=15,X=16,X=40,X=41 C: X=16,X=17,X=39,X=40 D: X=15,X=16,X=39,X=40
- 设有变量定义:x=(10,20,30)和y=[10,20,30],以下正确的赋值语句是_______。 A: x(2)=40 B: x[2]=40 C: y(2)=40 D: y[2]=40
- 已知x=[10,20,30],执行x.append(40)后,x[len(x)-1]的值为__________.
- 以4,9,1为为插值节点,求\(\sqrt x \)的lagrange的插值多项式 A: \( {2 \over {15}}(x - 9)(x - 1) + {3 \over {40}}(x - 4)(x - 1) + {1 \over {24}}(x - 4)(x - 9)\) B: \( - {2 \over {15}}(x - 9)(x - 1) + {3 \over {40}}(x - 4)(x - 1) + {1 \over {24}}(x - 4)(x - 9)\) C: \( - {2 \over {15}}(x - 9)(x - 1) + {3 \over {40}}(x - 4)(x +1) + {1 \over {24}}(x - 4)(x - 9)\) D: \( - {2 \over {15}}(x - 9)(x - 1) + {3 \over {40}}(x - 4)(x - 1) - {1 \over {24}}(x - 4)(x - 9)\)