GIAC Python Coder (GPYC) GPYC Question # 3 Topic 1 Discussion

GIAC Python Coder (GPYC) GPYC Question # 3 Topic 1 Discussion

GPYC Exam Topic 1 Question 3 Discussion:
Question #: 3
Topic #: 1

A log file is stored in variable "a". The file has the following format for each log entry, in order, stored in big endian:

Field 1: 2-byte integer

Field 2: 2-byte integer

Field 3: 4-byte string

Which of the following would unpack a line from the log file into the proper fields?


A.

struct. unpack('>HH4s',a)


B.

stmct.unpack('


C.

struct.unpack('>HHHH,/a)


D.

stnjct.unpack('!BxBx4s'/a)


Get Premium GPYC Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.