共享一套难得的测试题

公司让做的,付费的,大家来看看吧。IKM的全称是International Knowledge Measurement,就翻译成国际知识度量吧,看这五道选择题吧:

Question 12: Which of the following methods are used to develop User Acceptance Test criteria?
A. Speaking to the business analysts and the primary customer interfaces to find out how the customers will be using the system and what features are important to them.
B. Talking to the development staff to determine which features have the most risk. Include these features in the User Acceptance Test criteria.
C. Include in the acceptance criteria all requirements included in the software requirements document.
D. If a software contract exists which includes User Acceptance Test criteria, only use these criteria in the User Acceptance Test test plan.
E. The User Acceptance Test criteria MUST include criteria covering major functions, software interfaces, security concerns and performance goals.

Question 13: One testing strategy is to use real, live test data when running test cases on an application in testing. Which of the following support reasons for using a test data generator and creating test data rather than using a live sample of data for testing?
A. Beta testing - A test data generator may be needed to provide users with live, actual data when completing their beta testing.
B. New data sets and null values - A live data set may represent a mature or aged, complete set of data, but data may need to be cleared and partially regenerated to mimic a new or fresh set of data.
C. Time and Date dependent tests - A complete set of time and date dependent data may not be available with a given set of live data on a give day, so a test data generator may be needed to simulate data from varying times and dates.
D. Boundary tests - When testing outside of valid ranges, a tester may need to create or seed outlier values in order to cover scenarios that may be missed with live data.
E. Acceptance testing - A test data generator may be needed to create commercial, production data when testers complete any testing that requires as close to a user environment as possible.

Question 14: Which of the following are software quality risks due to hard coding?
A. Code containing a lookup table of states based on postal code
B. Code containing specific dates
C. Code containing a pointer to the first record in a database
D. Code containing a user's username and password text string
E. Code containing a list of file locations

Question 15: Reported software defects often require further software repairs after the defect is reported and initially marked fixed. What are key guidelines to follow for testers when working with defect reports in order to ensure bugs are correctly fixed the first time?
A. Generalize bugs - once steps are found to reproduce a bug, find out under what additional conditions the bug also occurs.
B. Identify root causes - once steps are found to reproduce a bug, pinpoint why an issue is occurring by detailed investigation and by stepping through code.
C. Enhance software - once bugs are identified suggest enhancements to improve the software and the likelihood of a first time fix.
D. Isolate bugs - once steps are found to reproduce a bug, find out under what conditions the bug does not occur.
E. Detail steps - once steps are identified that reproduce a bug, add numbers to steps, convert simple phrases to complete sentences, run spellcheck, and add steps so that any user new to the software could retest the issue once it is marked fixed.

Question 16: Which of the following are critical factors to consider when testing the scalability of web sites to handle various numbers of users?
A. Single users- the fixed response time of a single user loading a web page.
B. User abandonment- a measure of users leaving a web site due to increased wait time for pages to load.
C. Concurrent users- the number of users simultaneously loading web pages
D. Idle time- the time period when no web pages are being loaded.
E. Downtime- the time when the server is unavailable to users.

Question 17: Which of the following statements about the introduction of new builds into a test environment are true?
A. When a new build enters into testing, it is critical to know what lines of code have changed, including commented lines of code, uppercase and lowercase changes, and differences in blank spaces.
B. When a new build enters into testing, it is critical to know what features of the software have changed and what features are the same.
C. When a new build enters into testing, it is critical to know what bugs have been fixed and marked ready for retesting.
D. When a new build enters into testing, it is critical to know what items are deemed ready for testing and what are not ready for testing.
E. When a new build enters into testing, it is critical to know what bugs were found and fixed during unit testing.

