群硕笔试题

来源:互联网 发布:网站源码如何使用 编辑:程序博客网 时间:2024/06/10 03:52

一、alpha测试和beta测试的区别

定义:alpha测试是在用户组织模拟软件系统的运行环境下的一种验收测试,由用户或第三方测试公司进行的测试,模拟各类用户行为对即将面市的软件产品进行测试,试图发现并修改错误。

Beta测试是用户公司组织各方面的典型终端用户在日常工作中实际使用beta版本,并要求用户报告异常情况,提出批评意见。

区别:两者的主要区别是测试的场所不同。Alpha测试是指把用户请到开发方的场所来测试,beta测试是指在一个或多个用户的场所进行的测试。Alpha测试的环境是受开发方控制的,用户的数量相对比较少,时间比较集中。而beta测试的环境是不受开发方控制的,谁也不知道用户如何折磨软件,用户数量相对比较多,时间不集中。一般地,alpha测试先于beta测试执行。通用的软件产品需要较大规模的beta测试,测试周期比较长。如果产品通过了beta测试,那么就可以正式发行了。

Alpha测试

Beta测试

联系

经过Alpha测试调整的软件产品称为Beta版本。一些软件开发公司把Alpha测试是对一个早期的、不稳定的软件版本所进行的验收测试,而Beta测试看成是对一个晚期的、更加稳定的软件版本所进行的验收测试。

区别

测试场所

开发方的场所

用户的场所(终端用户)

测试环境

受开发方控制

不受开发方控制

测试方

相对比较少:

用户或第三方测试公司

相对比较多:终端用户

时间

比较集中(每日提交报告,及时修改缺陷)

不集中:用户记录统一报告

一般

Alpha测试先于Beta测试执行。通用的软件产品需要较大规模的Beta测试,测试周期比较长。如果产品通过了Beta测试,那么就可以正式发行了。

二、比较三个数的大小

class B {public static void main(String[] args) {int a=2;int b=3;int c=1;for(int i=1;i<=3;i++){if(a>b){if(b>c){System.out.println("max number is"+a);break; }if(a>c){System.out.println("max number is"+a);break;}else {System.out.println("max number is"+c);break;}}else{if(b>c){System.out.println("max number is"+b);break;}else{System.out.println("max number is"+c);break;}}}}}

三、java简答题根据三角形的三条边长。判断其是直角。钝角。还是锐角三角形。程序攻能要求:
1输入三角形三条边长。2判断能否构成三角形。构成三角形的条件是“任意两边这和大于第三边”如果不能构成提示“不是三角形”3如果能构成三角形。判断三角形是何种三角形。如果三角形的任意一条边的平方大于其他两条边平方的和。则为钝角三角形。否则。为锐角三角形

boolean isTriangle(int a,int b,int c){
boolean fiag;
if((a+b>c)&&(a+c>b)&&(b+c>a)){
fiag=true;
}
else{
fiag=false;
}
return fiag;
}
String shape(int a,int b,int c){
String shape="";
if((a*a==b*b+c*c)&&(b*b==a*a+c*c)&&(c*c==a*a+b*b)){
shape="直角三角形";
}
else if((a*a>b*b+c*c)&&(b*b>a*a+c*c)&&(c*c>a*a+b*b)){
shape="钝角三角形";
}
else{
shape="锐角三角形";
}
return shape;
}
}


import java.util.*;


public class Test {


public static void main(String[] args) {
Scanner in=new Scanner(System.in);
Triang show=new Triang();
System.out.print("请输入第一条边:");
int a=in.nextInt();
System.out.print("请输入第二条边:");
int b=in.nextInt();
System.out.print("请输入第三条边:");
int c=in.nextInt();
if("true".equals(show.isTriangle(a,b,c))){
show.shape(a, b, c);
}else{
System.out.println("这不是三角形");
}

}


}


import java.util.*;


public class Test {


public static void main(String[] args) {
Scanner in=new Scanner(System.in);
Triang show=new Triang();
System.out.print("请输入第一条边:");
int a=in.nextInt();
System.out.print("请输入第二条边:");
int b=in.nextInt();
System.out.print("请输入第三条边:");
int c=in.nextInt();
if("true".equals(show.isTriangle(a,b,c))){
show.shape(a, b, c);
}else{
System.out.println("这不是三角形");
}

}


}

import java.util.*;


public class Test {


public static void main(String[] args) {
Scanner in=new Scanner(System.in);
Triang show=new Triang();
System.out.print("请输入第一条边:");
int a=in.nextInt();
System.out.print("请输入第二条边:");
int b=in.nextInt();
System.out.print("请输入第三条边:");
int c=in.nextInt();
if("true".equals(show.isTriangle(a,b,c))){
show.shape(a, b, c);
}else{
System.out.println("这不是三角形");
}

}


}
import java.util.*;

public class Test {


public static void main(String[] args) {
Scanner in=new Scanner(System.in);
Triang show=new Triang();
System.out.print("请输入第一条边:");
int a=in.nextInt();
System.out.print("请输入第二条边:");
int b=in.nextInt();
System.out.print("请输入第三条边:");
int c=in.nextInt();
if("true".equals(show.isTriangle(a,b,c))){
show.shape(a, b, c);
}else{
System.out.println("这不是三角形");
}

}


}

