Exit demo GPYC GIAC Python Coder (GPYC) PDF format · free preview

GIAC GPYC - Questions & Answers

Free preview · every answer includes a full explanation

Product page: https://prepkeys.com/gpyc.html

Question 1
Single choice

What happens if a programmer fails to build exception handling into a program, and the program encounters an unexpected error condition?

A.

The interpreter will ignore the error and move to the next line

B.

The application will print a warning to the console and continue to the end

C.

The computer will "fuzz" input until it finds one that generates no error

D.

The application will terminate immediately or after resources are exhausted

Question 2
Single choice

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

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']

Question 3
Single choice

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

Question 4
Single choice

Review the following code, written in Python.

What are the contents of variable a?

A.

'cat'/dog'/bird'/violet'

B.

'dandelion', 'rose', 'cat', 'violet', 'bird', 'dog'

C.

'violet'/rose'/dandelion'

D.

'cat'/dog'/bird'

Question 5
Single choice

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

Question 6
Single choice

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

Question 7
Single choice

Review the following code.

Which of the following would give the results of variable "total"?

A.

addTogether()

B.

total()

C.

addTogether( 1,2,3)

D.

total (1,2,3)

Question 8
Single choice

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

Question 9
Single choice

What would be the result of the following code in Python?

A.

The path of each subkey under Microsoft\Windows NT\CurrentVersion

B.

A tuple containing the name, value, and type of each subkey under

C.

Microsoft\Windows NT\CurrentVersion

D.

The full registry path of the CurrentVersion key

E.

A handle to the Microsoft\Windows NT\CurrentVersion key

Question 10
Single choice

What is the output of the Is(TCP) function?

A.

It lists all of the TCP port numbers in a TCP stream

B.

It lists all of the packets that have a TCP layer

C.

It lists the contents of the TCP layer

D.

It lists all of the fields associated with the TCP layer

Showing 10 of 75 questions · Unlock the full set