A team of programmers is reviewing a proposed API for a new utility class.After some discussion, they realize that they can reduce the number of methods in the API without losing any functionality.If they implement the new design, which two principles will they be promoting?()A、Looser couplingB、Tighter couplingC、Lower cohesionD、Higher cohesionE、Weaker encapsulationF、Stronger encapsulation
A team of programmers is reviewing a proposed API for a new utility class.After some discussion, they realize that they can reduce the number of methods in the API without losing any functionality.If they implement the new design, which two principles will they be promoting?()
- A、Looser coupling
- B、Tighter coupling
- C、Lower cohesion
- D、Higher cohesion
- E、Weaker encapsulation
- F、Stronger encapsulation
相关考题:
设VisualFoxPro的程序中有PROG1.PRG、PROG2.PRG、PROG3.PRG3层程序依次嵌套,下面的叙述中,正确的是______。A.在PROG1.PRG中用!RUNPROG2.PRG语句可以调用PROG2.PRG子程序B.在PROG2.PRG中用RUNPROG3.PRG语句可以调用PROG3.PRG子程序C.在PROG3.PRG中用RETURN语句可以返回PROG1.PRG主程序D.在PROG3.PRG中用RETURNTOMASTER语句可返回PROG1.PRG主程序
TEAM SPIRIT Team spirit can make or break a team. Teammates who have team spirit are better able to work together and achieve team goals. They are also more satisfied with their team activities. John Wooden, a former basketball coach at UCLA, said, “Team spirit means you are willing to sacrifice personal considerations for the welfare of all. That defines a team player.” There are certain skills team members develop that serve as good examples of team spirit. COOPERATION Cooperating is simply working together as teammates for the good of the team. Cooperation is a skill that team members can sharpen during practice. For example, basketball players must practice passing the ball in different plays and situations. Team efficiency is directly related to the cooperation of its members. Acting cooperatively is a good way to show team spirit because doing so contributes to the overall success of the team. MOTIVATION Team members must fulfil their duties with their full efforts. Staying motivated shows team spirit because it shows that you want the team to do well. This includes being motivated to give your best in practice and in competition, as well as outside of team activities. For example, a baseball player can show team spirit by being motivated to practice his swing outside of practice. RESPECT Respect for your fellow team members is a must. You can show respect to your teammates by treating everyone fairly and equally. Teammates also respect each other by allowing everyone to participate. Respecting fellow teammates keeps everyone in a good mood and encourages overall team spirit. For example, people can show team spirit through respect by encouraging other team members who might be struggling.1. Teammates who have team spirit ().A. can break a teamB. are better able to work together and achieve team goalsC. are less satisfied with their team activities2. According to the article, team spirit means ().A. cooperation and motivationB. motivation and respectC. cooperation, motivation and respect3. Cooperation is a skill that ().A. can be sharpened during practiceB. is born withC. everyone should have4. Being motivated means ().A. you should compete with othersB. you should practice swing outside of practiceC. you should give your best in any circumstances5. Respecting your teammates ().A. can treat everyone fairly and equallyB. can keep everyone in a good moodC. can discourage overall team spirit
Who should take the responsibility of building team spirit? A、Coach and team captain.B、Coach and manager.C、Team members.D、Coach and team members.
What is the influence of team spirit? A、It can help a team to get larger and larger.B、It can prevent a team from breaking a record.C、It can help a team to increase the chances of winning.D、It can change any team into a famous team.
What is NOT the influence of fans on the performance of a sports team? A、They play a big role in team spirit.B、The number of fans watching the game will help increase or reduce the team spirit.C、Fans give money to support their team.D、Fans pray for their team.
What is team spirit? A、Team spirit is the positive attitude of a group or team that makes the members want to succeed.B、Team spirits includes things such as trust, respect and enjoyment of the game.C、Team spirit means leadership.D、 Team spirit is very difficult to achieve.
设某程序中有PROG1.prg、PROG2.prg、PROG3.prg三个程序依次嵌套,下面叙述中正确的是A.在PROG1.prg中用!RUN PROG2.prg语句可以调用PROG2.prg子程序B.在PROG2.prg中用RUN PROG3.prg语句可以调用PROG3.prg子程序C.在PROG3.prg中用RETURN语句可以返回PROG1.prg主程序D.在PROG3.prg中用RETURN TO MASTER语句可以返回PROG1.prg主程序
执行如下程序: STORE " " TO ANS DO WHILE .T. @3,10 SAY "1.添加2.删除3.修改4.退出" @5,15 SAY "请输入选择:" GET ANS READ IF TYPE("ANS")="C".AND.VAL(ANS)<=3.AND.VAL(ANS)<>0 PROG="PROG"+ANS+".PR", DO PROG ENDIF QUIT ENDDO 如果在“请输入选择:”时,键入4,则系统______。A.调用子程序PROG4.prgB.调用于程序PROG.prgC.返回Visual FoxPro状态D.返回操作系统状态
若某文件系统的目录结构如下图所示,假设用户要访问文件fl.j ava,且当前工作目录为Program,则该文件的全文件名为 (22),其相对路径为(23)。(22)A. f1.javaB.\Document\Java-prog\f1.javaC.D:\Program\Java-prog\f1.javaD.\Program\Java-prog\f1.java(23)A. Java-prog\B. \Java-prog\C. Program\Java-progD. \Program\Java-prog\
执行下列程序:CLEARDOPROG1RETURNPROCEDURE PROG1X=2DOPROG27XRETURNPROCEDURE PROG2X=X+3RETURN程序的运行结果为( )。
前目录/home/lisa下有一个shell脚本prog.它的权限是rwxr-xr-x.如果在命令行运行prog,得到Command not found.下面那些说明是正确的()A.你没有授权执行这个程序B.prog是不可执行的C.路径/home/lisa没有包括在PATH环境变量中D.你需要打入./prog去执行此程序
设Visual FoxPro的程序中有PROGI.PRG:PROG2.PRG、PROG3.PRG,三个程序依次嵌套,下面的叙述正确的是( )。A.在PROG1.PRG中用[RUN PROG2.PRG语句可以调用PROG2.PRG子程序B.在PROG2.PRG中用RUN PROG3.PRG语句可以调用PROG3.PRG子程序C.在PROG3.PRG中用RETURN语句可以返回PROG1;PRG主程序D.在PROG3.PRG中用RETURN TO MASTER语句可以返回PROG1.PRG主程序
设Visual FoxPro的程序中有PROG1.prg、PROG2.prg、PROG3.prg三层程序依次嵌套,下面的叙述中,正确的是______。A.在PROG1.prg中用! RUN PROG 2.prg语句可以调用PROG2.prg 子程序B.在四PROG2.prg中用RUN PROG3.prg语句可以调用PROG3.prg子程序C.在PROG3.prg中用RETURN 语句可以返回PROG1.prg主程序D.在PROG3.prg中用RETUN TO MASTER语句可返回PROG1.prg主程序
若某文件系统的目录结构如下图所示,假设用户要访问文件f1.java,且当前工作目录为Program,则该文件的全文件名为__1___,其相对路径为__2___。2、____A.Java-prog\B.\Java-prog\C.Program\Java-progD.\Program\Java-prog\
现在执行命令makesubr.o,实际执行的命令是()A、gcc–o pr1prog.osubr.oB、gcc–c–l prog.oprog.cC、gcc–c–o subr.osubr.cD、都执行
在当前目录/home/lisa下有一个shell脚本prog.它的权限是rwxr-xr-x.如果在命令行运行prog,到"Commandnotfound".下面那些说明是正确的?()A、你没有授权执行这个程序.B、prog是不可执行的.C、路径/home/lisa没有包括在PATH环境变量中.D、你需要打入./prog去执行此程序.
当前目录是/usr/meng,其下属文件prog/file.c的绝对路径名是()。A、/usr/meng/file.cB、/usr/file.cC、/prog/file.cD、/usr/meng/prog/file.c
单选题Because a rockslide had blocked much of the passage, the spelunking team was not able of exploring the full extent of the cave.Athe spelunking team was not able of exploring the full extent ofBthe full extent was not able to be explored by the spelunking team ofCthe spelunking team was unable in exploring, to its full extent,Dtherefore the spelunking team was unable to explore the full extent ofEthe spelunking team was unable to explore the full extent of
单选题To examine the Exhibit, press the Exhibit button. Using the "ps -mo THREAD" output as shown in the exhibit, which of the following conclusions is most appropriate to draw?()A This is a uniprocessor systemB The "prog" process has a nice value of 107C There are two active processors on this systemD The "prog" process will only be scheduled to run on processor 0
多选题在当前目录/home/lisa下有一个shell脚本prog.它的权限是rwxr-xr-x.如果在命令行运行prog,到"Commandnotfound".下面那些说明是正确的?()A你没有授权执行这个程序.Bprog是不可执行的.C路径/home/lisa没有包括在PATH环境变量中.D你需要打入./prog去执行此程序.
单选题Practicing their rebuttals ahead of time helps the forensics team members to become a better debater.Ahelps the forensics team member to become a better debaterBhelps forensic team members to become better debatersChelping the forensics team members to become better debatersDis helpful to the forensics team members who become better debatersEthe forensics team member becomes a better debater
单选题现在执行命令makesubr.o,实际执行的命令是()Agcc–o pr1prog.osubr.oBgcc–c–l prog.oprog.cCgcc–c–o subr.osubr.cD都执行
单选题当前目录是/usr/meng,其下属文件prog/file.c的绝对路径名是()。A/usr/meng/file.cB/usr/file.cC/prog/file.cD/usr/meng/prog/file.c