Easter Sale Special 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: exams65

GIAC Python Coder (GPYC) Question and Answers

GIAC Python Coder (GPYC)

Last Update May 18, 2024
Total Questions : 75

We are offering FREE GPYC GIAC exam questions. All you do is to just go and sign up. Give your details, prepare GPYC free exam questions and then go for complete pool of GIAC Python Coder (GPYC) test questions that will help you more.

GPYC pdf

GPYC PDF

$35  $99.99
GPYC Engine

GPYC Testing Engine

$42  $119.99
GPYC PDF + Engine

GPYC PDF + Testing Engine

$56  $159.99
Questions 1

What is the output when the following commands are typed in Python interactive mode?

Options:

A.  

['tag to go tag', 'to sans tag']

B.  

['tag to go tag', "tag to sans tag']

C.  

['tag to go tag']

D.  

['tag to go tag to sans tag']

Discussion 0
Questions 2

A connection between a python raw socket server and a netcat client is being made over port 1100 on the same computer. The last command in the Python terminal is:

What needs to be typed in the python terminal to display the input from the netcat session?

Options:

A.  

Nothing, as the connection is complete

B.  

connection.recv( 1024)

C.  

print(remoteip)

D.  

Nothing, port 1100 is too low to bind the python server to

Discussion 0
Questions 3

An operator able to perform bitwise shifts is coded as (select two answers)

Options:

A.  

- -

B.  

++

C.  

<<

D.  

>>

Discussion 0
Questions 4

A programmer attempts to run the Python program hello.py as follows, but an error occurs. What is the cause of this error?

Options:

A.  

hello.py is missing the line #!/usr/bin/python

B.  

smtp_mime was replaced with Python

C.  

Python cannot find the script "hello"

D.  

hello.py is improperly encoded with UTF-16le

Discussion 0
Questions 5

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

Discussion 0
Questions 6

Which command will search for python modules that will have the ability to parse pcap files?

Options:

A.  

>>> locate(pcap)

B.  

pip search pcap

C.  

pip pcap

D.  

>>>pfind(pcap)

Discussion 0
Questions 7

Examine the code snippet below. What will be the contents of the variable T during the loops first iteration?

Options:

A.  

is

B.  

1

C.  

0

D.  

Python

Discussion 0
Questions 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

Discussion 0
Questions 9

Review the following code.

What is the output?

Options:

A.  

(1,0)

B.  

(1,)

C.  

(256,)

D.  

(\x01#\x00)

Discussion 0
Questions 10

Using the Python "sockets" module, which of the following functions looks up the IP address of www.giac.org ?

Options:

A.  

socket.gethostbyaddr(" www.giac.org ")

B.  

socket.nslookup.www.giac.org

C.  

socket.get( www.giac.org)

D.  

socket. gethostbynameC'www.giac.org ")

Discussion 0
Questions 11

What does the attacker do in a SQL Injection attack?

Options:

A.  

Obtains an administrative login for a SQL database server

B.  

Finds and exploits CVSS-SIG vulnerabilities in a particular version of SQL database

C.  

Inject information into an SQL server via an undocumented administrative interface

D.  

Submits a string that is interpreted as a SQL database command

Discussion 0