Operating System Solved MCQs computer science

By: Prof. Dr. Fazal Rehman | Last updated: May 30, 2025

30
Score: 0
Attempted: 0/30
Subscribe
1. : What do we use to test whether Perl is in your PATH?



2. : Which function is used to delete the elements from the right of the array?



3. : Perl is what of the grep, tr, sed and awk?



4. : What is used to loop in a list?



5. : With what extension is it convenient to save Perl program files?



6. : Which function do we use to remove the last character from a line?



7. : To identify a word character, the escape character used is_______



8. : The Perl variables don’t have any types and any initializations.


9. : What is the most powerful filter?



10. : To handle the substitutions in Perl, we use___________



11. : Which of the following functions returns the first occurrence of the character in the string?



12. : Which function do we use for extracting a substring?



13. : Which operator does Perl use to repeat a string?



14. : To display the length of a string, Perl uses what function?



15. : To reverse a string, Perl uses which function?



16. : When we use string for numeral computations, Perl converts it into what?



17. : What is the value of an undefined variable?



18. : Concatenation operators are______________



19. : What is used to split the line or expression into fields?



20. : What is referred to as the default variable?



21. : To select current line number which operator can be used?



22. : What is the range operator?



23. : First ten integer values to the array @x=(1..10) are assigned by this command.


24. : Last index of the array is signified by which prefix to the array name?



25. : Which function is used for adding elements to the left side of the array?



26. : Which function is used for adding elements to the right side of the array?



27. : perl -e ‘print “UNIX” x 10 . “\n”;’ — This displays:



28. : Functionalities of push, pop, unshift and shift are combined by which function?



29. : Which function is used to join lists?



30. : Which function is used to delete the elements from the left of the array?



Leave a Comment

All Copyrights Reserved 2025 Reserved by T4Tutorials