Stack is quite simple. Many computer systems have stacks built into their circuitry. They also have machine-level instructions to operate the hardware stack. Stack is(73)in computer systems.A.uselessB.not importantC.simple but importantD.too simple to be

题目

Stack is quite simple. Many computer systems have stacks built into their circuitry. They also have machine-level instructions to operate the hardware stack. Stack is(73)in computer systems.

A.useless

B.not important

C.simple but important

D.too simple to be useful


相似考题
更多“Stack is quite simple. Many computer systems have stacks built into their circuitry. They ”相关问题
  • 第1题:

    有下列程序: include using namespace std; class Stack { public: Stack(unsigned

    有下列程序: #include<iosteram.h> using namespace std; class Stack { public: Stack(unsignedn=10):size(n){rep_=new int [size];top=O;} Stack(Stack&s):size(s.size) { rep_=new int[size]; fo

    A.4,3,2,1,

    B.4,3,6,7,2,1,

    C.4,3,6,2,1,

    D.1,2,3,4,


    正确答案:C
    解析: 此题综合考查了类与对象、循环语句、指针等知识点。在主函数main中,先定义了类Stack的对象s1,通过循环将1、2、3、4压入堆栈内;然后定义对象s2,并用对象s1来初始化,所以s2的大小也是10。第二个循环将4、3弹出并输出,然后将6压入s2的堆栈,然后将s2中剩下的值全部弹出,即6、2、1。

  • 第2题:

    有如下程序:include using namespace std;class Stack{public:Stack(unsigned n=10

    有如下程序: #include <iostream.h> using namespace std; class Stack { public: Stack(unsigned n=10):size(n){rep_=new int [size]; top=0;} Stack(Stack&s): size (s.size) { rep_=new int[size]; for (int i=0;i<size;i++) rep_[i]=s.rep_[i]; top=s.top; } ~Stack(){delete[]rep_;} void push(int a){rep_[top]=a; top++;} int pop(){--top; return rep_[top];} bool isEmpty() const {return top ==0;} private: int*rep_; unsigned size, top; }; int main() { Stack s1; for(int i=1;i<5;i++) sl.push(i); Stack s2(s1); for (int i=1;i<3;i++) cout<<s2.pop()<<','; s2.push(6); s1.push(7); while(!s2.isEmpty()) cout<<s2.pop()<<','; return 0; } 执行上面程序将输出( )。

    A.4,3,2,1,

    B.4,3,6,7,2,1,

    C.4,3,6,2,1,

    D.1,2,3,4,


    正确答案:C
    解析:此题综合考查了类与对象、循环语句、指针等知识点。在主函数main中,先定义了类Stack的对象s1,通过循环将1、2、3、4压入堆栈内;然后定义对象s2,并用对象s1来初始化,所以s2的大小也是10。第二个循环将4、3弹出并输出,然后将6压入s2的堆栈,然后将s2中剩下的值全部弹出,即6、2、1。

  • 第3题:

    The()creates?opportunities?for?more?direct?Integration?of the?physical?world?into?computer-based?systems,resulting?in?efficiently?improvements,economic?benefits,and?reduced human?exertions.

    A.internet of things
    B.cloud computing
    C.big datA
    D.mobile internet

    答案:A
    解析:
    本题翻译:
    ()创造了将物理世界更直接地整合到基于计算机的系统中的机会,从而提高了效率、经济效益,并减少了人类的劳动。
    A.物联网B.云计算C.大数据D.移动互联网
    根据题干意思,物联网就是运用各种信息技术,把物与物,物与人连接起来,实现互联互通,提高效率效益。
    云计算是基于网络“云”把大量数据运用程序分解成小程序进行计算的技术。
    大数据是数据集合。
    移动互联是互联网与移动通信的结合。
    此题重要理解几个名词的含义,除去教材上的定义,更多结合实际应用来理解,所以此题选择A选项。

  • 第4题:

    有如下程序:include using namespace std;class Stack {public: Stack(unsigned n= 1

    有如下程序: #include <iostream> using namespace std; class Stack { public: Stack(unsigned n= 10):size(n) {rep_=ew int[size]; top=0;} Stack(Stack& s):size(s.size) { rep_=new int[size]; for(int i=0;i<size;i++) rep_[i]=s.rep_[i]; top=s.top; } ~Stack() {delete[]rep_;} void push(int a) {rep_[top]=a; top++;} int pop() {--top;return rep_[top];} bool isEmpty() const {return top==0;} private: int *rep_; unsigned size,top; }; int main() { Stack s1; for(int i= 1;i<5 ;i++) s1. push(i); Stack s2(s1); for(i= 1 ;i<3;i++) cout<<s2.pop()<<','; s2.push(6); si.push(7); while(!s2.isEmpty()) cout<<s2.pop()<<','; return 0; }执行上面程序的输出是______ 。

    A.4,3,2,1,

    B.4,3,6,7,2,1,

    C.4,3,6,2,1,

    D.1,2,3,4,


    正确答案:C
    解析:栈是“先进后出”的数据结构。

  • 第5题:

    Examine the following options, Multicasting supports applications that communicate.()

    A. many - to - one

    B. one - to - one

    C. one - to - many

    D. many - to - many


    参考答案:C

  • 第6题:

    以下泛型集合声明中正确的是

    A.class stack<T>{} stack <int> s=new stack<int>();

    B.class stack<T>{} stack <int> s=new stack ();

    C.class stack<T>{} stack s=new stack();

    D.class stack<T>{} stack <int> s=new stack <int>;


    class stack {} stack s=new stack ();