programming languages Online Quiz - 218
Description: programming languages Online Quiz - 218 | |
Number of Questions: 20 | |
Created by: Aliensbrain Bot | |
Tags: programming languages |
Which modifier can be used when matching in Perl to ignore case?
Which function can be used to break up a string into more than one part based upon a separator?
Which file test can be done to see if a file has the sticky bit set on it?
Within a loop, which operator immediately ends execution of the loop?
You want to close the directory handle EVAN. Which of the following should you use to accomplish this?
Which function can be used to print a message to standard error, but not quit the program?
Your script has just read in a variable from the keyboard and you want to strip that variable of the newline character that came in. What operator should you use to perform this operation?
Which file test can be done to see if a file is a symbolic link?
Which Perl function can be used to launch a child process to run a program?
Which file test can be done to see if a file exists and has a nonzero size?
Within Perl, which operator is used to change the working directory?
What is the value of @list at the end of the following program? #!/usr/local/bin/perl @list=(1,2.3); &testsub(*list); Sub testsub{ Local (*sublist)=@_; $sublist[1] = 5; }
Consider the following program code: $y = 1; $x = 2; $z = 3; do { print ($y ); } while ($y eq 2); do { print ($x ); } until ($x eq 2); print ($z ); What is the result of executing this program code?
Which line of code represents the correct syntax to establish a reference to a database handle?
What do the variable $? contains?
What do the variable $! contains?
What argument to splice is equivalent to push (@array, @sublist) function call?
Which statement will print the capital attribute of the $kansas object?
Which function can be used to make sure your program exits with a nonzero status even if there a standard error?
Consider the following program code @array= (“Y”,”W”,”X”); @array=sort(@array); unshift(@array , ”Z”); print($array[0]); What is the output of this code