题目内容

Design an algorithm to judge whether the brackets in the discriminant expression match the occurrence, and the data structure using ( ) is the best.

A stack
B Sequence list
C Queue
D Linked list

查看答案
更多问题

The suffix expression of the expression a * (b + c) -d is ( ).

A abc+*d-
B bc+a*d-
C ab*c+d-
D dabc+*-

When recursive procedures or function calls, a data structure of ( ) is needed to process parameters and return addresses.

A Stack
B Queue
C Multidimensional Arrays
D Linear list

If an array of size 6 is used to implement a circular queue, and the current values of rear and front are 0 and 3 respectively, when one element is deleted from the queue and two more elements are added, the value of rear and front is ( ).

A 4 and 2
B 1 and 5
C 2 and 4
D 5 and 1

The circular queue with the maximum capacity of n, the tail pointer of the queue is rear, and the head pointer of the queue is front,the condition for queue empty is ( ).

A rear=front
B (rear+1) MOD n=front
C rear+1=front
D (rear-l) MOD n=front

答案查题题库