GIAC Python Coder GPYC Exam Questions

Page: 1 / 14
Total 75 questions
Question 1

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



Answer : D


Question 2

Variable "traffic" contains a Scapy packet list. A programmer runs the following command:

p1=traffic [1]

Which of the following describes the contents of pi, with respect to the "traffic" packet list?



Answer : A


Question 3

How many lines will the following code print?



Answer : A


Question 4

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



Answer : A


Question 5

Which of the following is the output when the following program is executed with a Python Interpreter?



Answer : C


Question 6

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

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



Answer : D


Question 7

Which of the following is the final output when program.py is executed with a Python Interpreter?



Answer : C


Page:    1 / 14   
Total 75 questions