CIW Perl Fundamentals exam (1D0-437) - CIW Actual Exam Questions
Last updated on April 15, 2026
Consider the following program code: if ("Apple" gt "Pear") { print("True "); } else { print("False "); } if ("Banana" le "Banana") { print("True "); } else { print("False "); } What is the result of executing this program code?
FalseFalse
FalseTrue
TrueFalse
TrueTrue
to join the discussion
No discussions yet. Be the first to ask!
Delete Comment
Are you sure? This action cannot be undone.
Assume $sth is a valid statement handle. Which of the following correctly outputs the data from the first three columns of a result set?
while(@rcrds = $sth->fetch_array) { print($rcrds[0]\n); print($rcrds[1]\n); print($rcrds[2]\n); }
while(@rcrds = $sth->fetch_array) { print($rcrds[1]\n); print($rcrds[2]\n); print($rcrds[3]\n); }
while(@rcrds = $sth->fetchrow_array) { print($rcrds[1]\n); print($rcrds[2]\n); print($rcrds[3]\n); }
while(@rcrds = $sth->fetchrow_array) { print($rcrds[0]\n); print($rcrds[1]\n); print($rcrds[2]\n); }
to join the discussion
No discussions yet. Be the first to ask!
Delete Comment
Are you sure? This action cannot be undone.
Consider that a file named test.txt contains this line of text: One line of test text. What is the output of the following lines of code? $file = "test.txt"; open (OUT, "<$file") || (die "cannot open $file: $!"); seek(OUT, 15, 0); read(OUT, $buffer, 5); print $buffer . "\n"; print tell(OUT);
t text 20
ttex 19
t text 19
ttex 20
to join the discussion
No discussions yet. Be the first to ask!
Delete Comment
Are you sure? This action cannot be undone.
Consider the program code in the attached exhibit. What is the result of executing this program code?
The code will output the following: 20 100 Apple Grapefruit Orange
The code will output the following: Apple Grapefruit Orange 20 100
The code will output the following: 100 20 Apple Grapefruit Orange
The code will output the following: Orange Grapefruit Apple 100 20
to join the discussion
No discussions yet. Be the first to ask!
Delete Comment
Are you sure? This action cannot be undone.
Consider the following program code @list - (10..15); foreach(@list) { print("$_ "); } What is the result of executing this program code?
The code will output the following $_ $_ $_ $_ $_
The code will output the following 11 12 13 14
The code will output the following 10 11 12 13 14
The code will output the following 10 11 12 13 14 15
to join the discussion
No discussions yet. Be the first to ask!
Delete Comment
Are you sure? This action cannot be undone.
Finish Practice?
Are you sure you want to finish? This will end your practice session.