Deck 9: Perl and Cgi Programming

ملء الشاشة (f)
exit full mode
سؤال
In Perl,print;is equivalent to ____.

A)print "$_";
B)print "$";
C)print "_";
D)print "_$";
استخدم زر المسافة أو
up arrow
down arrow
لقلب البطاقة.
سؤال
The character sequence ____ quotes all following nonalphanumeric characters until \E is encountered.

A)\u
B)\U
C)\"
D)\Q
سؤال
The following example shows a(n)____ variable: %animals = ('Tigers',10,'Lions',20,'Bears',30);

A)array
B)scalar
C)hash
D)string
سؤال
The character sequence ____ forces the next character to uppercase.

A)\u
B)\U
C)\"
D)\Q
سؤال
Scalar variable names begin with a(n)____.

A)dollar sign ($)
B)asterisk (*)
C)pound sign (#)
D)exclamation sign (!)
سؤال
The .pe extension is typically used to indicate that the file is a Perl script.
سؤال
If the ____ option is not included,the Awk program uses the first command-line argument as its program.

A)-I
B)-i
C)-F
D)-f
سؤال
The convention is to use all uppercase letters for ____.

A)variables
B)constants
C)strings
D)filehandles
سؤال
____ are variables that store an ordered list of scalar values that are accessed with numeric subscripts,starting at zero.

A)Strings
B)Arrays
C)Lists
D)Hashes
سؤال
A(n)____ is a simple variable that holds a number or a string.

A)label
B)constant
C)scalar
D)identifier
سؤال
Perl is a(n)____ language,which means that statements are read and immediately executed.

A)interpreted
B)object-oriented
C)compiled
D)fourth generation
سؤال
To refer to a single element of a hash,you use the $ character before the variable name,followed by the key associated with the value in ____.

A)parentheses
B)curly brackets
C)square brackets
D)angle brackets
سؤال
All complete statements in Perl end with a(n)____.

A)colon
B)semicolon
C)comma
D)asterisk
سؤال
When processing the individual elements of an array,use the ____ character.

A)@
B)#
C)$
D)*
سؤال
____ are sequences of any types of characters (including numbers that are treated as characters rather than digits).

A)Scalars
B)Strings
C)Variables
D)Constants
سؤال
The value of a variable can change while a program runs.
سؤال
Awk is popular as a CGI tool for Web-based applications.
سؤال
The Awk program does not require the programmer to explicitly set up looping structures as does Perl.
سؤال
In Perl,double-quoted strings are not subject to interpolation.
سؤال
A(n)____ is a variable that represents a set of key-value pairs.

A)string
B)array
C)tuple
D)hash
سؤال
Match each item with a statement below.
a.\n
f.#
b.$name
g.==
c.@
h.%
d.\
i.ne
e.<>
a variable in Perl
سؤال
Match each item with a statement below.
a.\n
f.#
b.$name
g.==
c.@
h.%
d.\
i.ne
e.<>
used to perform a line feed
سؤال
Match each item with a statement below.
a.\n
f.#
b.$name
g.==
c.@
h.%
d.\
i.ne
e.<>
in Perl,precedes a hash variable,when it is assigned values
سؤال
The <> symbol is called the ____________________ operator.
سؤال
You can create a Web page using ____________________ (HTML).
سؤال
In HTML,all special codes contained inside angled brackets <> are ____.

A)commands
B)constants
C)tags
D)variables
سؤال
Match each item with a statement below.
a.\n
f.#
b.$name
g.==
c.@
h.%
d.\
i.ne
e.<>
in Perl,when it precedes a variable name,it indicates it should not be interpolated
سؤال
____________________ Language (Perl)is a free script language that runs on many operating systems,including UNIX,Linux,Windows,and Mac OS X.
سؤال
The name of the computer at the loopback address is ____.

A)localhost
B)host
C)default
D)root
سؤال
After you create a Web page,you can publish the page on a Web ____.

A)program
B)database
C)server
D)client
سؤال
Match each item with a statement below.
a.\n
f.#
b.$name
g.==
c.@
h.%
d.\
i.ne
e.<>
marks the beginning of a comment in Perl
سؤال
The <=> sort operator,known as the ____________________ operator,reduces coding requirements.
سؤال
Match each item with a statement below.
a.\n
f.#
b.$name
g.==
c.@
h.%
d.\
i.ne
e.<>
in Perl,tests two numeric values for equality
سؤال
____________________ are symbolic names that represent values stored in memory.
سؤال
The IP address ____ is the standard designation for loopback communications.

A)192.168.0.1
B)10.0.0.0
C)255.255.255.255
D)127.0.0.1
سؤال
In Perl,the logical OR operator is ____.

A)<>
B)<=>
C)||
D)|
سؤال
The ____ feature allows your UNIX or Linux system to access its own internal network configuration instead of an external network.

