Pass the CIW Master CIW Enterprise Developer 1D0-437 Questions and answers with CertsForce

Viewing page 3 out of 5 pages
Viewing questions 21-30 out of questions
Questions # 21:

In Perl, packages are used for which task?

Options:

A.

To label a program


B.

To encrypt a program


C.

To create new keywords


D.

To define a namespace


Expert Solution
Questions # 22:

Running your Perl scripts with a d switch will perform which task?

Options:

A.

Invoke the Perl debugger


B.

Send standard error to a file


C.

Disable breakpoints


D.

Display a stack trace


Expert Solution
Questions # 23:

Consider the following program code:

@array = ("one", "two");

push(@array, "three");

shift(@array);

unshift(@array, "four");

pop(@array);

print($array[0]);

What is the output of this code?

Options:

A.

one


B.

two


C.

three


D.

four


Expert Solution
Questions # 24:

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?

Options:

A.

10


B.

20


C.

30


D.

40


Expert Solution
Questions # 25:

Consider the following command:

perl runme.pl arg1 arg2 arg3

Given this command issued on the command line, what is the value of @ARGV?

Options:

A.

arg1


B.

runme.pl


C.

arg1 arg2 arg3


D.

2


Expert Solution
Questions # 26:

Which of the following describes the functionality of the DBI tables method?

Options:

A.

The tables method returns a list of all system tables in a database.


B.

The tables method returns a list of all user-defined tables in a database.


C.

The tables method returns a list of all tables in a database.


D.

The tables method returns a list of all related tables in a database.


Expert Solution
Questions # 27:

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.

t tex

19


C.

t text

19


D.

t tex

20


Expert Solution
Questions # 28:

Which of the following tasks is the least effective in reducing errors in Perl scripts?

Options:

A.

Writing pseudo-code before beginning the script


B.

Writing modular code


C.

Declaring and initializing variables


D.

Using the no strict <'refs' | 'vars' | 'subs'>; commands in the code


Expert Solution
Questions # 29:

Consider the following program code:

$x = 5;

$y = 10;

while (++$x < 10 && ++$y < 15)

{

print ($x $y );

}

print ($x $y );

What is the result of executing this program code?

Options:

A.

The code will output the following:

6 11 7 12 8 13 9 14 10 15


B.

The code will output the following:

6 11 7 12 8 13 9 14 10 14


C.

The code will output the following:

5 10 6 11 7 12 8 13 9 13


D.

The code will output the following:

5 10 6 11 7 12 8 13 9 14


Expert Solution
Questions # 30:

Which of the following choices demonstrates the correct syntax to pass the argument $arg2 to the subroutine getpass?

Options:

A.

getpass($arg2);


B.

call &getpass($arg2);


C.

sub &getpass($arg2);


D.

call getpass($arg2);


Expert Solution
Viewing page 3 out of 5 pages
Viewing questions 21-30 out of questions