1D0-437 Premium Bundle

1D0-437 Premium Bundle

CIW PERL FUNDAMENTALS Certification Exam

4.5 
(41100 ratings)
0 QuestionsPractice Tests
0 PDFPrint version
November 21, 2024Last update

CIW 1D0-437 Free Practice Questions

New CIW 1D0-437 Exam Dumps Collection (Question 4 - Question 13)

New Questions 4

Consider the following lines of code:

@array1 = ("apples", "oranges", "pears", "plums"); foreach (@array1) {print "$_\n"};

What is the result of these lines of code?

A. applesorangespearsplums

B. apples oranges pears plums

C. apples

D. apples oranges pears plums

Answer: D


New Questions 5

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

A. t text 20

B. t tex 19

C. t text 19

D. t tex 20

Answer: D


New Questions 6

Regular expressions are best used for which task?

A. To perform arithmetic functions

B. To determine whether a string matches a specific pattern

C. To perform spelling checks within text files

D. To output data to a text file

Answer: B


New Questions 7

Consider the following assignments:

$x = 9

$y = 7

$z = 5

Given these assignments, which one of the following expressions evaluates as true?

A. ($x - $y) != ($y - $z);

B. ($z * 2) <= $x;

C. ($y + $z + $x) = $y*3;

D. ($x 2) > $y;

Answer: C


New Questions 8

Which one of the following while statements uses correct syntax and expressions?

A. while {0} (print "OK");

B. while ($c != 99) {print "OK"}

C. while {$b eq "OK"} (print "$a++");

D. while ($_) Do {print "OK");

Answer: B


New Questions 9

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?

A. The code will output the following: 1 2 3 4 5

B. The code will output the following: 2 4 1 5 3

C. The code will output the following: 2 1 3 4 5

D. The code will output the following: 2 4 1 3

Answer: B


New Questions 10

Consider the following program code:

@array = (10, Masami, 10..13, Niklas); for ($i = 1; $i < $#array; $i++)

{

print($array[$i] );

}

What is the result of executing this program code?

A. The code will output the following: Masami 10 11 12 13

B. The code will output the following: 10 Masami 10 11 12 13

C. The code will output the following: 10 Masami 11 12 13 Niklas

D. The code will output the following: Masami 10 11 12 13 Niklas

Answer: A


New Questions 11

In Perl, packages are used for which task?

A. To label a program

B. To encrypt a program

C. To create new keywords

D. To define a namespace

Answer: D


New Questions 12

Which one of the following choices lists only valid expression operators?

A. + - ** // B. * ** / // C. ** / ++ % D. */ % -- **

Answer: C


New Questions 13

Consider the following program code:

if ("cool" =~ m/[cool]{4}/)

{

print("True ");

}

else

{

print("False ");

}

if ("cool" =~ m/[col]{4}/)

{

print("True ");

}

else

{

print("False ");

}

What is the output of this code?

A. False False

B. False True

C. True False

D. True True

Answer: D


P.S. Easily pass 1D0-437 Exam with Examcollection Free Dumps & pdf vce, Try Free: http://www.examcollectionuk.com/1D0-437-vce-download.html ( New Questions)


START 1D0-437 EXAM