Skip to main content
  1. Public practice questions
  2. AZ-104 Practice Exams | Azure Administrator Associate
  3. AZ-104 Practice Exam 7

Question 5 — AZ-104 Practice Exam 7

Which file type would not be matched by the command ls *.[jp]*? (Select one answer)

  1. .jpg

  2. .jpeg

  3. .png

  4. .gif

Correct answers

  1. .gif

Explanations

Correct:
.gif: The bracket expression [jp] only matches j or p, so .gif files are excluded.

Wrong:
.jpg: The pattern matches .jpg because of j.
.jpeg: The pattern matches .jpeg because it starts with j.
.png: The pattern matches .png because of p.