Perl Language Test Questions: Applicant who are Finding the Perl MCQ online quiz advised to use this. To know the perl MCQ online questions, candidate check the below questions. Perl is a general-purpose programming language originally developed for text manipulation. Now it is used for wide range of tasks adding system administration, web development, network programming, GUI development etc.
Table of Contents

(1). Login Details for Perl Language Test Questions
1. When you create a variable, you may assume it starts off containing_________
- The boolean value “false”
- 1
- You may not make any assumption
- A null string (or 0 arithmetically)
Answer: The boolean value “false”
2. In Perl, the words function and subroutines are used interchangeably_________
- False
- True
- None
- All the above
Answer: True
3. What will be the value in the variable $a after these two statements: $a = “Happy”; $a = “Sunday”;?
- “Happy”
- “Happy Sunday”
- “HappySunday”
- “Sunday”
Answer: “Sunday”
4. Scalar is denoted by_______in Perl
- ^
- $
- #
- %
Answer: $
5. When a string is used for numeral computations, perl converts it into_______
- floating point number
- character
- number
- boolean value
Answer: number
6. Which allows the user to scroll through the entire program line by line in Perl.
- Using the built-in debugger
- Using the strict pragma
- Using the built-in error
- Using the string pragma
Answer: Using the built-in debugger
7. Language which features rich text processing capabilities and flexibility is__________
- Ada
- Perl
- Visual Basic
- None
Answer: Perl
8. Command line arguments in Perl are stored in________
- Resource
- Scalar
- Array
- Hash
Answer: Array
9. Which of the following is used in perl?
- elsif
- else if
- elseif
- elif
Answer: elsif
10. Which function is used by perl for displaying the length of a string?
- len
- string
- length
- split
Answer: length
11. Scalar stores__________
- Double value
- Float value
- Single value
- Multiple value
Answer: Single value
12. What is the facility that allows nesting one select statement into another?
- subquerying
- binding
- nesting
- encapsulating
Answer: subquerying
13. When you’re pattern matching, you describe the pattern using____
- A template
- A MySQL select statement
- A string in double quotes
- A regular expression
Answer: A MySQL select statement
14. When the “require function loads?
- Both
- Runtime
- Compile time
- None
Answer: Runtime
15. The getdir command____________
- Reads a single file name from an open directory handle
- Only works after anopendir command
- Reads the rest of the file names from an open directory handle
- Is not a perl command
Answer: Is not a perl command
16. The Perl DBI is _____
- database integrity
- database inheritance
- database isolation
- database interface
Answer: database interface
17. The “+= is which type of operator?
- Arithmetic operators
- comparison operators
- Increment/ decrements operators
- Assignment operators
Answer: Assignment operators
18. Select comparison operator from the options.
- &&
- *=
- =
- !=
Answer: !=
19. Which of these is NOT available for Perl____________
- Individual and site licenses
- Perl, legally, for freeC
- Full documentation of the language which you can print out yourself
- A Caribbean cruise in 2006 on which you can meet some of the Perl gurus
Answer: Full documentation of the language which you can print out yourself
20. What will be printed by the code below? my $val = {}; print ref($val);
- Array
- empty value
- Scalar
- Hash
Answer: Hash
21. It is often more convenient to save perl program files with ____ extension
- awk
- .sh
- .pl
- .gp
Answer: .pl
22. What will display the list of warning messages regarding the code?
- Using the built-in debugger
- Strict pragma
- The -w Command-line argument
- None
Answer: Using the built-in debugger
23. Which function is used by perl for reversing a string?c
- reverse
- rev
- split
- substr
Answer: reverse
24. Which of the following statement repeats a statement or group of statements until a given condition becomes true. It tests the condition before executing the loop body?
- Compile time
- Runtime
- Both
- None
Answer: Runtime
25. How do you perform a forward declaration of a subroutine performed?
- sub name
- forward sub name
- forward name
- sub name {}
Answer: forward sub name
(2). How to Download for Perl Language Test Questions
- Watch the official website at gttctrg.com
- Select the result page.
- Need to given the login details.
- Check the GTTC Results.
You Can Also Check !!! | |
---|---|
Today Jobs Alert | TN Govt Jobs 2024 |
10th Pass Jobs 2024 | Central Govt Jobs |
12th Pass Jobs 2024 | Defence Jobs 2024 |
Degree Jobs | Railway Jobs |
Diploma Jobs | Bank Jobs |