您好,欢迎访问三七文档
当前位置:首页 > 临时分类 > UNIX管理与开发期末考试试卷(英文版)
南开大学UNIX管理与开发期末试卷1/9南开大学2013——2014年度第二学期《Unix管理与开发》期末考试试卷(考试时间:100分钟总分100分)院(系)软件工程学号姓名分数一.选择正确的答案(每题2分,共20分)1.Thesignsoffilescanberead,write,executearefollowedinturn(A)。A.rwxB.xrwC.rdxD.srwAnswer:A2.Exitinteractiveshell,shouldinput(C)。A.Esc;B.^qC.exitD.quitAnswer:C3.Ifsuperuserrootwasunderthedirectory:/usr/local,afterinputcd,theuserisunderwhichdirectorynow(B)。A./homeB./rootC./home/rootD./usr/localAnswer:B4.Thereisafilenamedfileunderthedirectory:/home/stud1/wang,using(C)canmakeitruninthebackground,thecommandoutputthecontentoffiletofile.copyA.catfile;file.copyB.cat;file.copyC.catfilefile.copy&D.catfilefile.copy&Answer:C5.InUNIXsystem,thesourcefilechangestoexecutablefilethroughcompiling,theexecutablefilebelongsto(B)A.ASCIIfileB.ordinaryfileC.directoryfileD.specialfileAnswer:B6.ThefollowingnarrativeonUNIX,whichisnotcorrect(C)A.UNIXfilesystemisatreestructure,easytomanageandretrieveB.UNIXprovidesawealthofsoftwaretools,suchasutilities,text,anddevelopmenttoolsC.UNIXmanagesordinaryfiles,directories,files,anddevicefilesindifferentwaysD.UNIXisamulti-user,multi-taskingoperatingsystemAnswer:C南开大学UNIX管理与开发期末试卷2/97.IfyouwanttoknowthedetailusageoffindwhichisacommandofUnix,youshouldinput(C)A.helpfindB.findhelpC.manfindD.findmanAnswer:C8.Aboutthecommandcp,whichisincorrect(C)A.cpfile1file2B.cpfile1file2/tmpC.cp–rfile1file2D.cp–r/tmp/mytmpAnswer:C9.Whenwecreateanewfile,ithaspropertiesasfollowed(A)A.ReadableandwritablepropertyB.ReadableexecutablepropertyC.WritableexecutablepropertyD.Read-writeexecutablepropertyAnswer:A10.Ifwewanttochangethetimeofafile,usethecommand(C)A.timeB.DateC.touchD.calAnswer:C11.Aboutthecommandcd,whichisincorrect(D)A.cdBacktodirectorywhenregisteringB.cd/tmpintodirectory/tmpC.cd../intotheupperdirectoryD.cd./intotherootdirectoryAnswer:D12.Whenyoucreateanewdirectoryusingthemkdircommand,theoptionwhenitsparentdirectoriesdonotexisttocreateaparentdirectoryis(D)。A.-mB.-dC.-fD.–pAnswer:D13.Thefollowingstatements,whichisnotbelongtothescopeoftheroleoftheifconfigcommand(D)。A.ConfigurethelocalloopbackaddressB.ConfiguretheIPaddressofthenetworkcardC.ActivatethenetworkadapterD.LoadthecardintothekernelAnswer:D南开大学UNIX管理与开发期末试卷3/914.Therearefourmethodstoassignmentofvariablesintheshell,thenameofname=12is(A)。A.DirectassignmentB.UsereadcommandC.UsingthecommandlineparametersD.Usethecommandoutput15.Answer:A15.Changetheownerofafile,usecommand(C)。A.chmodB.touchC.chownD.catAnswer:C16.howmany“-”willoutputinthefollowingprocedures?(D)#includesys/types.h#includestdio.h#includestdlib.hintmain(){for(inti=0;i2;i++){fork();printf(-);}return0;}A.2B.4C.6D.8Answer:D17.Thefollowingdescriptionoftheerrorthatrespecttothei-nodeis(A).A.inodeandfileisonetooneB.inodecandescribethenumberofblocksthatoccupiedbythefileC.i-nodedescribesthesizeofthefileandapointerpointingtothedatablocksD.Achievetransformationofthelogicandphysicalstructureofthedocumentbythei-nodeAnswer:A18.Permissionsoftheoutsidemembersofgroupofafileisread-only;theownerhasfullpermissions;permissionswithinthegrouptoreadandwrite,thenthefilepermissionsis(D)A.467B.674C.476D.764Answer:D南开大学UNIX管理与开发期末试卷4/919.Howtodisplaythecurrentdirectory(A).A.pwdB.cdB.C.whoD.IsAnswer:A20.Whichisthereturnvalueoftheexitcommandinscript,saidthescriptsuccessfully(D)A、1B、-1C、2D、0Answer:D21.whichcommandisusedofChangingPassword(B)A、whoB、passwdC、passwordD、pwdAnswer:B22.Processsynchronizationreferstotherelationshipbetweentheprocessofmutual(B)inlogicA、ConnectionB、restraintC、continueD、CallingAnswer:B24.Howsettheshellscriptexam.shasalluserscanexecute(A)A、chomda+xexam.shB、chomda+wexam.shC、chomda+rexam.shD、chomdu+wexam.shAnswer:A25.Managementandcontrolprocessesby(B)A、InstructionB、PrimitiveC、SemaphoreD、MailcommunicationAnswer:B26.Thecommandusedtochangethenameoffileofdirectoryis(C)A、rmB、cpC、mvD、cdAnswer:C27.TocompileaCprogram,enter(D)incommandprompt.A、cprgnameB、cc–ocprgnameC、ccccprgnameD、cccprgname二.判断题(每题2分,共10分)1.(√)Liketheshell,theoutputthatisgeneratedbyprintand南开大学UNIX管理与开发期末试卷5/9printfcanbedirectedtoafileorpipe.Answer:True2.(√)ItisnotnecessarythattheschedulerallocatesCPUtotheprocess.Answer:True3.(×)Whenencrypted,thecommandcanspecifymultiplefilesasfiles,andthecommandencryptedallthefiles.Answer:False4.(×)UDPprotocolisaconnectionlessprotocol,sothathecanprovidereliabledatatransmission.Answer:False5.(×)Processisacollectionofinstructions.Answer:False三.填空题(每题2分,共10分)1.Thefilesanddirectoriestopackagecommandis____tar___Answer:tar2.Thecommandtoendthebackgroundprocessis__kill__Answer:kill3.Use__diff__commandtocomparethedifferentbetweentwocontentsoffiles.Answer:diff4.__stdin__、__stdout__、_stderr__willbeopenedatthebeginningofthecreationofaLINUXprocesses.Answer:stdin、stdout、stderr5.ListseveralmaindirectoryofUNIX/boot/etc/dev/bin/user/homeAnswer:/boot/etc/dev/bin/user/home6.TheTestcommandcantest__file__,__integer__,__string__.Answer:file、integer、string四.简答题(每题8分,共40分)南开大学UNIX管理与开发期末试卷6/91.IntheUNIXoperatingsystemareclassifiedinthetypesofoperatingsystems?WhatarethemainfeaturesofUNIXsystems?Answer:1.UNIXisamulti-taskingmulti
本文标题:UNIX管理与开发期末考试试卷(英文版)
链接地址:https://www.777doc.com/doc-2853532 .html