下载此文档

perl 期末考试题.doc


文档分类:资格/认证考试 | 页数:约15页 举报非法文档有奖
1/ 15
下载提示
  • 1.该资料是网友上传的,本站提供全文预览,预览什么样,下载就什么样。
  • 2.下载该文档所得收入归上传者、原创者。
  • 3.下载的文档,不会出现我们的网址水印。
1/ 15 下载此文档
文档列表 文档介绍
PERL复习题

一、选择题 B
1. What is the simplest type of data that Perl can work with?
A element
B scalar
C vector
ponent
2. Which operator can be used to take the bottom item from an array?
A pop
B push
C pull
D plant
3. Which operator is used to arrange items in character order?
A ascend
B sort
C arrange
D descend
4. Rather than using print, what is often used in Perl when formatting is important?
A printf
B format
C align
D show
5. Which modifier can be used when matching in Perl to ignore case?
A s
B v
C i
D c
6. Which operator can be used to break up a string into more than one part based upon a
separator?
A chop
B split
C divide
D parse
7. What option do you use when starting Perl to tell it to run in warning mode? __________
(Fill in the blank.)
8. Which control structure can be used to execute only a condition is false?
A until
B unless
C while
D without
9. Which of the mands should be used to open a filehandle named KAREN to an
existing file named sw?
A open KAREN “>sw”; B open KAREN, “>sw”;
C open “sw” KAREN;
D open “>sw”, KAREN;
10. Within Perl, which operator is used to change the working directory?
A cd
B chdir
C pwd
D wd
11. Which operator can be used to access the first item in an array?
A shift
B start
C right$
D left$
12. Within a loop, which operator immediately ends execution of the loop?
A next
B last
C redo
D leave
13. Which function can be used to make sure your program exits with a nonzero status even if
there a standard error?
A hash
B noexit
C nozero
D die
14. Which of the following operators work most like simple searching/pattern matching?
A /f
B /g
C s///
D m//
15. Which keyword is used in Perl to define a subroutine?
A branch
B sub
C split
D make
16. You want to close the directory handle EVAN. Which of the following should you use to
plish this?
A close EVAN;
B closedir EVAN;
C close_dir

perl 期末考试题 来自淘豆网www.taodocs.com转载请标明出处.

非法内容举报中心
文档信息
  • 页数 15
  • 收藏数 0 收藏
  • 顶次数 0
  • 上传人 szh187166
  • 文件大小 0 KB
  • 时间2013-01-08
最近更新