一起答
单选

可以用栈来检查算术表达式中的括号是否匹配。分析算术表达式时,初始栈为空,从左到右扫描字符,遇到字符“(”就将其入栈,遇到“)”就执行出栈操作。对算术表达式“((a+b/(a+b) )-c/a))/b”,检查时,(42)。

  • A.栈为空却要进行出栈操作
  • B.表达式处理已结束,栈中仍留下有字符“(”
  • C.栈已满却要进行入栈操作
  • D.表达式处理已结束,栈中仍留下有字符“)”
参考答案
查看试卷详情
相关试题
  1. (129)

    • A.first
    • B.last
    • C.next
    • D.second
  2. (127)

    • A.when
    • B.where
    • C.who
    • D.which
  3. (128)

    • A.get
    • B.make
    • C.push
    • D.pull
  4. (126)

    • A.add
    • B.added
    • C.adding
    • D.additional
  5. An instruction is made up of operations that(68)the function to be performed and operands that represent the data to be operated on. For example, if an instruction is to perform. the operation of(69)two numbers, it must know(70)the two numbers are. The processor's job is to(71)instructions and operands from memory and to perform. each operation. Having done that, it signals memory to send it(72)instruction.

    • A.smile
    • B.skip
    • C.smoke
    • D.specify
  6. (124)

    • A.prevent
    • B.protect
    • C.examine
    • D.exploit
  7. A firewall is a(71)system designed to(72)an organization's network against threats.

    • A.operating
    • B.programming
    • C.security
    • D.data
  8. (122)

    • A.复制选中的文本
    • B.移动选中的文本
    • C.选中一个矩形区域中的文本
    • D.选中一个段落
  9. 在常用的字处理软件中,选中文本块后,按下Ctrl键再拖曳鼠标,可以()

    • A.复制选中的文本
    • B.移动选中的文本
    • C.选中一个矩形区域中的文本
    • D.选中一个段落
  10. There are many page replacement algorithms in the page management. Most frequently used algorithm is(69).

    • A.FIFO
    • B.LRU
    • C.OPT
    • D.PPT