nerdexam
Android

OA0-002 · Question #144

When executing android.content.Context.openFileOutput("sample.txt", 0), which path is the file stored in?

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

Question

When executing android.content.Context.openFileOutput("sample.txt", 0), which path is the file stored in?

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

(24 responses)
  • A
    13% (3)
  • B
    75% (18)
  • C
    4% (1)
  • D
    8% (2)

Community Discussion

No community discussion yet for this question.

Full OA0-002 Practice