Official Bank 0/99

CIW Perl Fundamentals exam (1D0-437) - CIW Actual Exam Questions

Last updated on April 15, 2026

97% Exam Compliance
99 Total Questions
1
Question

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?

Options
A

FalseFalse

B

FalseTrue

C

TrueFalse

D

TrueTrue

Discussion (0 comments)

to join the discussion

Community Discussion

No discussions yet. Be the first to ask!

2
Question

Assume $sth is a valid statement handle. Which of the following correctly outputs the data from the first three columns of a result set?

Options
A

while(@rcrds = $sth->fetch_array) { print($rcrds[0]\n); print($rcrds[1]\n); print($rcrds[2]\n); }

B

while(@rcrds = $sth->fetch_array) { print($rcrds[1]\n); print($rcrds[2]\n); print($rcrds[3]\n); }

C

while(@rcrds = $sth->fetchrow_array) { print($rcrds[1]\n); print($rcrds[2]\n); print($rcrds[3]\n); }

D

while(@rcrds = $sth->fetchrow_array) { print($rcrds[0]\n); print($rcrds[1]\n); print($rcrds[2]\n); }

Discussion (0 comments)

to join the discussion

Community Discussion

No discussions yet. Be the first to ask!

3
Question

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);

Options
A

t text 20

B

ttex 19

C

t text 19

D

ttex 20

Discussion (0 comments)

to join the discussion

Community Discussion

No discussions yet. Be the first to ask!

4
Question

Consider the program code in the attached exhibit. What is the result of executing this program code?

Question image
Options
A

The code will output the following: 20 100 Apple Grapefruit Orange

B

The code will output the following: Apple Grapefruit Orange 20 100

C

The code will output the following: 100 20 Apple Grapefruit Orange

D

The code will output the following: Orange Grapefruit Apple 100 20

Discussion (0 comments)

to join the discussion

Community Discussion

No discussions yet. Be the first to ask!

5
Question

Consider the following program code @list - (10..15); foreach(@list) { print("$_ "); } What is the result of executing this program code?

Options
A

The code will output the following $_ $_ $_ $_ $_

B

The code will output the following 11 12 13 14

C

The code will output the following 10 11 12 13 14

D

The code will output the following 10 11 12 13 14 15

Discussion (0 comments)

to join the discussion

Community Discussion

No discussions yet. Be the first to ask!

Finish Practice?

Are you sure you want to finish? This will end your practice session.