|
Question 1. Which choice best demonstrates how the print statement may be used to print HTML code? A. print HTML>>; B. print ; C. print ("HTML">; D. print ("HTML">; Answer: B Question 2. Which method is not effective for protecting server scripts? A. Assigning the cgi-bin directory read-only permissions. B. Running the Web server under a user account with few permissions. C. Using CGI wrapper scripts. D. Saving scripts with only .exe, .cgi or .pl extensions. Answer: C Question 3. Which one of the following statements allows for variable substitution? A. $sql=qq{SELECT * FROM MyDatabase WHERE state='$state'}; B. $sql=q{SELECT * FROM MyDatabase WHERE state='$state'}; C. $sql=q{SELECT * FROM MyDatabase WHERE state=$state}; D. $sql=qq{SELECT * FROM MyDatabase WHERE state=$state}; Answer: A Question 4. Which one of the following lists of special characters denotes a space character in pattern matching? A. \r \t \W \D B. \r \t \n \f C. \^ . * + D. \s \D \W \f Answer: B Question 5. List context versus scalar context is determined by which one of the following? A. The compiler B. The debugger C. The interpreter D. The environment Answer: A Question 6. Which choice best demonstrates how to add a name-value pair to form data? A. $object = append( name=>"state", value=>"New York"); B. $object = add( -name=>"state", -value=>"New York"); C. $object-> append( -name=> "state", -value=>"New York"); D. 4object ==> add( -name=>"state", -value=>"New York"); Answer: C Question 7. The file mode specifies which one of the following? A. The access permissions. B. The inode number. C. The file's owner. D. How the file is opened. Answer: D Question 8. The CGI.pm module can be used to perform which one of the following tasks? A. GET or POST data. 3 B. Load external variables. C. Read large amounts of text into the script. D. Access environment variables. Answer: D Question 9. Given $_ = "alphabetais", consider the following substitution: s/a+.*/greektome/gi; What is the new value of $_ after this substitution? A. isgreektome B. ISGREEKTOME C. greektome D. alphabetais Answer: D Question 10. Which choice demonstrates the correct syntax for the DELETE command? A. DELETE MyDatabase WHERE VALUES state='Kentucky' AND color='blue' B. DELETE MyDatabase WHERE state='Kentucky' AND color='blue' C. DELETE FROM MyDatabase WHERE state='Kentucky' AND color='blue' D. DELETE state='Kentucky' AND color='blue' FROM MyDatabase Answer: C
Copyright © 2004 CertsBraindumps.com Inc. All rights reserved.