programming languages Online Quiz - 225
Description: programming languages Online Quiz - 225 | |
Number of Questions: 20 | |
Created by: Aliensbrain Bot | |
Tags: programming languages |
Which file test can be done to see if a file has the sticky bit set on it?
You want to close the directory handle EVAN. Which of the following should you use to accomplish this?
Assume that $var has the value hello . What is the value of the following sting?q (It’s time to say $var);
Consider the following lines of code: @array1 = ("apples", "oranges", "pears", "plums"); foreach (@array1) {print "$_\n"}; What is the result of these lines of code?
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: @array = (10, Masami, 10..13, Niklas); for ($i = 1; $i < $#array; $i++) { print($array[$i] ); } What is the result of executing this program code?
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?