nerdexam
Android

AND-401 · Question #31

When creating a file using android.content.Context.openFileOutput("test.txt", 0), where is the file created?

The correct answer is B. /data/data/<package name>/files. See the full explanation below for the reasoning.

Question

When creating a file using android.content.Context.openFileOutput("test.txt", 0), where is the file created?

Options

  • A/data/app/<package name>/files
  • B/data/data/<package name>/files
  • C/system/app/<package name>/files
  • D/system/data/<package name>/files

How the community answered

(59 responses)
  • A
    3% (2)
  • B
    83% (49)
  • C
    10% (6)
  • D
    3% (2)

Community Discussion

No community discussion yet for this question.

Full AND-401 Practice