nerdexam
GIAC

GPYC · Question #18

What would be the result of the following code in Python? ``python registry_key = reg_handle.open("Microsoft\Windows NT\CurrentVersion") map(lambda x: x.path(), registry_key.subkeys()) ``

The correct answer is B. A tuple containing the name, value, and type of each subkey under Microsoft\Windows NT\CurrentVersion. You've hit your limit · resets 1pm (America/New_York)

Web Scraping & Forensics with Python

Question

What would be the result of the following code in Python?
registry_key = reg_handle.open("Microsoft\Windows NT\CurrentVersion")
map(lambda x: x.path(), registry_key.subkeys())

Options

  • AThe path of each subkey under Microsoft\Windows NT\CurrentVersion
  • BA tuple containing the name, value, and type of each subkey under Microsoft\Windows NT\CurrentVersion
  • CMicrosoft\Windows NT\CurrentVersion
  • DThe full registry path of the CurrentVersion key
  • EA handle to the Microsoft\Windows NT\CurrentVersion key

How the community answered

(26 responses)
  • A
    8% (2)
  • B
    73% (19)
  • C
    12% (3)
  • D
    8% (2)

Explanation

You've hit your limit · resets 1pm (America/New_York)

Topics

#Windows registry#digital forensics#map/lambda#registry subkeys

Community Discussion

No community discussion yet for this question.

Full GPYC Practice