Month End Sale - Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: sntaclus

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

A.

socket.SOCK_STREAM

B.

socket. AF_NET

C.

socket.SOCK_DGRAM

D.

socket.socket

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 command typed in Python interactive mode?

A.

SyntaxError: invalid syntax

B.

True

C.

False

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

What will the last value of V be when Python executes the following control loop?

A.

4

B.

20

C.

2

D.

18

Which of the following will be the value of the variable y?

A.

7

B.

y has no value. The following error occurred: IndexError: list index out of range

C.

6

D.

y has no value. The following error occurred: KeyError: 'b'

What will the contents of the "__name__" variable be if the program "gpyc.py" is run as a standalone program?

A.

The name of the Python version used to create the module

B.

__main__

C.

The name of the GCC compiler used to compile the module

D.

gpyc

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

A.

- -

B.

++

C.

<<

D.

>>

What does the attacker do in a SQL Injection attack?

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

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?

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)