MCQGeeks
0 : 0 : 1
CBSE
JEE
NTSE
NEET
English
UK Quiz
Quiz
Driving Test
Practice
Games
Quiz
Computer Science
Perl
Quiz 2
1
2
3
4
5
6
7
8
9
10
Q.1
Which of the following code create a reference for a variable?
$ref = \$foo;
$ref = \@ARGV;
$ref = \%ENV;
$ref = \&PrintHash;
Q.2
Which of the following function opens a file in read-only mode?
open(DATA, "<file.txt");
open(DATA, ">file.txt");
open(DATA, "+>file.txt");
None of the above.
Q.3
Which of the following operator derefereces a variable?
--
-->
..
++
Q.4
Which of the following operator encloses a string with-in invert quotes?
q{ }
qq{ }
qx{ }
enclose{}
Q.5
Which of the following correctly describes Array data types in Perl?
These are simple variables. They are preceded by a dollar sign ($).
These are ordered lists of scalars that you access with a numeric index which starts with 0.
These are unordered sets of key/value pairs that you access using the keys as subscripts.
None of the above.
Q.6
Which of the following operator returns true if the left argument is stringwise equal to the right argument?
eq
ne
cmp
ge
Q.7
Which of the following operator checks if the value of two operands are equal or not, if values are not equal then condition becomes true?
==
!=
<=>
>
Q.8
How will you get the size of a Hash?
Using scalar context
using sizeof operator
Both of the above.
None of the above.
Q.9
Which of the following method sorts the LIST and returns the sorted array value?
splice [ SUBROUTINE ] LIST
split [ SUBROUTINE ] LIST
join [ SUBROUTINE ] LIST
sort [ SUBROUTINE ] LIST
Q.10
Which of the following variable context only happens inside quotes, or things that work like quotes?
Interpolative
List
Boolean
Void
0 h : 0 m : 1 s
1
2
3
4
5
6
7
8
9
10
Report Question
×
What's an issue?
Question is wrong
Answer is wrong
Other Reason
Want to elaborate a bit more? (optional)
Support mcqgeeks.com by disabling your adblocker.
×
Please disable the adBlock and continue.
Thank you.
Reload page