Site MapHelpFeedbackMultiple Choice
Multiple Choice
(See related pages)

Click on the correct response for each question below.



1

If a variable x can have only one value, we can declare it in Perl as ____________.
A)singular $x;
B)my ($x);
C)My ($x);
D)myvar $x;
E)def $x;
2

We may specify the __________ statement at the top of the script to prevent Perl creating undeclared variables automatically.
A)Option Explicit
B)#!usr strict;
C)#!usr enforce;
D)&force_declaration;
E)use strict;
3

If a variable x can have only one value, we can declare it in Perl as ____________.
A)singular $x;
B)my ($x);
C)My ($x);
D)myvar $x;
E)def $x;
4

Which of the following operator should be used when we compare if a Perl scalar variable with string value is less than another Perl scalar with string value?
A)LT
B)LE
C)<
D)lessthan
E)le
5

Which of the following is the "Or" logical operator in Perl?
A)Or
B)!
C)&
D)&&
E)||







Sosinsky Programming The WebOnline Learning Center

Home > Chapter 12 > Multiple Choice Quiz