All Exams Test series for 1 year @ ₹349 only
Question

Which of the following wildcards is used for finding the files matching a pattern?

The correct answer is
*.[file extension]

Wildcard Use in File Pattern Matching

Wildcards are special characters used in commands and search queries to represent one or more characters. This allows users to find files based on patterns rather than exact names.

Understanding Wildcard Characters

  • Asterisk ($*$): This is the primary wildcard used to match zero or more characters. When used in a file pattern like $*.txt$, it finds all files ending with the $.txt$ extension, regardless of what comes before it.
  • Other Symbols: Characters like $/$, $-$, or $+$ have different meanings in file systems or command-line interfaces. They are not typically used as general wildcards for matching sequences of characters in filenames. For instance, $/$ often denotes a directory separator, and $-$ or $+$ might be used for command options or specific modes.

Therefore, the asterisk ($*$) is the correct wildcard for finding files that match a general pattern.

Was this answer helpful?

Important Questions from Computer Fundamentals or Terminologies

  1. A ______ can either be malware or hardware. The main purpose of this malware is to record the keys pressed by a user on the keyboard.  

  2. A ______ port transmits one bit of a byte at a time as a single stream of bits. It is meant for transmitting slow data over long distances.

  3. Which of the following is also known as a flash drive?

  4. ________ is a reading device that reads printed text by scanning it character by character. 

  5. Which of the following is not a magnetic disk?  

Need Expert Advice?

Start Your Preparation with Prepp Mobile App

Download the app from Google Play & App Store
Download the app from Google Play & App Store
Prepp Mobile App