Weekend Sale Special Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: cramtreat

GPYC GIAC Python Coder (GPYC) Questions and Answers

Questions 4

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 ")

Buy Now
Questions 5

When creating a new socket using the Python "sockets" module, which of the following parameters is used to specify the socket will send and receive TCP traffic? Choose Two

Options:

A.

socket.SOCK_STREAM

B.

socket. AF_NET

C.

socket.SOCK_DGRAM

D.

socket.socket

Buy Now
Questions 6

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

Buy Now
Questions 7

Review the following Python 3 code.

Options:

A.

539

B.

4a6e

C.

(52-4)

D.

three

Buy Now
Questions 8

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

>>> print ( int ("1111", 2) )

Options:

A.

1111

B.

16

C.

''1111''

D.

15

Buy Now
Questions 9

How many lines will the following code print?

Options:

A.

0

B.

1

C.

99

D.

199

E.

2

Buy Now
Questions 10

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

Options:

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

Buy Now
Questions 11

Given that mylist = [1,3,2,1,4,5,3] how do you remove all occurrences of the number 1 from the list in Python?

Options:

A.

mylist=[x for x in mylist if x! = 1]

B.

mylist.remove(l, mylist.count(1))

C.

mylist.replace(1,"")

D.

mylist. remove(1)

Buy Now
Exam Code: GPYC
Exam Name: GIAC Python Coder (GPYC)
Last Update: May 13, 2024
Questions: 75
GPYC pdf

GPYC PDF

$28  $80
GPYC Engine

GPYC Testing Engine

$33.25  $95
GPYC PDF + Engine

GPYC PDF + Testing Engine

$45.5  $130