A. Unmanaged switch
B. Hardware firewall
C. Hub
D. Managed switch
第1题:
阅读以下说明和C++程序,将应填入(n)处的字句写在对应栏内。
[说明]
下面程序输出一个矩形面积,以及矩形区域上的假想的作物产量。
[C++程序]
include <iostream.h>
class crop_assessment
{
int actual_crop;
int ideal_crop;
public:
void set(int in_actual,int in_ideal)
{
actual crop=in_actual;
ideal_crop=in_ideal;
}
int get_actual_crop(void){ (1) ;}
int get_ideal_crop(void){ (2) ;)
};
Class lot_size
{
int length;
int width;
(3) crop;
public:
void set(int 1,int w,int a,int i)
{
length=1;
width=w;
crop.set(a,i);
}
int get_area(void){return length*width;}
int get_data(void){return (4) ;}
int get_data2(void)freturn (5) ;}
}
int main()
{
Los_size small,medium;
small.set(5,5,5,25);
medium.set(10,10,10,50);
cout<<"For a small lot of area"<<smallget_area()<<“\n”;
cout<<"the actual crops are$"<<small.get_data2()<<"\n";
cout<<"and ideal crops are$”<<small.get_data()<<"\n";
cout<<"For a medium Lot of area"<<medium.get area()<<:\n”;
cout<<"the actual crops are$"<<medium.get_data2()<<"\n";
cout<<"and ideal crops are$"<<medium.get_data()<<"\n";
return 0;
}
第2题:
Considerthefollowingcommandtoaddanewdiskgroupcalled"tdgroupA"withtwofailovergroups:CREATEDISKGROUPtdgroupANORMALREDUNDANCYFAILOVERGROUPcontrol01DISK’/devices/A1’,’/devices/A2’,’/devices/A3’FAILOVERGROUPcontrol02DISK’/devices/B1’,’/devices/B2’,’/devices/B3’mThedisk"/devices/A1"iscurrentlyamemberdiskofadiskgroupbythename"tdgroup1".Whichtaskwouldbeaccomplishedbythecommand?()
A.Thiscommandwouldresultinanerrorbecauseadiskgroupcanhaveonlyonefailovergroup.
B.Thiscommandwouldresultinanerrorbecausethe/devices/A1diskisamemberofanotherdiskgrouptdgroup1.
C.AnewdiskgroupcalledtdgroupAwillbeaddedwithtwofailovergroupsandthe/devices/A1diskwillgetreattachedtothenewdiskgroupwithoutbeingdetachedfromtheexistingone.
D.AnewdiskgroupcalledtdgroupAwillbeaddedwithtwofailovergroupsandthe/devices/A1diskwillbeignoredforthenewdiskgroupbecauseitisamemberofanexistingdiskgrouptdgroup1.
E.AnewdiskgroupcalledtdgroupAwillbeaddedwithtwofailovergroupsandthe/devices/A1diskgetsdetachedfromtheexistingdiskgrouptdgroup1andattachedtothenewdiskgrouptdgroupA
第3题:
YouenabledCDPontwoCiscoRouterswhichareconnectedtoeachother.TheLineandProtocolstatusfortheinterfacesonbothroutersshowasUPbuttheroutersdonotseeeachotheraCDPneighbors.WhichlayeroftheOSImodeldoestheproblemmostlikelyexist?()
A.Physical
B.Session
C.Application
D.Data-Link
E.Network
第4题:
Considerthefollowingconfiguration:
/devices/diskP1isamemberofdiskgroupgrp1.
/devices/diskP2isamemberofdiskgroupgrp1.
/devices/diskP3isamemberofdiskgroupgrp1.
/devices/diskP4isacandidatedisk.
/devices/diskQ1isamemberofdiskgroupgrp2.
/devices/diskQ2isamemberofdiskgroupgrp2.
/devices/diskQ3isamemberofdiskgroupgrp2.
/devices/diskQ4isacandidatedisk.
Whichcommandwilladdthedisk/devices/diskP4tothediskgroup,grp1?()
第5题:
阅读以下说明和Java程序,将应填入(n)处的字句写在对应栏内。
[说明]
下面程序输出一个矩形面积,以及矩形区域上的假想的作物产量。
[Java程序]
public class MainJava {
public static void main(String[] args){
Lot_size small=new Lot_size();
Lot_size medium=new Lot_size();
small.set(5,5,5,25);
medium.set(10,10,10,50);
System.out.println("For a small lot of area"
+small.get_area()+"\n");
System.out.println("the actual crops are $"
+small.get_data2()+"\n");
System.out.println("and ideal crops are $"
+small.get data()+"\n");
System.out.println("For a medium lot of area"
+medium.get_area()+“\n”);
System.out.println("the actual crops are $"
+medium.get_data2()+"\n");
System.out.println ("and ideal crops are $"
+medium.get_data()+"\n");
}
}
class Crop_assessment{
private int actual_crop;
private int ideal_crop;
public void set(int in_actual,int in ideal){
actual_crop=in_actual;
ideal_crop=in_ideal;
}
public int get_actual_crop(){return (1) ;}
public int get_ideal_crop()(return (2) ;}
}
class Lot_size{
private int length;
private int width;
private Crop_assessment crop= (3) ;
public void set(int 1,int W,int a,int i){
length=1;
width=W;
crop.set(a,i);
}
public int get_area(){return length*width;}
public int get_data()freturn (4) ;}
public int get_data2()(return (5) ;}
}
第6题:
10、SMALL模式将所有未标明存储器类型的变量都默认位于片内数据存储器,这和使用data指定存储器类型的作用一样。