《Java测试题4》<br><br>Java练习题<br>一、填空<br>1、 对象的状态和行为是对象的主要属性;前者对应类的 ,行为又称为对象的操作,对应着类的 。类的定义包括 声明和 声明。<br>2、 要嵌入在HTML文件中运行的程序是 ( Java Application、 Java Applet)。<br>3、 安装JDK后,Java开发工具在 目录。<br>4、 声明接口的保留字是 。<br>5、 类的声明“public class Test extends Applet implements Runable{}”中,定义的类名是 ,其父类是 ;实现了 接口。这个类的源程序必须保存为 (写出包括扩展名的文件名)。<br>6、 一个完整的Java应用程序由一个或多个类组成;其中Java Application至少有一个主类,这个类中包含一个名为 的方法<br>7、 JDK下解释执行Java的程序是 。<br>8、 语句如下:<br>int[] c1=int[10]; <br>int[] c2={1,2,3,4,5,6,7,8,9,0}; <br>数组c1中的元素有 个;c2中的元素有 个;已初始化赋值的是 (c1 c2)。<br>9、 编写Java Applet程序的类必须继承自 类。<br>10、 执行完下列程序后i的值为 。<br>int i=0;<br>while(i<5)<br>{<br> i++;<br>}<br>11、 运行下列程序段后,结果c的取值为 。<br>int a = 100, b = 20, c; <br>char oper ='+';<br>switch(oper) {<br>case '+':<br> c = a+b;<br> break;<br>case '-':<br> c = a - b;<br> break;<br>default :<br> c = a * b;<br> break;<br>}<br>12、 为了能使用Java中已提供的类,我们需要用import语句来引入所需要的类。语句import java.io.*; 中引入了 包的所有类。<br>二、选择题<br>1、 属于访问控制的关键字是( )。<br>A、static B、final C、abstract D、private<br>2、 对成员的访问控制保护最强的是( )。<br>A、public 、B、缺省、 C private D protected<br>3、 可用做Java标识符的是( )。<br>A、MyGame B_isYour C 2time D aBc2<br>4、 属于Java输入输出流的、且处理的是char类型的类是( )。<br>A、Reader类 B、InputStream类 C、OutputStream类 D、File类<br>5、 缺省的存局管理器是( )。<br>A、BorderLayout B、FlowLayout C、GridLayout D、CardLayout<br>6、 用于存放创建后则不变的字符串常量是( )。 <br>A、String类 B、StringBuffer类 C、Character类、D、以上都不对<br>三、判别题<br>1、 一个类可以生成多个对象,并且这些对象都具有相同的属性。( )<br>2、 当运行javac命令对一个java源程序进行编译时,必须写出该源程序文件的完整文件名,包括扩展名.java。( )<br>3、 java语言中不用区分字母的大写小写。( )<br>4、 数组允许存放不同类型的定长元素。( )<br>5、 Java的类是单继承的,所有的类都从Object类派生而来的。( )<br>6、 System.out.println(“Hello java!”)中out是System 类的一个成员变量。( )<br>四、简答题<br>1、 通过继承,子类可以获得哪些好处?<br>2、 写出程序包组织Java程序的好处?<br>五、程序分析题<br>阅读下列程序,然后回答问题。<br>class Car { <br> int carNumber;<br> Car(){}<br> Car(int no){<br> this.carNumber=no;<br> } <br> void setNumber(int carNum) {<br> carNumber = carNum;<br> }<br> void showNumber() {<br> System.out.println(“My car No. is :” + carNumber);<br> }<br>}<br>① 写出这里定义了什么类?有哪些成员变量?有哪些成员方法?<br>② 有哪些构造方法?<br>③ 这个类有无访问控制修饰?表示谁可以访问这个类内的属性和方法? <br>④ void表示什么?static表示什么?<br>下列程序中,main()方法中使用了上面定义的类,产生了多少个对象?对象名字分别是什么?写出执行后的输出结果。<br>public class CarDemo {<br> public static void main(String args[]){<br> Car demoCar1= new Car();<br> demoCar1.setNumber(168168);<br> demoCar1.showNumber();<br> }<br>}<br>六、设计题<br>1、 编写一个完整的Java Application程序在命令行输出“I am a student.” ,并说明在JDK环境下的开发并运行的具体过程。<br>2、 编写一个完整的JAVA的Applet,使之能够在浏览器上显示“I am a student.”字符串信息,并说明在JDK环境下的开发并运行的具体过程。<br>3、 用Java实现如下的骰子游戏:丢下两个骰子,若分值的总值为7点,则赢;否则输。提示:类图如右图。<br>1)首先定义Die类。<br>提示:Die类表示一个骰子有faceValue一个静态属性,有一个roll()方法getFaceValue()。<br>roll()方法使faceValue为1~6中的一个随机值。getFaceValue()是取出faceValue值。<br>2)然后定义DiceGame类。<br>提示:DiceGame类有die1、die2两个静态属性,有一个play()方法。play()方法返回一个布尔类型,true表示分值的总值为7点,否则为false。<br>3)最后写了同个Test类,对上面定义的类进行测试。<br>提示:写出主类,main()方法中产生DiceGame对象,执行play()方法后显示出输赢。<br><br>
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值