Month End Sale Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: 70percent

GIAC GPYC GIAC Python Coder (GPYC) Exam Practice Test

Demo: 11 questions
Total 75 questions

GIAC Python Coder (GPYC) Questions and Answers

Question 1

Variable "traffic" contains a Scapy packet list. A programmer runs the following command:

p1=traffic [1]

Which of the following describes the contents of pi, with respect to the "traffic" packet list?

Options:

A.

All Ethernet layer frames

B.

The contents of the second packet

C.

TCP streams with a session ID of 1

D.

The data stored from the first byte onward

Question 2

Which regular expression will match all date-time stamps for log files of the format shown in the screen capture?

A)

B)

C)

D)

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Question 3

What will the last value of V be when Python executes the following control loop?

Options:

A.

4

B.

20

C.

2

D.

18

Question 4

Review the following code. Which of the following would give the results of variable "total"?

Options:

A.

addTogether()

B.

total()

C.

addTogether( 1,2,3)

D.

total (1,2,3)

Question 5

Which of the following is the output when the following program is executed with a Python Interpreter?

Options:

A.

a

B.

10

C.

-10

D.

-a

Question 6

What is the output of the following line of code typed into a Python interactive session?

>>>print (8 <<1)

Options:

A.

False

B.

16

C.

SyntaxError: invalid syntax

D.

True

Question 7

If the variable "example" contains a handle to a subprocess object, which of the following would show all of the possible results of running the subprocess?

Options:

A.

example.stdout.read()

B.

example.recv(*)

C.

example.read()

D.

example.stdout.read()+example.stderr.read()

Question 8

What does the LIMIT function restrict in an SQL SELECT statement?

Options:

A.

The number of queries that can be run against the table per second

B.

The number of records a table is permitted to hold

C.

The number of records that will be returned by a request

D.

The number of subsequent SELECT statements that can be run against the table

Question 9

What does the following line of code do?

Options:

A.

Sends the data stored in the variable "socket" to the IP address stored in AF_INET

B.

Gets data from all network sockets on the system

C.

Creates an instance of a UDP socket for transmitting or receiving data

D.

Transfers data from the local system to a remote system across the network

Question 10

What wilt the code in the screen capture print when executed?

Options:

A.

2

B.

4

C.

x

D.

An error

E.

6

Question 11

What is the output of the following line of code typed into a Python interactive session?

Options:

A.

0b10101

B.

18

C.

0b10010

D.

0b101101

Demo: 11 questions
Total 75 questions