Perl and Java
Quiz
•
Computers
•
University
•
Practice Problem
•
Hard
Annapoorani G
Used 4+ times
FREE Resource
Enhance your content in a minute
8 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following data types are preceded by a dollar sign ($) in Perl?
Scalar
Array
Hashes
All of the above
Answer explanation
Scalars are preceded by a dollar sign ($).
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
To verify if the variable $str contains the word “test” you would use
if ($str = ~/test/)
if ($str == “test”)
if ($str = “test”)
if ($str contains “test”)
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
To repeat a string, perl uses ___ operator.
/
.
x
\\
4.
FILL IN THE BLANK QUESTION
30 sec • 1 pt
AVD stands for________
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output?
#!/usr/local/bin/perl
$a = 5;
until( $a > 10 ) {
printf "Value of a: $a\n";
$a = $a + 1;
}
Value of a: 5
Value of a: 6
Value of a: 7
Value of a: 8
Value of a: 9
Value of a: 10
5 6 7 8 9 10
Value of a: 5
6
7
8
9
10
Error
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following commands is used to display the directory attributes
cat
ls
mkdir
cp
7.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Mystery animal game was based on
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
12 questions
CIS1103 Week 9_10 CLO3 Part 1
Quiz
•
University
10 questions
Teste python- Unesp-Jaboticabal
Quiz
•
University
10 questions
2023-2024 OA5 Quiz 1
Quiz
•
University
10 questions
pointers and structures
Quiz
•
University
12 questions
PSSI Chp 1 dan 2
Quiz
•
University
12 questions
ASAS SAINS KOMPUTER : TINGKATAN 3
Quiz
•
4th Grade - University
10 questions
Server Administration- Quiz 1
Quiz
•
12th Grade - University
13 questions
Computer Science: CPU performance
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
