Perl MCQ Quiz Hub

Perl Mcq Question Set 3

Choose a topic to test your knowledge and improve your Perl skills

1. Which is the basic data type of Perl?




2. How are scalars marked with?




3. Which among the following are Scalars supported by Perl?




4. Which operator is used to compare Strings in Perl?




5. Which mong the following statements are/is true? S1: Attempting to use string operations on numbers will raise warnings S2: Attempting to use number operations on non-numeric strings will raise warnings




6. Array References in Perl are _______




7. Which is true with respect to Array References in Perl?




8. Which operator is used to access the contents of Array References?




9. Scalar Reference is used in which scenarios? S1: Disambiguate a file name from file content S2: Disambiguate returned content from a returned error string




10. Which among the choices are/is false with respect to Arrays in Perl?




11. Which of the following is not a sigil in Perl?




12. Chhose the correct Statements: S1: Typeglobs are handled when dealing with files S2: Typeglob *foo holds references to the contents of global variables




13. Under which scenario & sigil is not used in Perl?




14. Which of the following acepts an expression in Perl?




15. Which of the statements are false with respect to Hash References in perl? S1: Hash references are scalars S2: Any changes made within the subroutine will be made to the original hash




16. In Perl, if the keys in Hash are not strings-then




17. How to access an element of %hash?




18. Which among the following helps to create hashes out of arrays?




19. When does hashes becomes true if used as boolean?




20. Which among the following esacpe sequence is not interpolated by Perl?




21. Which among the following statements are true? S1: Double quotes interpolate the enclosed string S2: Single quotes interpolate the enclosed string




22. Which of the following number evaluates to true in Perl?




23. Which of the following Strings evaluates to false in Perl?




24. use Time::Piece; is available in which version of Perl?




25. How to create a new datetime?




26. Which of the following conditional statements not supported by Perl?




27. Which keyword is used to create Subroutines in Perl?




28. When functions are to be treated as variables which sigil is mandatory?




29. What does the function does not output when use Data::Show; is used in Perl?




30. Which is false with respect to array and list relationship?




31. Which of the following usage of List is not allowed in Perl?




32. Choose the correct choice with respect to Perl S1: List can be assigned to hash s2: Hash can be used as list




33. Which operator is used in comparator function to compare strings?




34. Which operator is used in comparator function to compare numbers?




35. Which of the following is not true with respect to Sorting in Perl? (Version > 5.16)




36. What does the mode '>' write (trunc) does in Perl?




37. What does the '+>' file operation denote in Perl?




38. What does the '+>>' file operation denote in Perl?




39. Which among the following enables faster file read?