Adblocker Detected
Quizack provides Online Quiz and Practice MCQs for Free. Please disable your Ad-Blocker so we can earn from ads and keep this project alive.
1. What is @INC?
2. You may call a subroutine called 'subrout' with arguments 'args', using:
3. How many scalars will the array @num have after the following command: my @days = qw (Sunday Monday Tuesday Wednesday Thursday Friday Saturday); my @num = (1..scalar @days);
4. What does the 'shift' function do?
5. What is the shebang?
6. How would you output the list of keys in a hash?
7. Does perl require variables be declared with a type? (ie: int, float, double, etc.)
8. $m=ucfirst('test'); What will be the output of $m?
9. lc function stands for?
10. You may force yourself to declare your variables by:
11. Which conditional statement is equivalent to 'if (!)'?
12. What can be used in PERL for communicating with an FTP server?
13. To remove any line-ending characters of each string in a @list, you use the function:
14. What is $_ ?
15. Which get you an array of all numbers matched in a string?
16. Unless it is the final statement in a block, every simple statement must end in:
17. Will perl be installed in Windows by default?
18. Which will check the script's syntax?
19. How can perl be called which gives the same functionality of 'use warnings'?
20. my $x=join(':','a','b') What will be the output of $x?
21. The for loop has few semicolon-separated expressions within its parentheses. These expressions function as:
22. Does Perl provide the defined function that allows you to check up if a variable has the undef value or not?
23. Can a pattern search be done in a split function in PERL?
24. How do you check the existence of a key in a hash?
25. The prototype symbol for a scalar is:
26. What code output? for ($count = 10; $count >= 1; $count--) { print '$count '; }
27. Ways one can run an Unix command?
28. What will $count= scalar keys %hashname; return?
29. What is a hash identified as?
30. What program do: foreach (reverse 1..10) { print; }
31. What does cdup () do in FTP?
32. Perl programs have this filehandle that is automatically opened:
33. Perl has a 'goto' command.
34. How can you install a module?
35. What's the preferable mode of executing one CGI script?
36. How do I call subroutines in Perl?
37. Why would I include strict in PERL code?
38. Which function is not used for array processing?
39. How do I close a file?
40. how would you execute a shell command from within a perl script
41. Which function is not used for hash processing?
42. How would you remove an element from hash?
43. What's is DBI and DBD?
44. What does Perl -e on the command line do?
45. Which would declare a global variable?
46. To execute blocks of code depending on whether a condition is met, you use:
47. $_ is used by default:
48. Which is not used for assigning a value to a variable?
49. To disable a database error, what parameter is set in the database initialization?
50. my @b=(1,2,3);my $a=@b;What will be the output of $a?
51. How do I lock a file?
52. Which regexe matche between 1 to 4 ab's followed by a tab and an integer number?
53. How do I numericaly sort an array in decending order?
54. Output of variable $firstVar after completion of this code line: $firstVar = substr('0123BBB789', 4, 3);
55. Can I call the method of a class without creating an object?
56. what is the default separator in split operator
57. How would you check which version of perl you are using?
58. What statement immediately ends a subroutine?
59. You can create a reference to an existing variable or subroutine by prefixing it with a:
60. What must be done to pass more than one array or hash into or out of a function and have them maintain their integrity?
61. Which regular expression deletes all tags specified as text enclosed by '<' and '>' from a document stored in a string, but deletes nothing else?
62. What's the system() success value?
63. The bitwise AND operator is:
64. What does append do in FTP?
65. What does $! show?
66. What is closure referencing?
67. To dereference $arrayref and then find the second element of that array, you use:
68. What option do I use to check the existence of a file?
69. How do I dereference a hash reference?
70. our @ISA (person); What does @ISA mean?
71. What function is used to check the length of a string?
72. Which is not used to control scoping?
73. I can capture output of any unix command through which process?
74. Which takes care of garbage collection?
75. How to create a super class object?
76. What does Perl -T do?
77. What will be the @arr value after executing: my @arr = grep { $_ > 0 } map { $_ * $_ } (1, -1, 2, -2);
78. What does chop do in PERL?
79. $@ is used in association with the ____ function.
80. What does unshift do?
81. All arguments to a subroutine are passed as:
82. What would be $x after my $x = '5' x '4';
83. Perl -I, what is 'l' meant for?
84. What is known as a reference to a function that is, usually, passed into another function for use?
85. How can you write content using CGI?
86. How do I create an object?
87. @values = ( 'value1', 'value2', ('value3', 'value4') ); How does Perl store the nested list shown above?
88. What do the @- and @+ arrays do?
89. What module is used to scrape contents from website?
90. A perl program file name prog.pl starts with the following line: #!/usr/bin/perl -w The file has execute permissions. What would be the difference between: (a) ./prog.pl (b) perl prog.pl
91. if $as==if $as=='x', then what is the output? print 'as'.'$as'.$as.''
92. How would I display an error during CGI application?
93. Perl stores numbers internally as:
94. 1 $a='cat'; 2 $$acatches='rat'; Which is equivalent to second line.?
95. ?!pattern means regular expression is:
96. Which list items of stat() returns the mode of the file?
97. What is a correct way to instantiate parallel processing in PERL?
98. What should be the output of @nums = (1..10); splice(@nums, 5,5,21..25)?
99. seek FILEHANDLE, POSITION, OPTION; What's meant by option value as 0 ?
100. What is %INC?
SAP
Windows Phone Development
Access
Actionscript 3
Active Directory
Adobe ColdFusion
Related MCQ's