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)- A8% (2)
- B73% (19)
- C12% (3)
- D8% (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.