VEX V5 编程技能测试试卷
满分:100分 时间:120分钟
一、单项选择题(每题2分,共25题,共50分)
1. 在VEXcode Pro中,控制电机前进的指令是:
A. motor.spin(reverse)
B. motor.spin(fwd)
C. motor.stop()
D. motor.setVelocity(0)
2. motor.spinFor(fwd, 360, deg, true) 中,最后一个参数 true 表示:
A. 电机立即停止
B. 等待该动作完成再执行下一行
C. 电机反向转动
D. 不等待直接执行下一行
3. 以下哪个头文件通常用于定义电机和传感器对象?
A. vex.h
B. robot-config.h
C. main.cpp
D. variables.h
4. 在手动控制程序中,通常使用哪个控制器轴来控制机器人前后移动?
A. Axis1
B. Axis2
C. Axis3
D. Axis4
5. driveForward(30, 600); 中,参数600的单位是:
A. 厘米
B. 毫米
C. 英寸
D. 电机旋转角度
6. 在 turnLeft(30, 90); 中,参数90表示:
A. 电机速度
B. 机器人转向角度
C. 转向时间
D. 转向半径
7. 以下哪个函数用于控制机器人后退?
A. driveForward
B. driveBackward
C. turnRight
D. stopAllMotors
8. 在手动控制中,baseLeftSpeed = controllerDriveSpeed + controllerTurnSpeed * 0.5; 这样设计的目的是:
A. 实现差速转向
B. 提高电机速度
C. 减少电机负载
D. 实现匀速直线运动
9. 在 void autonomous() 函数中,通常应调用:
A. drive_program()
B. auto_program()
C. pre_auton()
D. usercontrol()
10. 以下哪个是设置电机速度的正确语法?
A. MotorL1.setVelocity(50, rpm)
B. MotorL1.velocity = 50
C. MotorL1.setVelocity(50, pct)
D. MotorL1.spin(50)
11. 在程序中,wait(200, msec); 的作用是:
A. 停止所有电机
B. 等待200毫秒
C. 加速程序运行
D. 重置控制器
12. 以下哪个是控制器按钮 `R1` 的判断语句?
A. Controller1.ButtonA.pressing()
B. Controller1.ButtonR1.pressing()
C. Controller1.Axis1.pressing()
D. Controller1.ButtonL1.pressing()
13. 在自动程序中,注释掉一行代码的符号是:
A. //
B. /* */
C. #
D. --
14. MotorIntake1.spin(fwd, 100, pct); 中,pct 表示:
A. 百分比
B. 脉冲
C. 功率
D. 位置
15. 以下哪个函数通常放在 pre_auton() 中?
A. 自动程序
B. 电机初始化
C. 手动控制
D. 比赛开始
16. Gouzi.set(GouziState); 中,Gouzi 很可能是一个:
A. 电机
B. 气缸
C. 传感器
D. 控制器
17. 在 drive_program() 中,baseMinSpeed 的作用是:
A. 设置电机最大速度
B. 防止摇杆微动导致电机转动
C. 控制转向灵敏度
D. 限制电机电流
18. 以下哪个是定义浮点型变量的正确语法?
A. int speed = 0;
B. float speed = 0;
C. bool speed = true;
D. string speed = "0";
19. 在程序中,#include "functions.h" 的作用是:
A. 引入系统库
B. 引入自定义函数文件
C. 定义变量
D. 设置编译器选项
20. controllerDriveSpeed = Controller1.Axis3.position(); 中,.position() 返回的值范围是:
A. 0–100
B. -100–100
C. 0–360
D. -360–360
21. 在 turnRight 函数中,左轮和右轮的速度方向是:
A. 同向
B. 反向
C. 左轮停转
D. 右轮停转
22. 以下哪个是循环结构的正确写法?
A. for (int i = 0; i < 10; i++)
B. loop (10)
C. repeat 10 times
D. while (i < 10) { i++; }
23. 在程序中,MotorL1.spin(fwd, baseLeftSpeed, pct); 的 baseLeftSpeed 是:
A. 常量
B. 变量
C. 函数
D. 对象
24. 以下哪个是判断控制器按钮是否松开的正确写法?
A. Controller1.ButtonA.pressing() == 1
B. Controller1.ButtonA.pressing() == true
C. Controller1.ButtonA.pressing() == 0
D. Controller1.ButtonA.released()
25. 在 drive_program() 中,rollerIntake1Speed = 100; 表示:
A. 停止拾取电机
B. 拾取电机正转
C. 拾取电机反转
D. 设置拾取电机速度为50%
二、多项选择题(每题4分,共5题,共20分)
26. 以下哪些是VEXcode Pro中常用的电机控制函数?( )
A. spin()
B. spinFor()
C. setVelocity()
D. stop()
27. 以下哪些是遥控器输入设备?( )
A. Axis1
B. ButtonR1
C. Screen
D. Battery
28. 以下哪些是自动程序中常用的动作类型?( )
A. 前进一段距离
B. 转向一定角度
C. 等待控制器输入
D. 控制气动装置
29. 以下哪些是程序调试中常见的错误?( )
A. 电机端口配置错误
B. 变量未初始化
C. 自定义手动/自动函数未在主函数中调用
D. 注释过多
30. 以下哪些是 drive_program() 中可能用到的控制逻辑?( )
A. if-else
B. while
C. for
D. switch
关闭
更多问卷
复制此问卷