Weekend Sale Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: xmas50

GIAC GPYC - GIAC Python Coder (GPYC)

Page: 1 / 3
Total 75 questions

Review the following code.

What is the output?

A.

(1,0)

B.

(1,)

C.

(256,)

D.

(\x01#\x00)

Which of the following import statements will add the ability to parse data with regular expressions to your script?

A.

from regex import re

B.

import re

C.

from re import regex

D.

import regex

What does the following line of code do?

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

Review the following Python 3 code.

A.

539

B.

4a6e

C.

(52-4)

D.

three

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

A.

\w

B.

Greedy matching

C.

A custom character set

D.

\w

What does the "enumerate" function return when applied to a list?

A.

An object of tuples, with each assigned to an iterative integer

B.

The memory location of the list

C.

The total number of items in the list

D.

A list containing a single tuple, with the tuple containing all items in the original list

In a SQL injection attack, which character would an attacker use to separate multiple SQL statements on a single line?

A.

''(double quotation marks)

B.

; (semicolon)

C.

. (period)

D.

% (percentage sign)

When using the Python "sockets" module, which of the following calls is used to transmit data to a specific IP address?

A.

sendto

B.

connect

C.

bind

D.

try

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

A.

Try Else Except Finally

B.

Try Finally

C.

Try

D.

Try Else Finally

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

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