Home > Certified Internet Web Professional > Quizzes > 1D0-437: CIW Perl Specialist Exam
1D0-437: CIW Perl Specialist Exam
Fast practice, instant feedback. Timer auto-submits when time’s up.
Avg score: 0% Most missed: “Consider the following program code:”
1D0-437: CIW Perl Specialist Exam
Time left 00:00
25 Questions

1. Which statement will open the /etc/passwd file for reading only?
2. Consider the following program code: $var -10; package Alpha; $var -20; { package Beta; $var = 30; } package Gamma; $var = 40; { print $var; } What is the output of this code?
3. Karl wants to define a character class that includes any alphanumeric word characters. Which of the following choices is best suited for this requirement?
4. Which one of the following statements uses correct syntax and expressions?
5. In the context or Perl user-defined subroutines, which statement is the most accurate?
6. Running your Perl scripts with a -d switch will perform which task?
7. Which one of the following choices is a unary operator that can apply to only a single variable?
8. Consider the following package definition: package Convert; Which one of the following statements should immediately follow the given package definition to create a valid module?
9. Consider the following program code: @list -(10..15); foreach(@list) { print($_ "); } What is the result of executing this program code?"
10. Which one of the following choices lists the three loop-control commands?
11. Consider the following program code: package Dog; $string = Walk the dog."; if($string eq "Walk the dog.") { package Cat; $string = "Pet the cat."; print("$string\n"); } print ("$string\n"); What is the result of executing this program code?"
12. Which of the following choices demonstrates the correct syntax to pass the argument $arg2 to the subroutine get pass?
13. The file handle INPUT is associated with the file represented by $file. Which statement will close the file handle INPUT?
14. Consider the following program code: $y 1"; $x = "2"; $z = "3"; do { print ("$y "); } while ($y eq "2"); do { print ("$x "); } until ($x eq "2"); print ("$z "); What is the result of executing this program code?"
15. Which statement will print the capital attribute of the $kansas object?
16. Which statement is the must accurate?
17. Consider the following code: $_ -New York"; @array2 = split(//); What is the value of $array2[0] after this code is executed?"
18. Consider the following program code: print(1 "); BEGIN { print ("2 "); } END { print ("3 "); } BEGIN { print ("4 "): } END { package MyPackage; print ("5 "); } What is the result of executing this program code:"
19. Consider the following program code: $Animal -Dogs bark"; package Cat; $Animal = "Cats purr"; { package Fish; $Animal -"Fish swim"; } package main; print $Animal; What is the result of executing this program code?"
20. Which one of the following choices will replace all occurrences of the word perl with the word Perl?
21. Consider the following expression: $modresult -33 % 11; What is the value of $modresult in the expression?
22. 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.
23. Given the following statement: for ($count-0; $count < 5; $count++) {print $count } What will be the output from the given statement?"
24. Consider the following program code: $x 0; $y = 5; do { print ($x $y "); ) while (++$x < 5 && ++$y < 10); print ("$x $y "); What is the result of executing this program code?"
25. Which of the following describes the functionality of the DBI tables method?