aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • Perl Programming Fundamentals
  • What will the following statement return?
Multiple choice technology programming languages

What will the following statement return?

  1. grep(! /^ !/, @array);

  2. Every non empty list element

  3. Every list element that does not start with an exclamation mark.

  4. Every list element.

Reveal answer Fill a bubble to check yourself
B Correct answer

Keep practicing — related questions

  • Assume @list contains (“1”, “2”, “3”, “4”, “5” ). What is the content of @list after the following statemen...
  • Assume @list contains (“1”, “2”, “3”, “4”, “5” ). What is the content of @list after the following statemen...
  • How will you search for the character '\' in a file ?
  • Which of the following repeater operators, in extended grep command, means the preceding item will be match...
  • Consider the following lines of code: @array1 = ("apples", "oranges", "pears", "plums"); foreach (@array1) ...
  • Consider the following lines of code: @array1 = ("apples", "oranges", "pears", "plums"); foreach (@array1) ...
  • /abc(?!def)/ matches
  • If there is more than one statements inside the loop, the statement should be enclosed within _____.
Play the full quiz 🎤 Practise this topic out loud
Advertisement
© Aliensbrain | all rights reserved
  • About
  • Contact
  • Terms and Condition
  • Privacy Policy