GIAC Python Coder Exam Practice Test

Page: 1 / 14
Total 75 questions
Question 1

In a SQL injection attack, which character would an attacker use to separate multiple SQL statements on a single line?



Answer : B


Question 2

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



Answer : B


Question 3

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?



Answer : A


Question 4

What is the cause of the error shown below?



Answer : B


Question 5

What is the output of the following when executed in a Python shell?



Answer : D


Question 6

Which regular expression will match all date-time stamps for log files of the format shown in the screen capture?



Answer : B


Question 7

What will be printed below if the value of x is 7?

>>> if(x):

... print(x)

...



Answer : B


Page:    1 / 14   
Total 75 questions