MIP.watch('count', function (newVal, oldVal) { fetch('https://www.chazidian.com/kaoshi/ajaxapi/?action=guanzhu&id=545&type=1') .then(function (res) { var follows2 = MIP.getData('follows') if(follows2==1){ MIP.setData({ follows:2, title:'收藏' }) } if(follows2==2){ console.log(2) MIP.setData({ follows:1, title:'已收藏' }) } }) .catch(function (err) { console.log('数据请求失败!') }) })
2019 年计算机等级考试二级MySQL数据库程序设计试题(三)
推荐等级:
★★★★☆
发布时间:
2020-05-29
卷面总分:
60
答题时间:
60
试题总量:
30
练习次数:
0
试卷分类:
MySQL数据库程序设计
试卷类型:
章节练习
试卷预览
1、下列程序的运行结果为()。 #include main() {structdate {intyear,month,day; }today; printf("%dn",sizeof(structdate)); }
A、8
B、6
C、10
D、12
2、有以下程序:输出的结果是()。 #include< structstu {intnum; charname[10]: intage;} voidfun(structstu*p) {printf("%sn",(*p).name);} tllain() { structstustudents[3]={{9801,"Zhang".20}, {9802,"Wang",19},{9803,"Zhao",18}} fun(students+2); }
A、Zhang
B、Zhao
C、Wang
D、18
3、有以下程序:输出的结果是()。 viodfun(inta,intb,intC) {a=456:b=567;c=678;} main() {intx=10,y=20,Z=30; fun(x,y,z): printf("%d,%d,%dn",x,y,z); }
A、30,20,10
B、10,20,30
C、456,567,678
D、678,567,456
4、有以下结构说明和变量定义,指针p、q、r分别指向链表中的3个连续结点。 structnode {intdata;structnode*next;)*p,*q,*r; 现要将q所指结点从链表中删除,同时要保持链表的连续,以下不能按要求完成操作的语句是()。
A、p->next=q->next;
B、P-next=P->next->next;
C、p->next=r;
D、p=q->next;
5、有定义:“inta=2,b=3,c=4;”,则下列选项中值为0的表达式是()。
其他考生还关注了更多>
相关题库更多>
公共基础
Python语言程序设计
MS Office高级应用
Web程序设计
MySQL数据库程序设计