<HarmonyOS第一课>应用程序框架——闯关习题及答案

判断题

1.一个应用只能有一个UIAbility。( 错 )

2.创建的Empty Ability模板工程,初始会生成一个UIAbility文件。( 对 )

3.每调用一次router.pushUrl()方法,页面路由栈数量均会加1。( 错 )

单选题

1.API9及以上,router.pushUrl()方法,默认的跳转页面使用的模式是哪一种?( A )

A. Standard B. Single C. Specified

2.UIAbility启动模式需要在module.json5文件中配置哪个字段?( C )

A. Module B. skills C. launchType D. abilities

多选题

1.API9及以上,router.pushUrl()方法的mode参数可以配置为以下哪几种跳转页面使用的模式?( AB )

A. Standard B. Single C. Specified

2.UIAbility的生命周期有哪几个状态?( ACDF )

A. Create

B. WindowStageCreate

C. Foreground

D. Background

E. WindowStageDestroy

F. Destroy

3.UIAbility有哪几种的启动模式?( ABC )

A. Standard B. singleton C. specified

加入鸿蒙应用开发公开课系统学习HarmonyOS应用开发
相关推荐
HwJack2015 小时前
HarmonyOS批量数据与性能优化实战:万条数据入库与不卡 UI 的查询
ui·性能优化·harmonyos
FrameNotWork17 小时前
HarmonyOS应用《左右相册》 隐私防窥实战:用 dlpAntiPeep 让相册“感知“正在被偷瞄
华为·harmonyos
马剑威(威哥爱编程)20 小时前
HarmonyOS 应用上架审核避坑:驳回五类地图与提交前自检清单
华为·harmonyos
Veer Han1 天前
AI 开发真实案例完整复盘:给 App 增加宠物功能
人工智能·鸿蒙·宠物
OH_TPC1 天前
【鸿蒙优选三方库】@react-native-ohos/react-native-screens:原生屏幕导航管理
华为·harmonyos·鸿蒙
FrameNotWork1 天前
HarmonyOS应用《左右相册》 智感握姿实战:让操作按钮自动“站“到你拇指够得到的地方
华为·harmonyos
hacker7071 天前
DBeaver 鸿蒙 PC 适配全记录:在 HarmonyOS 桌面端原生重建一个通用数据库工具
数据库·华为·harmonyos
hacker7071 天前
DBeaver Community 鸿蒙 PC 适配全记录:在 HarmonyOS PC 上运行原生数据库管理工具
数据库·华为·harmonyos