Perl and Java

Quiz
•
Computers
•
University
•
Hard
Annapoorani G
Used 4+ times
FREE Resource
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
8.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
#!/usr/bin/perl
%data = ('John Paul', 45, 'Lisa', 30, 'Kumar', 40);
print "\$data{'John Paul'} = $data{'John Paul'}\n";
print "\$data{'Lisa'} = $data{'Lisa'}\n";
print "\$data{'Kumar'} = $data{'Kumar'}\n";
What is the output of above code?
data{'John Paul'} = 45
data{'Lisa'} = 30
data{'Kumar'} = 40
$data{'John Paul'} = 45
$data{'Lisa'} = 30
$data{'Kumar'} = 40
\45=45
\30=30
\40=40
None of the above
Similar Resources on Wayground
11 questions
11 câu trắc nghiệm PHP

Quiz
•
University
5 questions
Quiz 6

Quiz
•
University
10 questions
Teste python- Unesp-Jaboticabal

Quiz
•
University
10 questions
Data Science

Quiz
•
University
10 questions
PSUC Lab CO1 Quiz

Quiz
•
University
10 questions
Laravel True or False Quiz 1

Quiz
•
University
10 questions
Quizizz Python Start one year 1 def and if

Quiz
•
University
10 questions
Programación Avanzada II - Parte 6

Quiz
•
University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University