<< Prev Question Next Question >>

Question 8/39

What does the following line of code do?
example=socket.socket(socket.AF_INET,socket.SOCK_DGRAM)

LEAVE A REPLY

Your email address will not be published. Required fields are marked *

Question List (39q)
Question 1: What is the output of the following commands typed in the Py...
Question 2: What will the following code in Python 3 result in? (Exhibit...
Question 3: Examine the code snippet below. What will be the contents of...
Question 4: Which of the following would produce this list? [65, 66, 67,...
Question 5: Which python regular expression method should be used to mat...
Question 6: What is the output of the following line of code typed into ...
Question 7: What will be printed when the code in the screen capture is ...
Question 8: What does the following line of code do? example=socket.sock...
Question 9: Variable "traffic" contains a Scapy packet list. A programme...
Question 10: What are the contents of the variable x when the following i...
Question 11: Using the Python "sockets" module, which of the following fu...
Question 12: When accessing the hard drive directly, how would the charac...
Question 13: An attacker does not yet know the IP address of his target. ...
Question 14: Which of the following will be the value of the variable y? ...
Question 15: Review the following Python code: (Exhibit)...
Question 16: If the variable "example" contains a handle to a subprocess ...
Question 17: Which of the following is the output when the following prog...
Question 18: What does executing the following code in Python 3 result in...
Question 19: A programmer includes the following line in his program. Wha...
Question 20: A log file is stored in variable "a". The file has the follo...
Question 21: In a SQL injection attack, which character would an attacker...
Question 22: What would be the string resulting from the following comman...
Question 23: What does the "enumerate" function return when applied to a ...
Question 24: A multi-byte character encoded with UTF-8 has the first byte...
Question 25: When the following program "question.py" is executed with Py...
Question 26: Which of the lambda definitions of the function some_code is...
Question 27: Which command will search for python modules that will have ...
Question 28: What is the output of the following line of code typed into ...
Question 29: A programmer attempts to run the Python program hello.py as ...
Question 30: What will the contents of the "__name__" variable be if the ...
Question 31: A user enters unexpected data into program. Which functional...
Question 32: What is the output of the following when executed in a Pytho...
Question 33: Which of the following is the final output when program.py i...
Question 34: What happens if a programmer fails to build exception handli...
Question 35: Review the following code, written in Python. What are the c...
1 commentQuestion 36: What will the last value of 'x' be when Python executes the ...
Question 37: What is the output of the following line of code typed into ...
Question 38: What is the output of the following line of code typed into ...
Question 39: Which of the following modules allows a programmer to specif...