8、document.write((1==true)+1),输出的内容是( )。
A: 1
B: 2
C: true
D: false
A: 1
B: 2
C: true
D: false
举一反三
- 写出下列语句的输出结果:print(1 or 2, 0 or 2, False or True,True or False,False or 2,sep=' ')print(1 and 2, 0 and 2, False and 2,True and 2,False and True,sep=' ')
- 设a=3,b=5,c=-1,d=7,求下列逻辑表达式的值 1)(a-b)>c*d&&!(c>0)||d>b 2)a*d/(c*-a)>d%c||c>=d 3)(c+d)c 4)a-b>=c&&b-a>=d A: (1)True (2)True (3)True (4)False B: (1)False (2)True (3)True (4)False C: (1)True (2)False (3)True (4)False D: (1)True (2)True (3)False (4)False
- 分析下面的Javascript代码段,输出结果是( )var s1=Number(true);document.write(s1); A: true B: false C: 1 D: 0
- Two statements about spreadsheets follow.<br/>Is each statement true or false? A: Statement 1 is true, Statement 2 is false B: Both statements are true C: Statement 1 is false, Statement 2 is true D: Both statements are false
- True/False[br][/br]代码的输出结果是() A: 出错 B: 1 C: True D: False