Files
exam/test_import.json
2026-03-07 20:37:15 +08:00

147 lines
4.6 KiB
JSON
Raw 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.
[
{
"title": "Java中以下哪个关键字用于定义接口",
"type": 1,
"level": 1,
"answerA": "class",
"answerB": "interface",
"answerC": "extends",
"answerD": "implements",
"rAnswer": "B",
"score": 5
},
{
"title": "以下哪个不是Java的基本数据类型",
"type": 1,
"level": 1,
"answerA": "int",
"answerB": "String",
"answerC": "boolean",
"answerD": "double",
"rAnswer": "B",
"score": 5
},
{
"title": "Java中main方法的正确写法是",
"type": 1,
"level": 1,
"answerA": "public void main(String[] args)",
"answerB": "public static void main(String[] args)",
"answerC": "public static int main(String[] args)",
"answerD": "static void main(String args)",
"rAnswer": "B",
"score": 5
},
{
"title": "Spring框架的核心特性是什么",
"type": 1,
"level": 2,
"answerA": "AOP面向切面编程",
"answerB": "IOC控制反转",
"answerC": "MVC设计模式",
"answerD": "以上都是",
"rAnswer": "D",
"score": 5
},
{
"title": "MySQL中以下哪个关键字用于删除表",
"type": 1,
"level": 2,
"answerA": "DELETE",
"answerB": "DROP",
"answerC": "REMOVE",
"answerD": "CLEAR",
"rAnswer": "B",
"score": 5
},
{
"title": "以下哪个设计模式属于创建型模式?",
"type": 1,
"level": 2,
"answerA": "观察者模式",
"answerB": "单例模式",
"answerC": "策略模式",
"answerD": "装饰器模式",
"rAnswer": "B",
"score": 5
},
{
"title": "Redis支持的数据结构包括",
"type": 1,
"level": 3,
"answerA": "String",
"answerB": "List",
"answerC": "Set",
"answerD": "以上都是",
"rAnswer": "D",
"score": 5
},
{
"title": "Java虚拟机JVM的主要组成部分包括",
"type": 1,
"level": 3,
"answerA": "类加载器",
"answerB": "运行时数据区",
"answerC": "执行引擎",
"answerD": "以上都是",
"rAnswer": "D",
"score": 5
},
{
"title": "简述Java中Exception和Error的区别。",
"type": 2,
"level": 1,
"rAnswer": "Exception是程序可以处理的异常通常由程序逻辑错误引起如NullPointerExceptionError是严重错误如OutOfMemoryError程序通常无法处理。",
"score": 10
},
{
"title": "什么是面向对象编程的三大特性?",
"type": 2,
"level": 1,
"rAnswer": "封装:将数据和方法包装在一起;继承:子类继承父类的特性;多态:同一操作作用于不同对象产生不同行为。",
"score": 10
},
{
"title": "简述JDK、JRE和JVM的区别。",
"type": 2,
"level": 2,
"rAnswer": "JDK是Java开发工具包包含JRE和开发工具JRE是Java运行时环境包含JVM和核心类库JVM是Java虚拟机负责字节码的执行。",
"score": 10
},
{
"title": "MySQL中如何优化慢查询",
"type": 2,
"level": 2,
"rAnswer": "1. 添加合适的索引2. 优化SQL语句避免全表扫描3. 使用EXPLAIN分析查询计划4. 优化表结构5. 适当进行分表分库。",
"score": 15
},
{
"title": "解释Spring中的IOC和AOP概念。",
"type": 2,
"level": 2,
"rAnswer": "IOC控制反转是将对象的创建和管理交给Spring容器降低耦合度AOP面向切面编程是将横切关注点如日志、事务从业务逻辑中分离提高代码复用性。",
"score": 15
},
{
"title": "什么是线程安全问题?如何解决?",
"type": 2,
"level": 3,
"rAnswer": "线程安全是指多个线程同时访问共享资源时可能出现数据不一致的问题。解决方法包括1. synchronized关键字2. ReentrantLock锁3. 原子类4. ThreadLocal5. 使用线程安全的集合类。",
"score": 15
},
{
"title": "简述分布式事务的解决方案。",
"type": 2,
"level": 3,
"rAnswer": "1. 两阶段提交2PC准备阶段和提交阶段2. 三阶段提交3PC增加了预提交阶段3. TCCTry-Confirm-Cancel4. 本地消息表5. 最大努力通知6. Saga模式。",
"score": 15
},
{
"title": "什么是JVM的垃圾回收机制",
"type": 2,
"level": 3,
"rAnswer": "垃圾回收是JVM自动管理内存的机制主要回收堆内存中不再使用的对象。常用算法包括标记-清除、标记-整理、复制算法、分代收集算法。垃圾收集器有Serial、Parallel、CMS、G1等。",
"score": 15
}
]