What does the command show | compare rollback 1 display?()A. the difference between the current candidate configuration and the candidate configuration from one commit agoB. the difference between the current active configuration and the current candidate

题目
What does the command show | compare rollback 1 display?()

A. the difference between the current candidate configuration and the candidate configuration from one commit ago

B. the difference between the current active configuration and the current candidate configuration

C. the difference between the current active configuration and the active configuration from one commit ago

D. the difference between the current candidate configuration and the archived configuration from one commit ago


相似考题
更多“What does the command show | compare rollback 1 display?() ”相关问题
  • 第1题:

    Youdevelopingaformmodule,andyouwouldliketomakeanindicatedwindowvisibleinanewdisplayposition.Whichbuilt-incanyouusetoaccomplishthistask?()

    A.SHOW_WINDOW

    B.RESIZE_WINDOW

    C.DISPLAY_WINDOW

    D.MOVE_WINDOW_X_Y

    E.WINDOW_VISIBLE_X_Y


    参考答案:A

  • 第2题:

    设有如下程序: include using namespace std; class A { public:int i;display(){co

    设有如下程序: #include <iostream> using namespace std; class A { public: int i; display() { cout<<"class A\n"; } }; class B { public: int i; display() { cout<<"class B\n"; } }; class C : public A, public B { int j; public: int i; show ( ) { j = i * i; display(); } }; int main() { C demo; demo.show(); return O; } 则主程序运行时将( )。

    A.因为变量i的重复定义而报错

    B.因为对象demo间接调用display()函数时产生二义性而报错

    C.因为类定义的语法错误而不能运行

    D.没有语法错误,能够正常输出结果


    正确答案:B
    解析:本题主要考察C++中多继承的工作方式和二义性的解决办法。在C++中,允许一个派生类从多个基类派生,这种继承方式称为多继承。多继承的定义格式如下:class派生类名>:继承方式>基类名1>,继承方式2>基类名2>,…{派生类类体>};但是,如果一个派生类的两个或多个基类中有某个同名成员,在派生类中对这个成员的访问就可能出现二义性;同时,如果一个派生类是由两个或多个基类派生出来的,而这几个基类又有一个共同的基类,对该基类进行访问时,也可能会出现二义性。本题程序中,类C是由类A和类B多继承得到的派生类,但其自身函数show()中调用了display()函数,而这个函数是同时出现在类C的两个基类中的,因此程序会出现二义性,编译器将无法确定调用哪一个display()函数来执行操作,因此报错。解决二义性的通常办法是通过作用域运算符“::”进行限定。

  • 第3题:

    有如下程序: #include<iostream> using namespace std; class GA{ public: virtual int ft retum l;} }; class GB:public GA{ public: virtual int f{retum 2;} }; void show(GA g){eout<<9.f;} void display(GA&g){cout<<9.f;} int main { GA a;show(A.;display(A.; GB b;show(B.;display(B.; return 0; } 执行这个程序的输出结果是( )。

    A.1111

    B.1211

    C.1112

    D.1212


    正确答案:C
    本题主要考察虚函数。虚函数指在某基类中声明为virtual并在一一个或多个派生类中被重新定义的成员函数,本题中定义类GA的对象a,执行show(a)、display(a),输出ll,定义了类GB的对象b,执行show(b),仍然输出1,display(b)执行会调用派生类的f函数,因为f函数为虚函数,输出2,所以本题答案为c。

  • 第4题:

    有如下程序includeusing namespace std;class GA{public:virtual int f( ) {return 1

    有如下程序 #include<iostream> using namespace std; class GA{ public: virtual int f( ) {return 1;} }; class GB:public GA{ public: virtual int f() {return 2;} }; void show(GA g){cout<<g.f();} void display(GA&g){cout<<g.f();} int main() { GA a;show(A) ;display(A) ; GB b;show(B) ;display(B) ; return 0; }运行时的输出结果是

    A.1111

    B.1211

    C.1112

    D.1212


    正确答案:C

  • 第5题:

    设有如下程序:include class A{public:int i;display(){ cout<<"class A\n"; }};c

    设有如下程序:#include <iostream. h>class A{public:int i;display(){ cout<<"class A\n"; }};class B{public:int i;display(){ cout<<"class B\n"; }};class C: public: A, public: B{int j;public:int i;show(){ j=i*i; display(); }};void main(){C demo;demo. show();}则主程序运行时,将( )。

    A.因为变量i的重复定义而报错

    B.因为对象demo间接调用display函数时产生歧义性而报错

    C.因为类定义的语法错误而不能运行

    D.没有语法错误,能够正常输出结果


    正确答案:B

  • 第6题:

    Miller金字塔模型描述临床技能评价方法,从底到顶的四个层次分别为()

    A.DOES- KNOW HOW- KNOW-SHOW

    B.KNOW-KNOW HOW- SHOW- DOES

    C.KNOW-KNOW HOW- DOES- SHOW

    D.DOES- KNOW- KNOW HOW- SHOW


    A下P204