Which of the following characters is NOT allowed in a filename when renaming in Windows?

This question was previously asked in
RRB NTPC Graduate Level CBT-I Official Paper (Held On: 06 Jun, 2025 Shift 1)
View all RRB NTPC Papers >
  1. # (hash)
  2.  _ (underscore)
  3. ? (question mark)
  4.  - (hyphen)

Answer (Detailed Solution Below)

Option 3 : ? (question mark)
Free
RRB NTPC Graduate Level Full Test - 01
2.4 Lakh Users
100 Questions 100 Marks 90 Mins

Detailed Solution

Download Solution PDF

The correct answer is ? (question mark).

Key Points

  • The question mark (?) is one of the characters prohibited in filenames in Windows operating systems.
  • Other restricted characters include \ / : * ? " < > |, as these are reserved for system functions or file path navigation.
  • Windows uses these special characters to perform certain operations, such as separating directories (/) or indicating a wildcard (*).
  • If you attempt to include a restricted character while renaming a file, Windows will display an error message preventing the action.
  • These restrictions are enforced to ensure compatibility and avoid conflicts within the file system.

Additional Information

  • Filename Restrictions in Windows:
    • Windows filenames cannot exceed 255 characters, including the file path.
    • Filenames cannot end with a period (.) or a space ( ).
    • Reserved names like CON, AUX, NUL, COM1 to COM9, and LPT1 to LPT9 are also prohibited.
  • Wildcard Characters:
    • Wildcards like * and ? are used to represent multiple or single characters in searches.
    • Including these in filenames can interfere with file search or system commands.
  • File Path Syntax:
    • Windows uses \ as a directory separator, distinguishing file paths.
    • Other characters like : are reserved for drives (e.g., C:\).
  • Cross-Platform Compatibility:
    • Some characters allowed in other operating systems (e.g., Linux) may still be prohibited in Windows.
    • Developers often avoid restricted characters to ensure portability across platforms.
Latest RRB NTPC Updates

Last updated on Jul 19, 2025

-> RRB NTPC Under Graduate Exam Date 2025 has been released on the official website of the Railway Recruitment Board.

-> The RRB NTPC Admit Card will be released on its official website for RRB NTPC Under Graduate Exam 2025.

-> CSIR NET City Intimation Slip 2025 Out @csirnet.nta.ac.in

-> HSSC CET Admit Card 2025 has been released @hssc.gov.in

-> Candidates who will appear for the RRB NTPC Exam can check their RRB NTPC Time Table 2025 from here. 

-> The RRB NTPC 2025 Notification released for a total of 11558 vacancies. A total of 3445 Vacancies have been announced for Undergraduate posts like Commercial Cum Ticket Clerk, Accounts Clerk Cum Typist, Junior Clerk cum Typist & Trains Clerk.

-> A total of 8114 vacancies are announced for Graduate-level posts in the Non-Technical Popular Categories (NTPC) such as Junior Clerk cum Typist, Accounts Clerk cum Typist, Station Master, etc.

-> Prepare for the exam using RRB NTPC Previous Year Papers.

-> Get detailed subject-wise UGC NET Exam Analysis 2025 and UGC NET Question Paper 2025 for shift 1 (25 June) here

->Bihar Police Driver Vacancy 2025 has been released @csbc.bihar.gov.in.

Get Free Access Now
Hot Links: teen patti flush dhani teen patti lotus teen patti