试题 百分网手机站

计算机二级《VFP》上机操作题及答案

时间:2020-09-02 10:44:34 试题 我要投稿

2016计算机二级《VFP》上机操作题及答案

  一、写出下列程序的运行结果:

  1.set talk off

  y=1

  if y<>0

  x=3

  else

  x=5

  endif

  if x>4

  if y<0

  x=2

  else

  if x>0.and.y>0

  x=12

  else

  x=30

  endif

  endif

  else

  x=5

  endif

  x

  1、set talk off

  a=100*rand( )

  b=100*rand( )

  c=100*rand( )

  max=a

  min=a

  if max

  max=b

  endif

  if min>b

  min=b

  endif

  if max

  max=c

  endif

  if min>c

  min=c

  endif

  a,b

  2016计算机二级《VFP》上机操作题及答案

  四、键盘输入a,b,c的值,判断它们能否构成三角形的三条边,若能构成一个三角形,则计算三角形的面积。请用表单和建立命令文件两种方法。

  五、建立一个表单,如图,开始自动显示系统时间,当在文本框中输入一个数值后,按“之前”或“之后”按钮,使可显示指定天数之前或之后的日期和星期。

2016计算机二级《VFP》上机操作题及答案