Home > Unix Programming > Quizzes > Unix Basics Practice Test: Perl
Unix Basics Practice Test: Perl
Fast practice, instant feedback. Timer auto-submits when time’s up.
Avg score: 77% Most missed: “perl also supports use of for loop in the following manner. | for($i=0;$i”
Perl is a general-purpose programming language that can be used for a wide variety of tasks, including text processing, data manipulation, and web development. Perl is a very powerful language, and it offers a wide range of features that make it well-suited for complex tasks. Here are some of the common operations that can be performed using Perl: Text manipulation: Perl can be used to perform a wide variety of text manipulation tasks, such as searching and replacing text, extracting data from text, and formatting text. Data manipulation: Perl can be used to perform a wide variety of data... Show more
Unix Basics Practice Test: Perl
Time left 00:00
25 Questions

1. Which one of the following is the most powerful filter?
2. Which escape character is used for identifying a word character?
3. We can specify filenames in command line using perl.
4. To add elements to the right side of the array ____ function is used.
5. A perl program runs in a special interpretive mode.
6. When a string is used for numeral computations, perl converts it into ___
7. For deleting the elements from the left of the array ___ function is used.
8. To test whether perl is in your PATH, use ____
9. ___ function is used for joining lists.
10. ___ function is used for removing the last character from the line.
11. Which of the following are concatenation operators?
12. For looping in a list, ____ is used.
13. ___ operator is used for selecting current line number.
14. It is often more convenient to save perl program files with ____ extension.
15. The ___ prefix to an array name signifies the last index of the array.
16. ___ function returns the first occurrence of a character in a string.
17. To repeat a string, perl uses ___ operator.
18. Which function can combine the functionalities of push, pop, unshift and shift?
19. For splitting a line or expression into fields, __ is used.
20. Which of the following is referred to as default variable?
21. The command @x=(1. .10) will assign first ten integer values to the array ‘a’.
22. Which function is used by perl for reversing a string?
23. To add elements to the left side of the array ____ function is used.
24. perl variables have no type and no initialization.
25. We can use find command for testing files with perl.