Sail E0 Webinar

MCQs

Total Questions : 25 | Page 2 of 3 pages
Question 11. Scalar stores
  1.    Multiple value
  2.    Single value
  3.    Double value
  4.    Float value
 Discuss Question
Answer: Option B. -> Single value




Question 12. Which function is used by perl for reversing a string?
  1.    rev
  2.    reverse
  3.    split
  4.    substr
 Discuss Question
Answer: Option B. -> reverse




Question 13. When you're pattern matching, you describe the pattern using
  1.    A string in double quotes
  2.    A MySQL select statement
  3.    A regular expression
  4.    A template
 Discuss Question
Answer: Option B. -> A MySQL select statement




Question 14. Which of the following statement repeats a statement or group of statements until a given condition becomes true. It tests the condition before executing the loop body?
  1.    while
  2.    until
  3.    for
  4.    None of the above
 Discuss Question
Answer: Option B. -> until




Question 15. When the "require function loads?
  1.    Runtime
  2.    Compile time
  3.    Both
  4.    None
 Discuss Question
Answer: Option A. -> Runtime




Question 16. What is the facility that allows nesting one select statement into another?
  1.    nesting
  2.    binding
  3.    subquerying
  4.    encapsulating
 Discuss Question
Answer: Option C. -> subquerying




Question 17. Select comparison operator from the options.
  1.    *=
  2.    &&
  3.    !=
  4.    =
 Discuss Question
Answer: Option C. -> !=




Question 18. It is often more convenient to save perl program files with ____ extension
  1.    .gp
  2.    .sh
  3.    .awk
  4.    .pl
 Discuss Question
Answer: Option D. -> .pl




Question 19. What will be printed by the code below?
my $val = {};
print ref($val);
  1.    empty value
  2.    Array
  3.    Hash
  4.    Scalar
 Discuss Question
Answer: Option C. -> Hash




Question 20. The Perl DBI is ______________
  1.    database inheritance
  2.    database integrity
  3.    database interface
  4.    database isolation
 Discuss Question
Answer: Option C. -> database interface




Latest Videos

Latest Test Papers