
Minimal Perl Quiz
Authored by Michal Grygierzec
Computers
Professional Development
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which program behaves differently
perl -w -e 'while (<>) { print; }' file file2
perl -wnl -e '' file file2
perl -wnl -e 'print;' file file2
perl -wpl -e '' file file2
2.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Which special variable counts records as they are processed?
$"
$!
$.
$&
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
One of the variables is named incorrectly during declaration:
$happyScalar
%sadHash
$quietArray
@grumpyArray
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which variable represents file handle?
ARGV
$ARGV
@GVAR
@ARGV
5.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is the output of the program given arguments: A B C
$,='/';
print @ARGV;
A B C
A,B,C
ABC
A/B/C
6.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Fiil in the _____ to accesses the input record’s third colon-separated field:
perl –wnlaF':' –e 'print _____;' fileX
$F[-2]
$F[2]
$F[3]
$F[$.]
7.
MULTIPLE SELECT QUESTION
30 sec • 2 pts
Select valid match operator usage examples:
$data =~ m%perl # PeRl too! %xi
$F[-1] =~ /^carrot$|garlic|^potato/
/\Q** $9.99 Sale! **\E/
$data =~ m%perl # PeRl% too! %gi
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
20 questions
News and computers today revision
Quiz
•
4th Grade
20 questions
IMRTD - 02 - Infraestructura de red y telecomunicaciones - 01
Quiz
•
7th Grade
20 questions
AIB_2Q
Quiz
•
12th Grade
20 questions
PENILAIAN HARIAN SISTEM KOMPUTER
Quiz
•
8th Grade
20 questions
Informatika_Kelas 8
Quiz
•
8th Grade
20 questions
ATS INFORMATIKA KELAS 4
Quiz
•
KG - University
20 questions
Pretest TIK
Quiz
•
10th Grade
20 questions
Elemen TIK
Quiz
•
7th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
10 questions
Probability Practice
Quiz
•
4th Grade
15 questions
Probability on Number LIne
Quiz
•
4th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
6 questions
Appropriate Chromebook Usage
Lesson
•
7th Grade
10 questions
Greek Bases tele and phon
Quiz
•
6th - 8th Grade
Discover more resources for Computers
20 questions
Black History Month Trivia Game #1
Quiz
•
Professional Development
20 questions
90s Cartoons
Quiz
•
Professional Development
12 questions
Mardi Gras Trivia
Quiz
•
Professional Development
7 questions
Copy of G5_U5_L14_22-23
Lesson
•
KG - Professional Dev...
12 questions
Unit 5: Puerto Rico W1
Quiz
•
Professional Development
42 questions
LOTE_SPN2 5WEEK2 Day 4 We They Actividad 3
Quiz
•
Professional Development
15 questions
Balance Equations Hangers
Quiz
•
Professional Development
31 questions
Servsafe Food Manager Practice Test 2021- Part 1
Quiz
•
9th Grade - Professio...