New Year Special 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: save70

Free and Premium GIAC GPYC Dumps Questions Answers

Page: 1 / 3
Total 75 questions

GIAC Python Coder (GPYC) Questions and Answers

Question 1

Review the lines of code below. Which of the following actions will they perform?

Options:

A.

Pass through proxy connections.

B.

Save non-http files from pages.

C.

Keep session information in browser.

D.

Interact with .js objects.

Buy Now
Question 2

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

Options:

A.

NameError: name 'some_func' is not defined

B.

5

C.

5+10

D.

15

Question 3

What will be printed below if the value of x is 7?

>>> if(x):

... print(x)

...

Options:

A.

false

B.

7

C.

true

D.

0

E.

x

Question 4

What is the output of the following commands typed in the Python Interactive shell?

Options:

A.

Try Else Except Finally

B.

Try Finally

C.

Try

D.

Try Else Finally

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

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 7

What is the cause of the error shown below?

Options:

A.

A syntax error

B.

The re module hasn't been imported

C.

A bad file name

D.

The stdin module hasn't been imported

Question 8

During a password guessing attack, which HTTP request method would a Python program most commonly call to submit a usemame and password to a target website?

Options:

A.

OPTIONS

B.

POST

C.

CONNECT

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 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 11

Which python regular expression method should be used to match any character in a-z, 0-

Options:

A.

\w

B.

Greedy matching

C.

A custom character set

D.

\w

Page: 1 / 3
Total 75 questions