The first and last scenic spots to he visited in Xi’an are .
A. the Terracotta Warriors and the Great Mosque
B. the Terracotta Warriors and shanghai provincial Museum
C. little wild goose Pagoda and Great Mosque
D. Little wild goose Pagoda and the Muslim Quarter
第1题:
数组q[M]存储一个循环队,first和last分别是首尾指针,如果使元素x进队操作的语句为“q[last]=x,last=(last+1)%m;”那么判断队满的条件是_____。
A.last= =first
B.last= =M-1
C.(last+1)%m= =first
D.last+1= =first
第2题:
数组q[M]存储一个循环队,first和last分别是首尾指针。当前队中元素个数为_____。
A.(last- first+M)%M
B.last-first+1
C.last-first-1
D.last-first
第3题:
11、数组q[M]存储一个循环队,first和last分别是首尾指针。如果使元素x出队操作的语句为“first=(first+1)%m, x=q[first];”。那么元素x进队的语句是_____。
A.last=(last+1)%m,q[last]=x;
B.x=q[last], last =(last+1)%m;
C.q[last+1]=x;
D.q[(last+1)%m]=x;
第4题:
数组q[M]存储一个循环队,first和last分别是首尾指针。如果使元素x出队操作的语句为“first=(first+1)%m, x=q[first];”。那么元素x进队的语句是_____。
A.last=(last+1)%m,q[last]=x;
B.x=q[last], last =(last+1)%m;
C.q[last+1]=x;
D.q[(last+1)%m]=x;
第5题:
20、以下代码的输出结果是() let obj = { first: 'hello', last: 'world' }; let { first: f, last: l } = obj; console.log(f);
A.first
B.hello
C.last
D.world
第6题:
1、数组q[M]存储一个循环队,first和last分别是首尾指针。当前队中元素个数为_____。
A.(last- first+M)%M
B.last-first+1
C.last-first-1
D.last-first