public class Test {


public static void main(String[] args) {
Scanner in=new Scanner(System.in);
Triang show=new Triang();
System.out.print("请输入第一条边:");
int a=in.nextInt();
System.out.print("请输入第二条边:");
int b=in.nextInt();
System.out.print("请输入第三条边:");
int c=in.nextInt();
if("true".equals(show.isTriangle(a,b,c))){
show.shape(a, b, c);
}else{
System.out.println("这不是三角形");
}

}


}
public class Test {

public static void main(String[] args) {
Scanner in=new Scanner(System.in);
Triang show=new Triang();
System.out.print("请输入第一条边:");
int a=in.nextInt();
System.out.print("请输入第二条边:");
int b=in.nextInt();
System.out.print("请输入第三条边:");
int c=in.nextInt();
if("true".equals(show.isTriangle(a,b,c))){
show.shape(a, b, c);
}else{
System.out.println("这不是三角形");
}

}


}

public static void main(String[] args) {
Scanner in=new Scanner(System.in);
Triang show=new Triang();
System.out.print("请输入第一条边:");
int a=in.nextInt();
System.out.print("请输入第二条边:");
int b=in.nextInt();
System.out.print("请输入第三条边:");
int c=in.nextInt();
if("true".equals(show.isTriangle(a,b,c))){
show.shape(a, b, c);
}else{
System.out.println("这不是三角形");
}

}


}
public static void main(String[] args) {
Scanner in=new Scanner(System.in);
Triang show=new Triang();
System.out.print("请输入第一条边:");
int a=in.nextInt();
System.out.print("请输入第二条边:");
int b=in.nextInt();
System.out.print("请输入第三条边:");
int c=in.nextInt();
if("true".equals(show.isTriangle(a,b,c))){
show.shape(a, b, c);
}else{
System.out.println("这不是三角形");
}
}


}
}

}

}
}


四、软件测试人员具备:

Software test engineers to find software defects need to have the quality and women all thecareful, patient, quiet, sensitive, and other aspects very fit, the software test engineer need to adjust the software developers and project managers and their own relationship, because it is looking for a loophole in the software programming, so women have unique advantages in terms of communication.In a sense, the software testing this class features inpatience, careful, sensitive, reverse, question, doubt, proof, toughness, quiet on the requirements of personality also with girls Is consistent. To do a good software test or through software testing interview, at least with computer knowledge and skills, thinking ability, and software test. If you still have simple encoding Process capability, grasp the larger, more good jobs.


五、软件测试优先级与严重性

严重性(Severity)顾名思义就是软件缺陷对软件质量的破坏程度,即此软件缺陷的存在将对软件的功能和性能产生怎样的影响。

在软件测试中,软件缺陷的严重性的判断应该从软件最终用户的观点做出判断,即判断缺陷的严重性要为用户考虑,考虑缺陷对用户使用造成的恶劣后果的严重性。

优先级是表示处理和修正软件缺陷的先后顺序的指标,即哪些缺陷需要优先修正,哪些缺陷可以稍后修正。

确定软件缺陷优先级,更多的是站在软件开发工程师的角度考虑问题,因为缺陷的修正顺序是个复杂的过程,有些不是纯粹技术问题,而且开发人员更熟悉软件代码,能够比测试工程师更清楚修正缺陷的难度和风险。

确定缺陷的严重性和优先级要全面了解和深刻体会缺陷的特征,从用户和开发人员以及市场的因素综合考虑。通常功能性的缺陷较为严重,具有较高的优先级,而软件界面类缺陷的严重性一般较低,优先级也较低。

对于缺陷的严重性,如果分为4级,则可以参考下面的方法确定:

1 – 非常严重的缺陷,例如,软件的意外退出甚至操作系统崩溃,造成数据丢失。

对于缺陷的优先性,如果分为4级,则可以参考下面的方法确定:

1 –最高优先级,例如,软件的主要功能错误或者造成软件崩溃,数据丢失的缺陷。

其他注意事项

比较规范的软件测试,使用软件缺陷管理数据库进行缺陷报告和处理,需要在测试项目开始前对全体测试人员和开发人员进行培训,对缺陷严重性和优先级的表示和划分方法统一规定和遵守。

在测试项目进行过程中和项目接收后,充分利用统计功能统计缺陷的严重性,确定软件模块的开发质量,评估软件项目实施进度。统计优先级的分布情况,控制开发进度,使开发按照项目尽快进行,有效处理缺陷,降低风险和成本。

为了保证报告缺陷的严重性和优先级的一致性,质量保证人员需要经常检查测试和开发人员对于这两个指标的分配和处理情况,发现问题,及时反馈给项目负责人,及时解决。

对于测试人员而言,通常经验丰富的人员可以正确的表示缺陷的严重性和优先级,为缺陷的及时处理提供准确的信息。对于开发人员来说,开发经验丰富的人员严重缺陷的错误较少,但是不要将缺陷的严重性作为衡量其开发水平高低的主要判断指标,因为软件的模块的开发难度不同,各个模块的质量要求也有所差异。

0 0
原创粉丝点击