VB操作题(国外英文资料).doc
文本预览下载声明
VB操作题(国外英文资料)
Sichuan high school program operation (36 minutes) special simulation problem
One, the sequential structure of the program (1 to 8)
1, the perimeter of the known square is 8, and the following program functions to calculate the perimeter of the square. Please complete the missing part of the program.
The Function func ()
Dim As A Single
Dim As Single L
A = 8
L =
Func = perimeter of a square L
End the Function
The variable R is the radius, calculating the circumference of the circumference (3.14 PI)
Dim R As Single
Dim As Single L
R = 5
L =...
Input the radius R of the circle from the keyboard, the circumference of the circle, and the area S, complete the following segments.
Dim R As Single, L As Single, S As Single
= InputBox ( input radius R )
L is equal to 2 times 3.14 times R
S = 3.14 * R * R
The circumference of the circle; L
The Print is the radius of the circle; s.
4, in June 2012, xiao li students participated in a test, there is a topic is: rectangle for 10, long known for 3 wide, high is 5, and the volume of a cuboid V classmate xiao li to write out the following incomplete procedures.
Dim As A Single
Dim B As Single
Dim H As Single
Dim V As Single
A = 10
B = 3
H = 5
V = ___________
Func = the volume of a cuboid.
In June 2012, xiao li participated in a test, with one topic: the value of a known variable a is 2011, the value of variable b is 2012, exchange variable a, and bs value. Xiao li wrote the following incomplete program.
The Function func ()
Dim As a Single
Dim b As Single
Dim c As Single
A = 2011
B = 2012
...
A = b
B = t
Func = a = a b = b
End the Function
In June 2012, xiao li participated in a test, with one topic: the value of a known variable a is 2011, the value of variable b is 2012, the exchange variable a, and bs value. Xiao li wrote the following incomplete program.
The Function func ()
Dim As a Single
Dim b As Single
Dim c As Single
A = 2011
B = 2012
T = a
___________
B = t
Func = a = a b = b
End the Function
In June 2
显示全部