CIW PERL FUNDAMENTALS (1D0-437) Free Practice Test
Question 1
Which one of the following choices will replace all occurrences of the word perl with the word Perl?
Correct Answer: D
Question 2
Consider the following program code:
1.$x = 100;
2.$y = "-25";
3.$sum = $x + $y;
4.
5.print $sum;
What is the result of executing this program code?
1.$x = 100;
2.$y = "-25";
3.$sum = $x + $y;
4.
5.print $sum;
What is the result of executing this program code?
Correct Answer: D
Question 3
Which of the following correctly creates a SQL statement that will insert the values of the
$name and $age variables into a database? The statement is assigned to the $sqlStmt variable. Assume a CHAR data type for $name and an INT data type for $age.
$name and $age variables into a database? The statement is assigned to the $sqlStmt variable. Assume a CHAR data type for $name and an INT data type for $age.
Correct Answer: C
Question 4
Consider the program code in the attached exhibit. What is the result of executing this program code?


Correct Answer: B
Question 5
Which of the following correctly creates a SQL statement that will insert the values of the
$ name and $age variables into a database? The statement is assigned to the $sqlStmt variable. Assume a CHAR data type for $name and an INT data type for $age.
$ name and $age variables into a database? The statement is assigned to the $sqlStmt variable. Assume a CHAR data type for $name and an INT data type for $age.
Correct Answer: C
Question 6
The filehandle INPUT is associated with the file represented by $file. Which statement will close the filehandle INPUT?
Correct Answer: B
Question 7
Consider the following code:
@cities = qw( Pittsburgh Atlanta Nashville Boston );
$city = join (":", @cities);
What is the value of $city after the code is executed?
@cities = qw( Pittsburgh Atlanta Nashville Boston );
$city = join (":", @cities);
What is the value of $city after the code is executed?
Correct Answer: B