1
ENGR 102 Exam 1 Questions with Correct
Answers | Updated (100% Correct Answers)
Which of the following environment variable for Python tells the
Python interpreter where to locate the module files imported into a
program? Answer: PYTHONPATH
Which of the following environment variable for Python contains the
path of an initialization file containing Python source code? Answer:
PYTHONSTARTUP
Which of the following environment variable for Python is used in
Windows to instruct Python to find the first case-insensitive match
in an import statement? Answer: PYTHONCASEOK
Which of the following environment variable for Python is an
alternative module search path? Answer: PYTHONHOME
Is python a case sensitive language? Answer: true
Which of the following data types is not supported in python?
A - Numbers
B - String
C - List
© 2025 All rights reserved
, 2
D - Slice Answer: D- Slice
Which of the following is correct about tuples in python?
A - A tuple is another sequence data type that is similar to the list.
B - A tuple consists of a number of values separated by commas.
C - Unlike lists, however, tuples are enclosed within parentheses.
D - All of the above. Answer: D- All of the above
Which of the following is correct about dictionaries in python?
A - Python's dictionaries are kind of hash table type.
B - They work like associative arrays or hashes found in Perl and
consist of key-value pairs.
C - A dictionary key can be almost any Python type, but are usually
numbers or strings. Values, on the other hand, can be any arbitrary
Python object.
D - All of the above. Answer: D- All of the above
Which of the following function of dictionary gets all the keys from
the dictionary?
A - getkeys
© 2025 All rights reserved
ENGR 102 Exam 1 Questions with Correct
Answers | Updated (100% Correct Answers)
Which of the following environment variable for Python tells the
Python interpreter where to locate the module files imported into a
program? Answer: PYTHONPATH
Which of the following environment variable for Python contains the
path of an initialization file containing Python source code? Answer:
PYTHONSTARTUP
Which of the following environment variable for Python is used in
Windows to instruct Python to find the first case-insensitive match
in an import statement? Answer: PYTHONCASEOK
Which of the following environment variable for Python is an
alternative module search path? Answer: PYTHONHOME
Is python a case sensitive language? Answer: true
Which of the following data types is not supported in python?
A - Numbers
B - String
C - List
© 2025 All rights reserved
, 2
D - Slice Answer: D- Slice
Which of the following is correct about tuples in python?
A - A tuple is another sequence data type that is similar to the list.
B - A tuple consists of a number of values separated by commas.
C - Unlike lists, however, tuples are enclosed within parentheses.
D - All of the above. Answer: D- All of the above
Which of the following is correct about dictionaries in python?
A - Python's dictionaries are kind of hash table type.
B - They work like associative arrays or hashes found in Perl and
consist of key-value pairs.
C - A dictionary key can be almost any Python type, but are usually
numbers or strings. Values, on the other hand, can be any arbitrary
Python object.
D - All of the above. Answer: D- All of the above
Which of the following function of dictionary gets all the keys from
the dictionary?
A - getkeys
© 2025 All rights reserved