Local Variable 的描述,哪项正确?
A.
局部变量可以使用 public/private 修饰。
B.
局部变量存储在堆(Heap)。
C.
局部变量在定义时必须初始化,否则编译失败。
D.
局部变量具有默认值,例如引用类型默认为 null。
try-catch-finally 中执行 System.exit(0),finally 会执行吗?
A.
不会,System.exit(0) 直接终止 JVM,finally 被跳过。
B.
只有 try 未抛异常才执行。
C.
会,finally 总会执行。
D.
取决于 catch 是否捕获 RuntimeException。
以下哪一个集合在并发场景下性能优于 Hashtable?
A.
TreeMap
B.
ConcurrentHashMap
C.
Hashtable
D.
LinkedHashMap
在 Spring AI 中集成阿里云通义千问(Qwen)模型时,应使用哪个官方平台提供的 API Key?
A.
阿里云 RAM AccessKey
B.
阿里云百炼(Model Studio)
C.
阿里云 DashScope
D.
阿里云函数计算(Function Compute)
使用 Spring AI 调用阿里云 DashScope 的 Qwen 模型时,以下哪个 Maven 依赖是正确的?
A.
<dependency>
<groupId>org.springframework.ai</groupId>
<artifactId>spring-ai-alibaba-dashscope-spring-boot-starter</artifactId>
</dependency>
B.
<dependency>
<groupId>org.springframework.ai</groupId>
<artifactId>spring-ai-alibaba</artifactId>
</dependency>
C.
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-starter-alibaba-nacos</artifactId>
</dependency>
D.
<dependency>
<groupId>com.aliyun</groupId>
<artifactId>dashscope-sdk</artifactId>
</dependency>
在 Spring Boot 应用中配置 DashScope API Key 时,以下哪种方式最符合安全最佳实践?
A.
直接在 application.yml 中写死:api-key: sk-123456...
B.
将 application.yml 提交到私有 Git 仓库
C.
在 Java 代码中定义常量:private static final String KEY = \"sk-...\";
D.
在 application.yml 中使用 ${DASHSCOPE_API_KEY},并通过环境变量传入
以下关于 Spring AI 与阿里云 Qwen 模型集成的说法,哪一项是错误的?
A.
Spring AI 需要 0.8.0 或更高版本才能支持阿里云 DashScope
B.
必须同时提供阿里云 AccessKey ID 和 AccessKey Secret 才能调用 Qwen
C.
DashScope 为新用户提供免费调用额度
D.
支持的模型包括 qwen-turbo、qwen-plus 和 qwen-max
题目内容
A.
选项A的内容
B.
选项B的内容
C.
选项C的内容
D.
选项D的内容
在 Spring AI 中集成阿里云通义千问(Qwen)模型时,应使用哪个官方平台提供的 API Key?
A.
阿里云 RAM AccessKey
B.
阿里云百炼(Model Studio)
C.
阿里云 DashScope
D.
阿里云函数计算(Function Compute)