You are on page 1of 2

Subject: SWT301 – SOFTWARE TESTING

1.

QN=1 Which knowledge is the most important for White Box Testing?
a. Knowledge of behaviours of the program to be tested
b. Knowledge of user requirements
c. Knowledge of functions of the program to be tested
d. Knowledge of internal architecture of the program to be tested

QN=2 By whom is unit testing usually performed?


a. By an independent test group
b. By a tool
c. By customers
d. By the person who wrote the software

QN=3 Which knowledge is the most important for Black Box Testing?
a. Knowledge of functions of the program to be tested
b. Knowledge of programming language of the program to be tested
c. Knowledge of algorithm of the program to be tested
d. Knowledge of data variables of the program to be tested

QN=4 Which technique is usually used in component testing?


a. Black box technique
b. Bottom – up technique
c. Top – down technique
d. White box technique

QN=5 What is the static technique?


a. Is a technique that does not execute code
b. Is a technique that uses a cause – effect graph
c. Is a technique usually used in system testing
d. Is a technique that usually uses incremental approach

QN=6 What does usability testing belong to?


a. Acceptance testing
b. System testing
c. Integration testing
d. Component testing

QN=7 What is the Cyclomatic complexity of the following code?


Read A
Read B
IF A > 0 THEN
IF B = 0 THEN
Print “No values”
ELSE
Print B
IF A > 21 THEN
Print A
ENDIF
ENDIF
ENDIF
a. 2
b. 3
c. 4
d. 5

QN=8 What is the advantage of testing by developers?


a. Know the code best
b. Difficult to destroy own work
c. Subjective assessment
d. Tendency to see expected results

QN=9 What is the disadvantage of testing by development team?


a. Some independence
b. Technical depth
c. On friendly terms with “buddy” - less threatening
d. Technical view, not business view

QN=10 You need to enter data for a text box. The valid data is 10 to 25
characters long. Which of the following test cases are suitable for
equivalent partitioning method?
a. 6 characters; 17 characters; 35 characters
b. 0 characters; 10 characters; 25 characters
c. 10 characters; 17 characters; 25 characters
d. 0 characters; 18 characters; 35 characters

2. Ứng dụng kỹ thuật cause – effect graph xây dựng bộ dữ liệu kiểm thử cho bài
toán giải phương trình bậc 2
3. Vẽ sơ đồ luồng điều khiển của đoạn mã ở câu QN=7.

You might also like