

















































































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


















































































Question 1. Which Android directory typically contains an app’s private SQLite databases? A) /sdcard/Android/data/ B) /data/data/<package_name>/databases/ C) /system/app/ D) /data/local/tmp/ Answer: B Explanation: Each installed Android app receives a private data directory under /data/data/<package_name>/ where its databases are stored in the “databases” sub‑folder. Question 2. In iOS, where are an app’s sandboxed files, such as its SQLite database, stored? A) /var/mobile/Library/Preferences/ B) /private/var/mobile/Containers/Data/Application/
Explanation: Property List files (.plist) are native to iOS and macOS, storing key‑value data in binary or XML format. Question 4. When manual decoding of an extracted blob reveals an “unknown” format, which of the following is the best first step? A) Delete the blob and continue. B) Run the blob through a hex editor to look for magic numbers. C) Assume it is encrypted and move on. D) Convert the blob to base64. Answer: B Explanation: Examining the raw bytes for known signatures (magic numbers) helps identify the file type before applying further analysis. Question 5. In reverse engineering an Android APK, which tool can extract the compiled Java bytecode into readable source? A) ADB B) Dex2jar + JD‑GUI C) Fastboot D) SQLite Answer: B Explanation: Dex2jar converts Dalvik bytecode (.dex) to a Java .jar, which can then be opened with JD‑GUI for decompilation. Question 6. What is the primary purpose of the Android “assets” folder in an APK? A) Store compiled native libraries. B) Hold raw files that the app can read at runtime.
Question 9. When analyzing a SQLite rollback journal, what does the presence of a “BEGIN” marker indicate? A) The database was opened in read‑only mode. B) A transaction was started but not yet committed. C) The journal is corrupted. D) The database is encrypted. Answer: B Explanation: “BEGIN” marks the start of a transaction; if no matching “COMMIT” is found, the transaction was incomplete. Question 10. Which encoding is used by default for text columns in a SQLite database on Android? A) UTF‑16LE B) UTF‑ 8 C) ASCII D) UTF‑ 32 Answer: B Explanation: SQLite stores TEXT as UTF‑8 by default unless the database was created with a different encoding pragma. Question 11. A BLOB column contains an embedded PNG image. Which hex signature would confirm its presence? A) 89 50 4E 47 0D 0A 1A 0A B) FF D8 FF E C) 42 4D D) 25 50 44 46 Answer: A
Explanation: PNG files start with the 8‑byte signature 89 50 4E 47 0D 0A 1A 0A. Question 12. When a SQLite database file is corrupted, which command can attempt to recover as much data as possible? A) sqlite3 .recover B) sqlite3 .dump C) sqlite3 .integrity_check D) sqlite3 .recover (using the .recover extension) Answer: D Explanation: The .recover extension (available in recent SQLite builds) tries to rebuild tables from the raw pages of a damaged file. Question 13. VarInt encoding in SQLite is used to store which of the following? A) Page size B) Record length and rowid values C) Column names D) File header flags Answer: B Explanation: SQLite encodes integers (e.g., rowids, payload sizes) as variable‑length integers to save space. Question 14. To reconstruct a user’s messaging activity across two tables (users and messages), which SQL clause is essential? A) GROUP BY B) HAVING C) INNER JOIN on user_id
C) pydb D) dbapi Answer: A Explanation: The sqlite3 module, part of the standard library, implements the DB‑API 2.0 for SQLite. Question 18. To convert a Cocoa timestamp (seconds since 2001‑ 01 ‑01) to a readable date in Python, which function is appropriate? A) datetime.fromtimestamp() B) datetime.utcfromtimestamp() with offset of 978307200 seconds C) time.ctime() D) datetime.strptime() Answer: B Explanation: Cocoa timestamps start at 2001‑ 01 ‑01; adding the offset (978307200 seconds) to the value and then using fromtimestamp yields the correct date. Question 19. Which Python library can parse binary .plist files into native objects? A) json B) xmltodict C) biplist D) csv Answer: C Explanation: The biplist library reads both binary and XML Property List files, returning Python dictionaries, lists, etc. Question 20. In an object‑oriented forensic script, what is the primary advantage of defining a “Message” class?
A) It reduces the size of the script. B) It allows encapsulation of parsing logic and attributes for each message. C) It automatically encrypts the data. D) It speeds up SQLite queries. Answer: B Explanation: A class groups related data (sender, timestamp, body) and methods (e.g., format_output), improving code readability and reuse. Question 21. The XACT Python API is used for which purpose in MSAB investigations? A) To flash Android devices. B) To write custom scripts that interact directly with the MSAB forensic engine. C) To bypass device encryption. D) To generate hash values only. Answer: B Explanation: XACT provides programmatic access to MSAB’s core functions, enabling automation of data extraction and parsing. Question 22. When preparing data for import into XAMN Spotlight, which format is preferred for timestamps? A) Unix epoch in seconds B) ISO‑8601 string (e.g., 2023‑ 04 ‑01T12:34:56Z) C) Windows FILETIME D) Human‑readable “MM/DD/YYYY” only Answer: B Explanation: XAMN expects timestamps in ISO‑8601 format to correctly place events on the timeline.
Explanation: The integrity_check pragma scans the database for corruption, reporting any problems found. Question 26. Which of the following best describes the role of the “shared‑memory” (.shm) file in WAL mode? A) It stores the actual data changes. B) It tracks lock states and checkpoint information. C) It contains a backup of the main database. D) It is a temporary log of deleted rows. Answer: B Explanation: The .shm file holds semaphore information used by SQLite processes to coordinate access and checkpoint progress. Question 27. When a forensic analyst encounters a SQLite column storing data as a hex‑encoded string, what is the first step to interpret it? A) Directly read it as UTF‑8. B) Convert the hex string to raw bytes. C) Treat it as a base64 string. D) Ignore it; it is likely junk. Answer: B Explanation: Hex‑encoded data must be decoded back into its binary form before further analysis (e.g., parsing as JSON, image, etc.). Question 28. Which Android permission is required for an app to write to its private data directory? A) android.permission.WRITE_EXTERNAL_STORAGE B) android.permission.READ_PHONE_STATE
C) No explicit permission; apps have implicit access to their own data directory. D) android.permission.INTERNET Answer: C Explanation: Each app automatically has read/write access to its sandboxed /data/data/
Question 34. Which SQLite data type can store a JSON document without special handling? A) TEXT B) BLOB C) INTEGER D) REAL Answer: A Explanation: JSON strings are stored as plain TEXT; SQLite provides JSON functions to query them. Question 35. When analyzing an Android app’s “shared_prefs” XML file, what key attribute typically holds a user’s login token? A) android:name B) android:value C) android:resource D) android:defaultValue Answer: B Explanation: In shared preferences XML, each
Explanation: plutil’s – convert option can transform binary or XML plists into JSON format. Question 37. In SQLite, what is the purpose of the “sqlite_sequence” table? A) Tracks autoincrement values for tables with INTEGER PRIMARY KEY AUTOINCREMENT. B) Stores the order of tables in the database. C) Holds the schema version. D) Contains rollback journal entries. Answer: A Explanation: When AUTOINCREMENT is used, SQLite maintains the last used ROWID in sqlite_sequence. Question 38. Which of the following indicates that a SQLite transaction was successfully checkpointed from WAL to the main file? A) The WAL file is empty. B) The SHM file shows a non‑zero checkpoint counter. C) The main database file size increases. D) The journal file appears. Answer: C Explanation: Checkpointing copies WAL pages into the main database, increasing its size; the WAL may still exist but will be truncated. Question 39. When a forensic analyst wants to recover a deleted SQLite row that was not overwritten, which SQLite structure should they examine? A) The “sqlite_master” table. B) The free‑list pages referenced by interior pages. C) The “sqlite_temp_master” table. D) The “sqlite_stat1” table.
B) PRAGMA enable_fk = TRUE; C) PRAGMA foreign_key_check; D) PRAGMA enforce_foreign_keys; Answer: A Explanation: Setting foreign_keys to ON activates foreign key constraints for the connection. Question 43. When using the XACT API to add a custom artifact, which method registers the artifact’s schema? A) addArtifactSchema() B) registerArtifact() C) defineArtifact() D) createArtifact() Answer: B Explanation: The XACT API uses registerArtifact() to inform the engine about the fields and types of a new artifact. Question 44. In iOS backups, which file typically contains the list of installed applications and their bundle identifiers? A) Manifest.plist B) Info.plist C) Status.plist D) Applications.db Answer: A Explanation: Manifest.plist in an iTunes backup records metadata about installed apps, including bundle IDs.
Question 45. Which SQLite function can be used to extract a value from a JSON column? A) JSON_EXTRACT(json, '$.path') B) EXTRACT_JSON(json, 'path') C) JSON_VALUE(json, 'path') D) JSON_QUERY(json, 'path') Answer: A Explanation: SQLite provides JSON_EXTRACT() to retrieve data from a JSON document using a path expression. Question 46. What is the typical file extension for a compiled Android native library? A) .apk B) .so C) .dex D) .jar Answer: B Explanation: Native libraries are compiled as shared objects with the .so extension and stored under lib/ in the APK. Question 47. In forensic analysis, why is it important to preserve the original timestamps of extracted files? A) To reduce file size. B) To maintain the chain of custody and timeline integrity. C) To improve hashing speed. D) To enable compression. Answer: B
D) sqlite3 db.sqlite .extract > extract.sql Answer: A Explanation: The .schema command outputs only the CREATE statements for tables, indexes, etc. Question 51. In Android, which directory holds the app’s external cache that may be cleared by the system? A) /data/data/
B) The file is always accessible. C) The file is encrypted with a static key. D) The file is compressed. Answer: A Explanation: NSFileProtectionComplete protects the file such that it is inaccessible while the device is locked. Question 54. Which SQLite pragma can be used to change the journal mode to WAL? A) PRAGMA journal_mode = WAL; B) PRAGMA set_journal = WAL; C) PRAGMA mode = WAL; D) PRAGMA journal = WAL; Answer: A Explanation: Setting journal_mode to WAL switches the database to write‑ahead logging. Question 55. When parsing a JSON object stored in a SQLite TEXT column, which Python module provides the “loads” function? A) json B) simplejson C) yaml D) csv Answer: A Explanation: The json module’s loads() function parses a JSON‑formatted string into Python objects. Question 56. Which of the following best describes the purpose of the “sqlite_master” table?