Description: programming languages Online Quiz - 226 | |
Number of Questions: 20 | |
Created by: Aliensbrain Bot | |
Tags: programming languages |
Which function can be used to break up a string into more than one part based upon a separator?
Which modifier can be used when matching in Perl to ignore case?
Which function can be used to return such information about a file as its UID, GID, CTIME, etc.?
25 Which Perl function can be used to identify the first found occurrence of a substring?
Which command should be used to close the filehandle KAREN?
Which of the following commands should be used to open a filehandle named KAREN to an existing file named sw?
Which Perl function is used to change the name of a file?
What value do variables have before they are first assigned?
To convert a timestamp into a format more readable by a user, which function should you use?
Within a loop, which operator jumps to the end of the loop but does not exit the loop?
Which operator can be used to create private variables within a subroutine?
Which of the following will call a subroutine named "mom"?
Consider the following program code: %hash = (small => 8oz, medium => 16oz, large => 32oz); @keys = sort(keys(%hash)); for ($i = 0; $i < 3; $i++) { print($hash{$keys[$i]}\n); } What is the result of executing this program code?
If $string contains abcdefghijiklmdef , what will the following call return? rindex($string , "def", 11 );
Rather than using print, what is often used in Perl when formatting is important?
What is the default sort order in Perl?
What will the following statement return?
How can you include code from another file in your program?
Which file test can be done to see if a file is a socket?
Running your Perl scripts with a d switch will perform which task?