[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"$fciMxbG1ehmkSJEnw8zc9nPP1sUXO0DPFL4pDewiKrq8":3},{"answer":4,"createTime":5,"id":6,"options":7,"origin":12,"question":19,"related":20,"source":30,"type":31},[],"2025-03-29 21:55:53",180838726,[8,9,10,11],"func printInfo(){}","def printInfo()","void printInfo(){}","function printInfo() {}",{"count":13,"courseId":14,"courseImg":15,"courseName":16,"workId":17,"workName":18},11,"5f8111a6ef6a8b79dafc295b847b1bc9","https:\u002F\u002Ftihai-oss-cloud.itihey.com\u002Fimg\u002F9c1e48361b00f3ee2086f4e259ed792b.jpg","混合式移动App开发","work_41392667","第2章 ArkTS语言","下面属于ArkTS函数声明的语句的是?( )",[21,32,35,44,53,62,67,77,86,95],{"answer":22,"createTime":5,"id":23,"options":24,"question":29,"source":30,"type":31},[],180838725,[25,26,27,28],"int a = 10","var a = 10","let a: number = 10","number a = 10","下面属于ArkTS中正确使用变量声明的语句是?( )","v1",0,{"answer":33,"createTime":5,"id":6,"options":34,"question":19,"source":30,"type":31},[],[8,9,10,11],{"answer":36,"createTime":5,"id":37,"options":38,"question":43,"source":30,"type":31},[],180838727,[39,40,41,42],"arr表示数据源,为Array类型的数组,为必选参数","arr可以设置为空数组,此时不会创建子组件","itemGenerator为数组中的每个元素创建对应的组件,为必选参数","keyGenerator为数据源arr的每个数组项生成唯一且持久的键值,为必选参数","下列关于ForEach循环渲染语法中参数说法错误的是?( )",{"answer":45,"createTime":5,"id":46,"options":47,"question":52,"source":30,"type":31},[],180838728,[48,49,50,51],"if、else if后跟随的条件语句不可以使用状态变量","允许在容器组件内使用,通过条件渲染语句构建不同的子组件","当父组件和子组件之间存在一个或多个if语句时,必须遵守父组件关于子组件使用的规则","支持if、else和else if语句","下列关于if\u002Felse条件渲染说法错误的是?( )",{"answer":54,"createTime":5,"id":55,"options":56,"question":61,"source":30,"type":31},[],180838730,[57,58,59,60],"@Component","@Entry","@Builder","@Preview","用哪一种装饰器修饰的struct表示该结构体具有组件化能力?( )",{"answer":63,"createTime":5,"id":64,"options":65,"question":66,"source":30,"type":31},[],180838732,[57,58,59,60],"用哪一种装饰器修饰的自定义组件可作为页面入口组件?( )",{"answer":68,"createTime":5,"id":69,"options":70,"question":75,"source":30,"type":76},[],180838734,[71,72,73,74],"let x: number = null","let x: number | null = null","let y: string = null","let y: string = 100","下面示例中会导致编译报错的有?( )",1,{"answer":78,"createTime":5,"id":79,"options":80,"question":85,"source":30,"type":76},[],180838736,[81,82,83,84],"string","boolean","number","Object","下面属于ArkTS基础类型的是?( )",{"answer":87,"createTime":5,"id":88,"options":89,"question":94,"source":30,"type":76},[],180838738,[90,91,92,93],"fontSize()","onClick()","width()","height()","下面哪些属于属性方法?( )",{"answer":96,"createTime":5,"id":97,"options":98,"question":104,"source":30,"type":76},[],180838740,[99,100,101,102,103],"aboutToAppear","aboutToDisappear","onPageShow","onPageHide","onBackPress","下面哪些函数是自定义组件的生命周期函数?( )"]