下列逻辑表达式,值为false的是()。
A: "abc,,,bcd,,def,efg,,".split("[,]+").length == 4;
B: "1st456".matches("\\d[a-z&&[^et]]{2,8}[0-9]+");
C: "abcdefghijklmnopqrstuvwxyz".substring(5,26).length() == 20;
D: "whatisjava".equals(null);
A: "abc,,,bcd,,def,efg,,".split("[,]+").length == 4;
B: "1st456".matches("\\d[a-z&&[^et]]{2,8}[0-9]+");
C: "abcdefghijklmnopqrstuvwxyz".substring(5,26).length() == 20;
D: "whatisjava".equals(null);
举一反三
- 以下表达式中,哪一个选项的运算结果是False?( ) A: 8 > 4 > 2 B: False == 0 C: 9 < 1 and 10 < 9 or 2 > 1 D: "abc"< "ABC"
- 以下表达式中,运算结果是False的选项是( )。 A: 9 <; 1 and 10 <; 9 or 2 >; 1 B: 8 != 2 C: (3 is 4) == 0 D: 'abc' <; 'ABC'
- 以下表达式中,哪一个选项的运算结果是False? A: (3 is 4) == 0 B: 'abc' < 'ABC' C: 9 < 1 and 10 < 9 or 2 > 1 D: 8 != 2
- Which of the following expressions is False? A: (3 is 4) == 0 B: 'abc' <; 'ABC' C: 9 <; 1 and 10 <; 9 or 2 >; 1 D: 8 >; 4 >; 2
- 值为7的表达式是【 】。 struct st{int n; struct st *next;} struct st a[3]={5,&a [1],7,&a [2],9,NULL}, *p; p=&a[0];