Tutor Marked Assignment PL TMA-01
In a Nutshell - CIW Course Section 2 Part B
PL TMA-01 - CD Access Code: not required
Q1. What does "Perl" stand for?
- a) Programming Extraction Recursive Language
- b) Practical Extraction Recursive Language
- c) Programming Extraction Report Language
- d) Practical Extraction Report Language
Q2. The Perl Interpreter on your workstation must be ________ with the platform you are using or it will not be able to read the Perl language.
- a) Comparable
- b) Compiled
- c) Compatible
- d) Continuous
Q3. Which of the following statements are correct?
- a) Interpreted code is typically quicker to develop than compiled code
- b) Compiled code is typically quicker to develop than interpreted code
- c) Interpreted code runs quicker than compiled code
- d) Compiled code runs quicker than interpreted code
Q4. The shebang line is a Perl statement that specifies where the Perl interpreter can be found on your system.
- a) True
- b) False
Q5. Which of the following Perl statements uses the correct syntax to display the text "Hello World" on the screen?
- a) print (Hello World);
- b) print "Hello World";
- c) print ("Hello World")
- d) print ("Hello World");
Q6. All meta-characters begin with which character?
- a) Forward slash
- b) Semicolon
- c) Backward slash
- d) Quotation mark
Q7. A scalar variable is always named beginning with which character?
- a) Dollar sign
- b) Pound sign
- c) Backward slash
- d) Quotation mark
Q8. The equals sign is a unary operator.
- a) True
- b) False
Q9. Which type of operator is the minus sign (-)?
- a) Binary
- b) Unary
- c) Both
Q10. What would be displayed by the following Perl statement?
print ("29" + 17);
- a) 2917
- b) 46
- c) 29
- d) 17
Q11. What is STDIN?
- a) A filename
- b) A filehandle
- c) A file type
- d) A function
Q12. What character is automatically appended to user input retrieved from STDIN?
- a) \m
- b) \a
- c) \r
- d) \n
Q13. Which Perl function strips the automatically appended character from the end of user input retrieved by STDIN?
- a) champ
- b) chomp
- c) chimp
- d) chump
Q14. When retrieving a line of user input, which characters should enclose STDIN?
- a) { and }
- b) ( and )
- c) < and >
- d) " and "
Q15. Perl is often used by Web developers to create CGI applications. What does "CGI" stand for?
- a) Computing Gateway Internet
- b) Common Gateway Internet
- c) Computing Gateway Interface
- d) Common Gateway Interface