A)spaceship
B)loopback
C)netstat
D)ifconfig
سؤال
A(n)____________________ is text or an object that,when clicked,loads another document and displays it in the browser.
سؤال
Match each item with a statement below.
a.\n
f.#
b.$name
g.==
c.@
h.%
d.\
i.ne
e.<>
one of Perl's string relational operators
سؤال
Match each item with a statement below.
a.\n
f.#
b.$name
g.==
c.@
h.%
d.\
i.ne
e.<>
in Perl,precedes the name of an array when assigning it values
سؤال
What is a compiled language?
سؤال
What is a Web server?
سؤال
What is a floating-point value?
سؤال
What is CGI?
سؤال
What are the two parts of the code of a Web (HTML)page?
سؤال
What is a filehandle?
سؤال
How can you sort @somelist and store the result in @sortedlist?
سؤال
Describe the types of tasks in which Perl is frequently used.
سؤال
What is a subroutine?
سؤال
Match each item with a statement below.
a.\n
f.#
b.$name
g.==
c.@
h.%
d.\
i.ne
e.<>
returns the next line from a file (after it has been opened)
سؤال
How do you read input from the keyboard in Perl?
سؤال
What is a constant?
فتح الحزمة
قم بالتسجيل لفتح البطاقات في هذه المجموعة!
Unlock Deck
Unlock Deck
1/52
auto play flashcards
العب
simple tutorial
ملء الشاشة (f)
exit full mode
Deck 9: Perl and Cgi Programming
1
In Perl,print;is equivalent to ____.

A)print "$_";
B)print "$";
C)print "_";
D)print "_$";
A
2
The character sequence ____ quotes all following nonalphanumeric characters until \E is encountered.

A)\u
B)\U
C)\"
D)\Q
D
3
The following example shows a(n)____ variable: %animals = ('Tigers',10,'Lions',20,'Bears',30);

A)array
B)scalar
C)hash
D)string
C
4
The character sequence ____ forces the next character to uppercase.

A)\u
B)\U
C)\"
D)\Q
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 52 في هذه المجموعة.
فتح الحزمة
k this deck
5
Scalar variable names begin with a(n)____.

A)dollar sign ($)
B)asterisk (*)
C)pound sign (#)
D)exclamation sign (!)
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 52 في هذه المجموعة.
فتح الحزمة
k this deck
6
The .pe extension is typically used to indicate that the file is a Perl script.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 52 في هذه المجموعة.
فتح الحزمة
k this deck
7
If the ____ option is not included,the Awk program uses the first command-line argument as its program.

A)-I
B)-i
C)-F
D)-f
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 52 في هذه المجموعة.
فتح الحزمة
k this deck
8
The convention is to use all uppercase letters for ____.

A)variables
B)constants
C)strings
D)filehandles
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 52 في هذه المجموعة.
فتح الحزمة
k this deck
9
____ are variables that store an ordered list of scalar values that are accessed with numeric subscripts,starting at zero.

A)Strings
B)Arrays
C)Lists
D)Hashes
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 52 في هذه المجموعة.
فتح الحزمة
k this deck
10
A(n)____ is a simple variable that holds a number or a string.

A)label
B)constant
C)scalar
D)identifier
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 52 في هذه المجموعة.
فتح الحزمة
k this deck
11
Perl is a(n)____ language,which means that statements are read and immediately executed.

A)interpreted
B)object-oriented
C)compiled
D)fourth generation
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 52 في هذه المجموعة.
فتح الحزمة
k this deck
12
To refer to a single element of a hash,you use the $ character before the variable name,followed by the key associated with the value in ____.

A)parentheses
B)curly brackets
C)square brackets
D)angle brackets
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 52 في هذه المجموعة.
فتح الحزمة
k this deck
13
All complete statements in Perl end with a(n)____.

A)colon
B)semicolon
C)comma
D)asterisk
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 52 في هذه المجموعة.
فتح الحزمة
k this deck
14
When processing the individual elements of an array,use the ____ character.

A)@
B)#
C)$
D)*
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 52 في هذه المجموعة.
فتح الحزمة
k this deck
15
____ are sequences of any types of characters (including numbers that are treated as characters rather than digits).

A)Scalars
B)Strings
C)Variables
D)Constants
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 52 في هذه المجموعة.
فتح الحزمة
k this deck
16
The value of a variable can change while a program runs.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 52 في هذه المجموعة.
فتح الحزمة
k this deck
17
Awk is popular as a CGI tool for Web-based applications.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 52 في هذه المجموعة.
فتح الحزمة
k this deck
18
The Awk program does not require the programmer to explicitly set up looping structures as does Perl.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 52 في هذه المجموعة.
فتح الحزمة
k this deck
19
In Perl,double-quoted strings are not subject to interpolation.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 52 في هذه المجموعة.
فتح الحزمة
k this deck
20
A(n)____ is a variable that represents a set of key-value pairs.

