Font size
WorksheetsPython_Mock
Total questions: 50
Worksheet time: 39mins
How many times will the following loop execute?
What is the result of this code snippet?
A. Creates a new polygon for the geometry
B. Clips the Raster based on the geometry
C. Adds the geometry to the attribute table
D. Calculates the geometry of the layer.
Which of the following is one of the four OOP concepts? Select all the options Applicable
What are global variables in Python? Select all options applicable.
What is the output of this code?
C. def class ClassName:
The (a) function in ArcPy is used to delete a feature class, table, or raster dataset.
A. Add list of new fields
What will the following snippet print?
What is the purpose of the else block in exception handling?
A. Executes when the try block raises an exception
B. Executes when the try block does not raise an exception
C. Executes only after the finally block
D. Executes if no exceptions are defined in the except block
What is the output of this code?
A. [1, 4, 9, 16]
B. (1, 4, 9, 16)
C. [11, 22, 33, 44]
D. [30]
What is the difference between "is" and “==” ?
A. 'is' checks equality of values, '==' checks memory location
B. 'is' checks memory location, '==' checks equality of values
C. 'is' and '==' are interchangeable
D. 'is' compares types, '==' compares values
A.
B.
C.
D.
What is the output of this code?
Which exception is raised by this code?
print(int('xyz'))
A. By inheriting from the Base class
What is the result of the following code?
"hello".split("e")
