-
在HarmonyOS应用开发中编译态包的作用包括(BC)
A. 用于内部测试,验证功能的稳定性和兼容性
B. 对开发态包进行编译优化,提高运行效率
C. 去除部分不必要的调试信息,减少包体积
D. 是最终交付给用户的版本 -
在应用程序包结构中,用于构建配置文件和编译构建任务脚本的是(BD)
A. oh-package.json5
B. hvigorfile.ts
C. obfuscation-rules.txt
D. build-profile.json5
103.以下哪些UI布局更适合折叠屏上的短视频场景的用户体验?(ABCD)
a) 侧边面板边看边评
b) 半模态窗口分享
c) 短视频悬停
d) 侧边面板个人详情
104.在 ArkTS 中,关于类和对象的定义与使用,下列代码片段正确的是(AD)
A.
class Car {
brand: string;
constructor(brand: string) {
this.brand = brand;
}
drive() {
return `${
this.brand} is driving`
}
}
const myCar = new Car(“Toyota”);
B.
class Animal {
name: string;
constructor(name: string) {
this.name= name;
}
}
const animal= new Animal();
C.
class Book {
title: string;
private author: string;
constructor(title: string,author:string) {
this