A)string
B)array
C)tuple
D)hash
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 52 في هذه المجموعة.
فتح الحزمة
k this deck
21
Match each item with a statement below.
a.\n
f.#
b.$name
g.==
c.@
h.%
d.\
i.ne
e.<>
a variable in Perl
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 52 في هذه المجموعة.
فتح الحزمة
k this deck
22
Match each item with a statement below.
a.\n
f.#
b.$name
g.==
c.@
h.%
d.\
i.ne
e.<>
used to perform a line feed
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 52 في هذه المجموعة.
فتح الحزمة
k this deck
23
Match each item with a statement below.
a.\n
f.#
b.$name
g.==
c.@
h.%
d.\
i.ne
e.<>
in Perl,precedes a hash variable,when it is assigned values
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 52 في هذه المجموعة.
فتح الحزمة
k this deck
24
The <> symbol is called the ____________________ operator.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 52 في هذه المجموعة.
فتح الحزمة
k this deck
25
You can create a Web page using ____________________ (HTML).
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 52 في هذه المجموعة.
فتح الحزمة
k this deck
26
In HTML,all special codes contained inside angled brackets <> are ____.

A)commands
B)constants
C)tags
D)variables
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 52 في هذه المجموعة.
فتح الحزمة
k this deck
27
Match each item with a statement below.
a.\n
f.#
b.$name
g.==
c.@
h.%
d.\
i.ne
e.<>
in Perl,when it precedes a variable name,it indicates it should not be interpolated
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 52 في هذه المجموعة.
فتح الحزمة
k this deck
28
____________________ Language (Perl)is a free script language that runs on many operating systems,including UNIX,Linux,Windows,and Mac OS X.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 52 في هذه المجموعة.
فتح الحزمة
k this deck
29
The name of the computer at the loopback address is ____.

A)localhost
B)host
C)default
D)root
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 52 في هذه المجموعة.
فتح الحزمة
k this deck
30
After you create a Web page,you can publish the page on a Web ____.

A)program
B)database
C)server
D)client
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 52 في هذه المجموعة.
فتح الحزمة
k this deck
31
Match each item with a statement below.
a.\n
f.#
b.$name
g.==
c.@
h.%
d.\
i.ne
e.<>
marks the beginning of a comment in Perl
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 52 في هذه المجموعة.
فتح الحزمة
k this deck
32
The <=> sort operator,known as the ____________________ operator,reduces coding requirements.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 52 في هذه المجموعة.
فتح الحزمة
k this deck
33
Match each item with a statement below.
a.\n
f.#
b.$name
g.==
c.@
h.%
d.\
i.ne
e.<>
in Perl,tests two numeric values for equality
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 52 في هذه المجموعة.
فتح الحزمة
k this deck
34
____________________ are symbolic names that represent values stored in memory.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 52 في هذه المجموعة.
فتح الحزمة
k this deck
35
The IP address ____ is the standard designation for loopback communications.

A)192.168.0.1
B)10.0.0.0
C)255.255.255.255
D)127.0.0.1
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 52 في هذه المجموعة.
فتح الحزمة
k this deck
36
In Perl,the logical OR operator is ____.

A)<>
B)<=>
C)||
D)|
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 52 في هذه المجموعة.
فتح الحزمة
k this deck
37
The ____ feature allows your UNIX or Linux system to access its own internal network configuration instead of an external network.

A)spaceship
B)loopback
C)netstat
D)ifconfig
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 52 في هذه المجموعة.
فتح الحزمة
k this deck
38
A(n)____________________ is text or an object that,when clicked,loads another document and displays it in the browser.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 52 في هذه المجموعة.
فتح الحزمة
k this deck
39
Match each item with a statement below.
a.\n
f.#
b.$name
g.==
c.@
h.%
d.\
i.ne
e.<>
one of Perl's string relational operators
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 52 في هذه المجموعة.
فتح الحزمة
k this deck
40
Match each item with a statement below.
a.\n
f.#
b.$name
g.==
c.@
h.%
d.\
i.ne
e.<>
in Perl,precedes the name of an array when assigning it values
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 52 في هذه المجموعة.
فتح الحزمة
k this deck
41
What is a compiled language?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 52 في هذه المجموعة.
فتح الحزمة
k this deck
42
What is a Web server?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 52 في هذه المجموعة.
فتح الحزمة
k this deck
43
What is a floating-point value?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 52 في هذه المجموعة.
فتح الحزمة
k this deck
44
What is CGI?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 52 في هذه المجموعة.
فتح الحزمة
k this deck
45
What are the two parts of the code of a Web (HTML)page?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 52 في هذه المجموعة.
فتح الحزمة
k this deck
46
What is a filehandle?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 52 في هذه المجموعة.
فتح الحزمة
k this deck
47
How can you sort @somelist and store the result in @sortedlist?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 52 في هذه المجموعة.
فتح الحزمة
k this deck
48
Describe the types of tasks in which Perl is frequently used.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 52 في هذه المجموعة.
فتح الحزمة
k this deck
49
What is a subroutine?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 52 في هذه المجموعة.
فتح الحزمة
k this deck
50
Match each item with a statement below.
a.\n
f.#
b.$name
g.==
c.@
h.%
d.\
i.ne
e.<>
returns the next line from a file (after it has been opened)
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 52 في هذه المجموعة.
فتح الحزمة
k this deck
51
How do you read input from the keyboard in Perl?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 52 في هذه المجموعة.
فتح الحزمة
k this deck
52
What is a constant?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 52 في هذه المجموعة.
فتح الحزمة
k this deck
locked card icon
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 52 في هذه المجموعة.