stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
PYTHON FOR GIS_3 Flashcards | StudBud
Explore
/
PYTHON FOR GIS_3
PYTHON FOR GIS_3
12 terms
·
StudBud Administration
·
21 plays
Imported from external platform
Flashcards
12 cards
F
Practice quiz
P
Host live
L
Questions
12
Answers
1
What will be the output of the following code?
{1, 2, 2, 3}
None
Error
{1, 2, 3}
2
What will be the output of the following code?
34
error
7
none
3
What will be the output of the following code?
7
52
error
10
4
What is the purpose of a for loop in Python?
To repeat a task a set number of times
To handle errors
To create functions
To store key-value pairs
5
Which of the following is NOT a city in Kenya?
kitale
Mombasa
kisumu
Nairobi
6
What will be the output of the following code?
abc
Error
None
Invalid input
7
What does the input() function do in Python?
Prints output to the console
Performs a mathematical calculation
Gets data from the user
Creates a loop
8
Which of the following is NOT a Python data type?
Boolean
array
string
Integer
9
What will be the output of the following code?
error
none
The file will be empty
The file will contain "Hello, GIS!"
10
What is the purpose of a variable in Python?
To store data values
To define functions
To create loops
To perform mathematical operations
11
What will be the output of the following code?
1
2
4
3
12
What is the purpose of error handling in Python?
To store data
To create loops
To define functions
To prevent program crashes