Files
QQuiz/test_data/sample_questions.txt
handsomezhuzhu 1b3dd929fe Add Windows deployment support
## 新增功能

### 📝 Windows 部署文档
- WINDOWS_DEPLOYMENT.md: 完整的 Windows 部署指南
  - Docker Desktop 部署方式
  - 本地源码部署方式
  - 详细的问题排查指南

- QUICK_START.md: 5 分钟快速上手指南
  - 简化的部署步骤
  - 测试功能清单
  - 常见问题解答

### 🚀 Windows 启动脚本
- start_windows.bat: 一键启动服务
- stop_windows.bat: 停止服务
- logs_windows.bat: 查看日志

### 📚 测试数据
- test_data/sample_questions.txt: 10 道基础题目
  - 单选题、多选题、判断题
  - 适合快速功能测试

- test_data/sample_questions_advanced.txt: 8 道简答题
  - 测试 AI 评分功能
  - 高级概念题目

## 改进
- 优化 Windows 用户体验
- 提供一键启动方案
- 包含完整测试数据

🚀 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-01 12:45:54 +08:00

78 lines
2.3 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

测试题库 - Python 基础
1. Python 是一种什么类型的编程语言?
A. 编译型语言
B. 解释型语言
C. 汇编语言
D. 机器语言
答案B
解析Python 是一种解释型、面向对象、动态数据类型的高级程序设计语言。它不需要编译成机器码,而是通过解释器直接执行源代码。
2. 下列哪个不是 Python 的核心数据类型?
A. 列表 (list)
B. 元组 (tuple)
C. 数组 (array)
D. 字典 (dict)
答案C
解析Python 的核心数据类型包括 list、tuple、dict、set、str、int、float、bool 等。array 不是内置类型,需要导入 array 模块才能使用。
3. 在 Python 中,以下哪个关键字用于定义函数?
A. function
B. def
C. func
D. define
答案B
解析Python 使用 def 关键字来定义函数例如def my_function():
4. Python 中如何创建一个空字典?
A. dict = []
B. dict = ()
C. dict = {}
D. dict = set()
答案C
解析:{} 用于创建空字典,[] 创建空列表,() 创建空元组set() 创建空集合。
5. 以下哪个语句可以正确导入 Python 的 random 模块?
A. import random
B. include random
C. using random
D. require random
答案A
解析Python 使用 import 关键字导入模块例如import random 或 from random import randint
6. Python 是否支持多继承?
A. 正确
B. 错误
答案A
解析Python 支持多继承一个类可以继承多个父类。语法为class ChildClass(Parent1, Parent2):
7. Python 中的 None 表示什么?
A. 空字符串
B. 数字 0
C. 空值/空对象
D. False
答案C
解析None 是 Python 中的一个特殊常量,表示"无值"或"空值"。它不等同于 0、空字符串或 False。
8. 以下哪些是 Python 的合法变量名?(多选)
A. my_var
B. _private
C. 2nd_var
D. myVar
答案ABD
解析Python 变量名必须以字母或下划线开头,不能以数字开头。因此 2nd_var 不合法。
9. Python 中的缩进是强制性的吗?
A. 正确
B. 错误
答案A
解析Python 使用缩进来表示代码块,这是语法的一部分,不正确的缩进会导致 IndentationError。
10. 在 Python 中,如何注释单行代码?
A. // 注释内容
B. /* 注释内容 */
C. # 注释内容
D. -- 注释内容
答案C
解析Python 使用 # 进行单行注释,使用三引号 ''' 或 """ 进行多行注释。