ELABORATIONS!!
1.A technique to select minimum test cases for the Black Box Testing is
called Equivalence Testing and Boundary Value Analysis. It divides the
Input or Output Specifications in Classes.: equivalence
2.Nested if statements rule of thumb:
- if statements nested to a depth greater than should be avoided as
poor Programming Practice: 3
3.The Integration Process must be run by:: the SQA group
4.These are examples of 4GL Languages:: - SQL
- RoR
5.PHP code runs in a web browser.: False
6.Many PHP applications run on Linux with and Apache web server
and MySQL as the database: True
7.What file extensions does a PHP script have?: .php
8.What does the code output?
$test = "adios";
echo "$test test";: adios test
9.What output is produced by the PHP script?
<h1>This is a test</h1>
echo "This is only a test";: <h1<h1>This is a test</h1>echo "This is only
test";
10.Must PHP statements be terminated by a semicolon?: yes
11.Which code segment produces a notice error message?: $count =
2; echo $COUNT;
12.The var_dump(variable) function outputs the data type of a varaiable.
What is the output of the code below?
$x = 1.23;
var_dump($x);: float(1.23)
13.These are technique for the Testing Workflow:: - Glass Box Testing
- Code Walkthrough and Inspections
- Black Box Testing
14.Black Box Testing is also known as Testing to :
specifica- tions
15.Glass Box Testing is also known as Testing to : code
1/
12
, 16.One measure of the complexity of a code artifact is the number of lines
of code.
Another measure of complexity is the complexity M (McCabe)
which measures essentially the number of decisions (branches) in the code
artifact. It is also a good measure of number of faults.: cyclomatic
17.In one experiment, artifacts with the Cyclomatic Complexity M greater tha
were shown to have statistically more errors.: 10
18.The art of testing is to select a small, manageable set of Test Cases to:
- the chances of detecting a fault while
- the chances of wasting a Test Case: maximize minimize
19.Consider the statement
< condition 1 > && < condition 2 >
The semantics of the && operator are such that if < condition 1 > is false,
then < condition 2 > is not evaluated. What is the technical term for this?:
- short-circuit evaluation
- minimal evaluation
20.In choosing the Implementation Language, the following techniques
are used:: Code Benefit Analysis
21.Client-side data validation makes server-side validation unnecessary: -
False
22.Which statement produces a parse error?: $owner = 'Pam's'
23.3 + 5 * 2 = ?: 13
24.$points = 10;
$points--;
$points + 2 = ?: 11
25.What compound assignments operator makes $points become 2.5?
$points = 5;
$points 2;: /=
26.What value is $message?
$message = "Top";
$message .= "secret";: Topsecret
27.What is value is $points?
$points = 2;
$points *= 3 + 1;: 8
28.indicate if the expression evaluates to true or
2/
12