Pass the GIAC Security Certification: GPYC GPYC Questions and answers with CertsForce

Viewing page 3 out of 3 pages
Viewing questions 21-30 out of questions
Questions # 21:

A .gif file has the following attributes:

Extension: .gif

Magic value for start of file: \x47\x49\x46

Magic value for end of file: \x3b

A small data file called "raw_data" contains one gif. Which of the following statements is most likely to successfully extract the file?

Options:

A.

reiindall(r\-\gif,raw_data)[0]


B.

re.match(r'('.gif )"',raw_data).group(1)


C.

re.search('\x47\x49\x46(')\x3b',raw_data)


D.

re.findall(r'\x47\x49\x46.-\x3b,,raw_data,re.DOTALL)[0]


Expert Solution
Questions # 22:

What is the output of the following command typed in Python interactive mode?

Question # 22

Options:

A.

SyntaxError: invalid syntax


B.

True


C.

False


Expert Solution
Viewing page 3 out of 3 pages
Viewing questions 21-30 out of questions