juniper认证考试

What is a function of the OSPF Type 7 LSA?()A、It describes the reachability of routes in stub areas.B、It describes the reachability of routes in totally-stubby areas.C、It describes the reachability of routes in not-so-stubby areas.D、It describes the reach

题目

What is a function of the OSPF Type 7 LSA?()

  • A、It describes the reachability of routes in stub areas.
  • B、It describes the reachability of routes in totally-stubby areas.
  • C、It describes the reachability of routes in not-so-stubby areas.
  • D、It describes the reachability of routes in partially-stubby areas.
如果没有搜索结果,请直接 联系老师 获取答案。
如果没有搜索结果,请直接 联系老师 获取答案。
相似问题和答案

第1题:

以下程序的执行结果是______ includevoid func(int); void main(){ int k=4 func(k)

以下程序的执行结果是______

include<iostream.h>

void func(int);

void main()

{

int k=4

func(k) ;

func(k) :

cout<<end1;

}

void func(int a)

{

static int m=0;

m+=a;

cout<<m<<" ";

}


正确答案:48
48

第2题:

对于类定义

class A{

public:

virtual void funcl(){}

void func2(){}

};

class B:public A

{

public:

void funcl(){cout <<"class B func 1”<

virtual void func2(){cout <<"class B func 2"<

};

下面正确的叙述是

A.A::func2()和B::funcl()都是虚函数

B.A::func2()和B::funcl()都不是虚函数

C.B::funcl()是虚函数,而A::func2()不是虚函数

D.B::funcl()不是虚函数,而A::func2()是虚函数


正确答案:C

第3题:

--- You should have listened carefully.---I had hoped to, but I didn’t think what the speaker was saying made any ____

A.value

B.fun

C.use

D.sense


参考答案:D

第4题:

在C程序中有如下语句:char *func(intx,int y); 它是( )。

A.对函数func的定义。

B.对函数func的调用。

C.对函数func的原型说明。

D.不合法的


正确答案:C

第5题:

类clasg one在声明func成员函数时发生错误,出错原因是______。

class one

private:

int a;

public:

void func(two&);

};

class two

{

private:

int b;

friend vold one::func(two&);

};

void one::func(two&r)

{

a=r.b;

}


正确答案:class one前没有声明语句class two;
class one前没有声明语句class two; 解析:当一个类作为另一个类的成员函数、成员函数的参数或其他情况的时候,要确保编译器能正确解析。由于在rclass orle之前没有关于class two的任何说明,而在class one的func函数中却用了class two类的参数。因此是错误的。

第6题:

对于类定义: class A{ public: virtual void func1( ){} void func2( ){} }; class B:public A{ public: void func1(){cout<<"class B func 1"<<end1;} virtual void func2(){cout<<"class B func 2"<<end1;} }; 下面叙述正确的是(53)。

A.A∷func2()和B∷func1()都是虚函数

B.A∷func2()和B∷func1()都不是虚函数

C.B∷func1()是虚函数,而A∷func2()不是虚函数

D.B∷func1()不是虚函数,而A∷func2()是虚函数


正确答案:C
解析:本题考查的是C++中类的继承和虚函数。要解答此类题目,我们需要对类的继承和虚函数有很清楚的认识。继承是面向对象程序设计最重要的特征,指的是一个新类从已有的类那里获得其已有的特征,并可以添加新的特征。虚函数的作用是允许在派生类中重新定义与基类同名的函数,并且可以通过基类指针或引用来访问基类和派生类中的同名函数。题目中类A声明了两个函数,一个虚函数func1()和一个函数func2(),类B继承于类A,那就继承了类A的特征,因此,类B中的func1()是一个虚函数。在类B中又把 func2()声明成虚函数,给func2()增加了新的特征,所以,类B中的两个函数都是虚函数,而在类A中只有func1()是虚函数。

第7题:

GivenanELfunctionfoo,innamespacefunc,thatrequiresalongasaparameterandreturnsaMap,whichtwoarevalidinvocationsoffunctionfoo?()

A.${func(1)}

B.${foo:func(4)}

C.${func:foo(2)}

D.${foo(5):func}

E.${func:foo(“easy”)}

F.${func:foo(“3”).name}


参考答案:F

第8题:

下列程序执行后的输出结果是

void func1(int i);

void func2(int i);

char st[]="hello,friend!";

void func1(int i)

{ printf("%c",st[i]);

if(i<3){i+=2;func2(i);}}

void func2(int i)

{ printf("%c",st[i]);

if(i<3){i+=2;func1(i);}}

main()

{ int i=0; func1(i); printf("\n");}

A.hello

B.hel

C.hlo

D.hlm


正确答案:C

第9题:

GivenanELfunctionfoo,innamespacefunc,thatrequiresalongasaparameterandreturnsaMap,which twoarevalidinvocationsoffunctionfoo?()

A.${func(1)}

B.${foo:func(4)}

C.${func:foo(2)}

D.${foo(5):func}

E.${func:foo("easy")}

F.${func:foo("3").name}


参考答案:C, F

第10题:

下列程序执行后的输出结果是______。

A.hello

B.hel

C.hlo

D.hlm void func1 (int i); void func2 (int i); char st[]="hello,friend!"; void func1(int i) { printf("%c",st[i]); if(i<3){ i+=2;func2(i); } } void func2 (int i) { printf("%c",st[i]); if(i<3){ i+=2;func1(i); } } main() { int i=0;func1(i);printf("\n");}


正确答案:C

更多相关问题