CMS专题

单选题The operator needs to change the /test filesystem in the testvg volume group so that it mounts automatically following a system reboot. Which of the following commands is correct?()A chvg -a y testvgB chfs -A yes /testC mount /test -auto=yesD chlv -a a

题目
单选题
The operator needs to change the /test filesystem in the testvg volume group so that it mounts automatically following a system reboot. Which of the following commands is correct?()
A

chvg -a y testvg

B

chfs -A yes /test

C

mount /test -auto=yes

D

chlv -a automount=y testlv

如果没有搜索结果,请直接 联系老师 获取答案。
如果没有搜索结果,请直接 联系老师 获取答案。
相似问题和答案

第1题:

有如下程序: include using namespace std;class Test {public: Test() {n+=2;} ~Tes

有如下程序: #include <iostream> using namespace std; class Test { public: Test() {n+=2;} ~Test() {n-=3;} static int getNum(){retum n;} private: static int n; }; int Test:: n=1; int main() { Test*p=new Test; delete p; cout<<"n="<<Test:: getNum()<<end1; return 0; };执行后的输出结果是______.

A.n=0

B.n=1

C.n=2

D.n=3


正确答案:A
解析:经过一次构造函数和析构函数的调用后,执行后的输出结果是A。

第2题:

An administrator needs to apply a Technology Level update. During the preview install, the output indicates that there is insufficientspace in the /usr filesystem. Review of the root volume group indicates there are no available physical partitions, but the /test jfs2 filesystem is only 8% used.What is the most efficient method to use the available space in the /test filesystem to apply theupdate?()

A.Use chfs to reduce the /test filesystem

B.Use cplv to copy the /test filesystem to a smaller logical volume

C.Use migratepv l to move the /test filesystem to a different volume group

D.Backup the /test filesystem, remove it, and recreate it with a smaller size


参考答案:A

第3题:

下列程序的运行结果是【 】。 include class test { private: int num; public: tes

下列程序的运行结果是【 】。

include <iostream. h>

class test

{

private:

int num;

public:

test()

int TEST() {return num+100;}

~test()

};

test::test(){num=0;}

test::~test(){cout<<"Destructor is active"<<endl;}

void main()

{

test x[3]

cout<<x[1]. TEST()<<endl;

}


正确答案:100
100 解析:本题比较简单,考查考生基本的类的定义,构造函数以及对象数组的概念。

第4题:

linux系统中,以下那个指令可以列出test账号的密码详细信息()

A.change -l test

B.chage -l test

C.chage -m test

D.change -d test


参考答案:B

第5题:

An Operator is in /var/tmp and needs to go to /var/adm. Which of the following is correct?()

A. cd /adm

B. cd ./adm

C. cd ../adm

D. cd /../adm


参考答案:C

第6题:

A user reports that they are getting an error when trying to save a video file to a share on a server running Windows Server 2003. The administrator looks at the file and finds that it is 5GB. The administrator checks the server and finds that the server has 100GB of free space. This file needs to be saved on the server.Which of the following should the administrator do to accomplish this?()

A. Convert the filesystem to EXT3.

B. Convert the filesystem to VMFS.

C. Convert the filesystem to NTFS.

D. Convert the filesystem to FAT32.


参考答案:C

第7题:

The operator needs to change the /test filesystem in the testvg volume group so that it mounts automatically following a system reboot. Which of the following commands is correct?()

A. chvg -a y testvg

B. chfs -A yes /test

C. mount /test -auto=yes

D. chlv -a automount=y testlv


参考答案:B

第8题:

有如下程序: include using namespace std; class Test{ public: Tes

有如下程序: #include<iostream> using namespace std; class Test{ public: Test() {n+=2;} ~Test() {n-=3;} static int getNum(){return n;} private: static int n; }; int Test::n=1; int main() { Test*p=new Test; delete p; cout<<"n="<<Test::getNum()<<endl; return 0; } 执行后的输出结果是( )。

A.n=0

B.n=1

C.n=2

D.n=3


正确答案:A
解析:语句Test*p=new Test;会调用类的构造函数Test() {n+=2;},使n的值由原来的1变为3,然后delete p调用类的析构函数~Test() {n-=3;},因为n是static型变量,所以会在3的基础上减 3,使得输出结果为0。

第9题:

An operator needs to change from the /usr/bin to the /var/spool directory. Which of the following commands will accomplish this?()

A. cd /var/spool

B. lcd /var/spool

C. cd /usr/bin /var/spool

D. lcd /usr/bin /var/spool


参考答案:A

第10题:

以下代码的输出结果?public class Test{int x=5;public static void main(String argv[]){Test t=new Test();t.x++;change(t);System.out.println(t.x);}static void change(Test m){m.x+=2;}}

A. 7

B. 6

C. 5

D. 8


正确答案:D

更多相关问题