A. You want to identify the most senior employee in the company.
B. You want to find the manager supervising the largest number of employees.
C. You want to identify the person who makes the highest salary for all employees.
D. You want to rank the top three sales representatives who have sold the maximum number of products.
第1题:
当利用大小为N的数组顺序存储一个栈时,假定用栈顶指针top=N+1表示栈空,则向这个栈插入一个元素时,首先应执行______语句修改top指针。
A.top:=top+1
B.top:=top-1
C.top:=0
D.top:=N
第2题:
2、若一个栈以向量V[1..n]存储,初始栈顶指针top为n+1,则下面x进栈的正确的操作是()。
A.top=top+1; V[top]=x;
B.V[top]=x; top=top+1;
C.top=top-1; V[top]=x;
D.V[top]=x; top=top-1;
第3题:
● 若一个栈以向量V[1..n]存储,初始使栈指针top为n,则下面x入栈的正确操作是()。设top指针指向栈顶元素。() A. top=top+1;V[top]=x B. V[top]=x;top=top+1C. top=top-1;V[top]=x D. V[top]=x ;top=top-1
第4题:
若一个栈以数组V[0..n-1]存储,初始栈顶指针top为n,则下面关于元素x进栈的正确操作是()。
A.top=top+1; V[top]=x;
B.V[top]=x; top=top+1;
C.top=top-1; V[top]=x;
D.V[top]=x; top=top-1;
第5题:
24、若一个栈以向量V[1..n]存储,初始栈顶指针top为n+1,则下面x进栈的正确操作是()。
A.top:=top+1;V[top]:=x
B.V[top]:=x;top:=top+1
C.top:=top-1;V[top]:=x
D.V[top]:=x;top:=top-1
第6题:
第7题:
40、若一个栈以向量V[1,…,n]存储,初始栈顶指针top为n+1,则x进栈的正确操作是()。
A.top=top+1;V[top]=x;
B.V[top]=x;top=top+1;
C.V[top]=x;top=top-1;
D.top=top-1;V[top]=x;
第8题:
若一个栈以向量V[1..n]存储,初始栈顶指针top为n+1,则下面x进栈的正确操作是()。
A.top=top+1;V[top]=x
B.V[top]=x;top=top+1
C.top=top-1;V[top]=x
D.V[top]=x;top=top-1
第9题:
若一个栈以向量V[1..n]存储,初始栈顶指针top为n+1,则下面x进栈的正确的操作是()。
A.V[top]=x;top=top-1;
B.top=top-1;V[top]=x;
C.top=top+1;V[top]=x;
D.V[top]=x;top=top+1;
第10题:
若一个栈以向量V[1..n]存储,初始栈顶指针top为n+1,则下面x进栈的正确操作是()。
A.top=top+1; V [top]=x
B.V [top]=x; top=top+1
C.top=top-1; V [top]=x
D.V [top]=x; top=top-1