一起答
单选

设栈S的初始状态为空,现有5个元素组成的序列{1,2,3,4,5},对该序列在S栈上依次进行如下操作(从序列中的1开始,出栈后不再进栈):进栈、进栈、进栈、出栈、进栈、出栈、进栈。试问出栈的元素序列是(35)。

  • A.{5,4,3,2,1}
  • B.{2,1}
  • C.{2,3}
  • D.{3,4}
试题出自试卷《软件水平考试(初级)程序员上午(基础知识)模拟试卷15》
参考答案
查看试卷详情
相关试题
  1. Viruses usually have two phases to their execution, the infection phase and the(75)phase. The later phase is optional, since stone viruses simply reproduce.

    • A.reproduce
    • B.proliferation
    • C.defend
    • D.attack
  2. (74)isn't a type of transmission medium used for LANs.

    • A.Twisted pair
    • B.Coaxial cable
    • C.Satellite
    • D.Optical fiber
  3. A(73)is used to communicate with another computer over telephone lines.

    • A.keyboard
    • B.modem
    • C.mouse
    • D.printer
  4. Multimedia is the combination of computer and(72)technology.

    • A.word processing
    • B.picture
    • C.video
    • D.radio
  5. In the RGB color spaces, each pixel on the screen has a corresponding RGB value which consists of()components.

    • A.two
    • B.three
    • C.four
    • D.six
  6. In C language,(70)is a collection of one or more variables, possibly of different types, grouped together under a single name for convenient handling.

    • A.a structure
    • B.a file
    • C.an array
    • D.a string
  7. A stack protocol can be used for(69).

    • A.job scheduler in Operation System
    • B.operation of arithmetic expressions
    • C.removing the latest element inserted
    • D.removing the earliest element inserted
  8. A(68)program is usually described as a program written in high-level language.

    • A.compiler
    • B.executable
    • C.source
    • D.object
  9. (70)

    • A.13
    • B.35
    • C.19
    • D.3
  10. (69)

    • A.3323H
    • B.1303H
    • C.B3A3 H
    • D.1903H