程序段: Dim M As Single Dim N As Single Dim P As Single M=Abs(-7) N=Int(-2.4) P=M+NP的返回值是______。
举一反三
- 执行下列程序段后,变量 P 的值是_____。 Dim W As Single Dim P As Single W = 68.5 If W <= 50 Then P = W * 4 Else P = W * 2 End If
- 执行下列程序段后,变量 P 的值是_____。 Dim W As Single Dim P As Single W = 68.5 If W <= 50 Then P = W * 4 Else P = W * 2 End If A: 68.5 B: 137 C: 205.5 D: 275
- 下列数组声明语句中, 不正确的是___________。 A: Dim a(5) As Single B: Dim a(1 To 5) As Single C: Dim a(0) As Single D: Dim a(5) As Single=(1,2,3,4,5,6)
- 下列数组声明语句中,不正确的是_________。 A: Dim a(9) As Single = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10} B: Dim a() = {1, 2, 3, 4, 5, 6, 10} C: Dim a( ,) As Single = {{1, 2, 3, 4, 5}, {6, 7, 8, 9, 10}} D: Dim a() As Single = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10} E: Dim n As Integer=10Dim a(n) As Single
- 下面数组初始化语句正确的是( )。 A: Dim A(9) As Single={1,2,3,4,5,6,7,8,9,10} B: Dim A( ) As Single={1,2,3,4,5,6,7,8,9} C: Dim A(9) As Single={1,”A”,”BC”,2,3,4,5,6,7,8} D: Dim A(9) As Single={1,2,3,4,5,6,7,8,9,10}