试题与答案

计算下列各题(1)-5+6-7+8(2)12+(-23)+45+(-12)+(-

题型:解答题

题目:

计算下列各题
(1)-5+6-7+8
(2)
1
2
+(-
2
3
)+
4
5
+(-
1
2
)+(-
1
3

(3)11+(-35)-4×(-6)
(4)-48×(
1
2
-
5
8
+
1
3
-
11
16

答案:

(1)原式=(-5-7)+(6+8)

=-12+14

=2;

(2)原式=(

1
2
-
1
2
)+(-
2
3
-
1
3
)+
4
5

=0-1+

4
5

=-

1
5

(3)原式=11-35+24

=35-35

=0;

(4)原式=-24+30-16+44

=74-40

=34.

试题推荐
题型:单项选择题

在E盘当前目录文件夹下建立一个名为“Student.txt”的随机文件,要求用InputBox函数输入5个学生的姓名(StuName)、年级(StuGrade)和年龄(StuAge)。在程序中有以下记录类型和窗体的事件过程,请选择正确的语句完成程序( )。
Private Type student
StuName As String * 10
StuGrade As String * 10
StuAge As Integer
End Type
Private Sub Form Click()
Dim s As student
Open "c:\student.txt"For Random As#1 Len=Len(s)
For i=1 To 5
s.StuName=InputBox("请输入姓名")
s.StuGrade=InputBox("请输入年级号")
s.StuAge=Val(InputBox("请输入年龄"))
______
Next i
Close #1
End Sub

A.Print #1,s

B.Print #1,i

C.Put #1,,s

D.Put #1,i

查看答案
微信公众账号搜索答案