First, answering the provided questions:

def question_and_answer(prompt):   # defines question_and_answer
    print("Question: " + prompt)      # asks the question
    msg = input()                  # the user's input/answer is taken
    print("Answer: " + msg)        # prints the user's input/answer

question_and_answer("Name the Python output command mentioned in this lesson?")
question_and_answer("If you see many lines of code in order, what would College Board call it?")
question_and_answer("Describe a keyword used in Python to define a function?")
Question: Name the Python output command mentioned in this lesson?
---------------------------------------------------------------------------
KeyboardInterrupt                         Traceback (most recent call last)
/home/shruthim/vscode/repository2/_notebooks/2022-08-24-pythonquiz.ipynb Cell 3 in <cell line: 6>()
      <a href='vscode-notebook-cell://wsl%2Bubuntu/home/shruthim/vscode/repository2/_notebooks/2022-08-24-pythonquiz.ipynb#W2sdnNjb2RlLXJlbW90ZQ%3D%3D?line=2'>3</a>     msg = input()                  # the user's input/answer is taken
      <a href='vscode-notebook-cell://wsl%2Bubuntu/home/shruthim/vscode/repository2/_notebooks/2022-08-24-pythonquiz.ipynb#W2sdnNjb2RlLXJlbW90ZQ%3D%3D?line=3'>4</a>     print("Answer: " + msg)        # prints the user's input/answer
----> <a href='vscode-notebook-cell://wsl%2Bubuntu/home/shruthim/vscode/repository2/_notebooks/2022-08-24-pythonquiz.ipynb#W2sdnNjb2RlLXJlbW90ZQ%3D%3D?line=5'>6</a> question_and_answer("Name the Python output command mentioned in this lesson?")
      <a href='vscode-notebook-cell://wsl%2Bubuntu/home/shruthim/vscode/repository2/_notebooks/2022-08-24-pythonquiz.ipynb#W2sdnNjb2RlLXJlbW90ZQ%3D%3D?line=6'>7</a> question_and_answer("If you see many lines of code in order, what would College Board call it?")
      <a href='vscode-notebook-cell://wsl%2Bubuntu/home/shruthim/vscode/repository2/_notebooks/2022-08-24-pythonquiz.ipynb#W2sdnNjb2RlLXJlbW90ZQ%3D%3D?line=7'>8</a> question_and_answer("Describe a keyword used in Python to define a function?")

/home/shruthim/vscode/repository2/_notebooks/2022-08-24-pythonquiz.ipynb Cell 3 in question_and_answer(prompt)
      <a href='vscode-notebook-cell://wsl%2Bubuntu/home/shruthim/vscode/repository2/_notebooks/2022-08-24-pythonquiz.ipynb#W2sdnNjb2RlLXJlbW90ZQ%3D%3D?line=0'>1</a> def question_and_answer(prompt):   # defines question_and_answer
      <a href='vscode-notebook-cell://wsl%2Bubuntu/home/shruthim/vscode/repository2/_notebooks/2022-08-24-pythonquiz.ipynb#W2sdnNjb2RlLXJlbW90ZQ%3D%3D?line=1'>2</a>     print("Question: " + prompt)      # asks the question
----> <a href='vscode-notebook-cell://wsl%2Bubuntu/home/shruthim/vscode/repository2/_notebooks/2022-08-24-pythonquiz.ipynb#W2sdnNjb2RlLXJlbW90ZQ%3D%3D?line=2'>3</a>     msg = input()                  # the user's input/answer is taken
      <a href='vscode-notebook-cell://wsl%2Bubuntu/home/shruthim/vscode/repository2/_notebooks/2022-08-24-pythonquiz.ipynb#W2sdnNjb2RlLXJlbW90ZQ%3D%3D?line=3'>4</a>     print("Answer: " + msg)

File ~/.local/lib/python3.8/site-packages/ipykernel/kernelbase.py:1177, in Kernel.raw_input(self, prompt)
   1173 if not self._allow_stdin:
   1174     raise StdinNotImplementedError(
   1175         "raw_input was called, but this frontend does not support input requests."
   1176     )
-> 1177 return self._input_request(
   1178     str(prompt),
   1179     self._parent_ident["shell"],
   1180     self.get_parent("shell"),
   1181     password=False,
   1182 )

File ~/.local/lib/python3.8/site-packages/ipykernel/kernelbase.py:1219, in Kernel._input_request(self, prompt, ident, parent, password)
   1216             break
   1217 except KeyboardInterrupt:
   1218     # re-raise KeyboardInterrupt, to truncate traceback
-> 1219     raise KeyboardInterrupt("Interrupted by user") from None
   1220 except Exception:
   1221     self.log.warning("Invalid Message:", exc_info=True)

KeyboardInterrupt: Interrupted by user
import getpass, sys

def question_with_response(prompt):    # defines question_and_answer 
    print("Question: " + prompt)       # asks the question
    msg = input()                      # the user's input/answer is taken
    return msg                         # returns as string value

questions = 3        # total number of questions
correct = 0          # number that is initially correct (before any questions are answered)

print('Hello, ' + getpass.getuser() + " running " + sys.executable)
print("You will be asked " + str(questions) + " questions.")
question_and_answer("Are you ready to take a test?")

rsp = question_with_response("What command is used to include other functions that were previously developed?")
if rsp == "import":       # establishing if/else statement; if user's input is "import"
    print(rsp + " is correct!")  # then it is correct
    correct += 1                 # one point is added to number correct score
else:
    print(rsp + " is incorrect!")  # if user's input is not "import," than user is incorrect

rsp = question_with_response("What command is used to evaluate correct or incorrect response in this example?")
if rsp == "if":
    print(rsp + " is correct!")
    correct += 1
else:
    print(rsp + " is incorrect!")

rsp = question_with_response("Each 'if' command contains an '_________' to determine a true or false condition?")
if rsp == "expression":
    print(rsp + " is correct!")
    correct += 1
else:
    print(rsp + " is incorrect!")

print(getpass.getuser() + " you scored " + str(correct) +"/" + str(questions))  # print's user's score
Hello, shruthim running /usr/bin/python3
You will be asked 3 questions.
Question: Are you ready to take a test?
Answer: yes
Question: What command is used to include other functions that were previously developed?
import is correct!
Question: What command is used to evaluate correct or incorrect response in this example?
if is correct!
Question: Each 'if' command contains an '_________' to determine a true or false condition?
expression is correct!
shruthim you scored 3/3

Creating my own quiz (based on CollegeBoard's vocabulary):

print ("Hello World")         # image 1
msg = input("Enter a greeting: ")          #image 2
print(msg)
import getpass, sys

def question_with_response(prompt):     # defines question_and_answer
    print("Question: " + prompt)        # asks the question
    msg = input()                       # the user's input/answer is taken
    return msg                          # returns as string value

questions = 5            # total number of questions
correct = 0              # number that is initially correct (before any questions are answered)

print('Hello, ' + getpass.getuser() + " running " + sys.executable)
print("You will be asked " + str(questions) + " questions!")
question_and_answer("Are you ready to take this fun test on Python syntax?")

rsp = question_with_response ("In image 1, Hello, World is what kind of text?")
if rsp == "static" or rsp == "output":      # establishing if/else statement; if user's input is "static" or "output"
    print(rsp + " is correct!")       # then it is correct
    correct += 1                      # one point is added to number correct score
else:
    print(rsp + " is incorrect :(")   # if user's input is not "import," than user is incorrect

rsp = question_with_response("In image 1, what is the output?")
if rsp == "Hello World":
    print(rsp + " is correct!")
    correct += 1
else:
    print(rsp + " is incorrect :(")

rsp = question_with_response("In image 2, because the inputs and outputs can ______, the code is _______ ")
if rsp == "change and dynamic":
    print(rsp + " is correct!")
    correct += 1
else:
    print(rsp + " is incorrect :(")

rsp = question_with_response("The variable, msg, is then used as a _______ to the print command")
if rsp == "parameter":
    print(rsp + " is correct!")
    correct += 1
else:
    print(rsp + " is incorrect :(")

rsp = question_with_response("What is it grouping a sequence of commands, often used repeatedly, called?")
if rsp == "procedural abstraction":
    print(rsp + " is correct!")
    correct += 1
else:
    print(rsp + " is incorrect :(")

print(getpass.getuser() + " you scored " + str(correct) +"/" + str(questions) + "!!")     # print's user's score
Hello, shruthim running /usr/bin/python3
You will be asked 5 questions!
Question: Are you ready to take this fun test on Python syntax?
Answer: yes
Question: In image 1, Hello, World is what kind of text?
static is correct!
Question: In image 1, what is the output?
Hello World is correct!
Question: In image 2, because the inputs and outputs can ______, the code is _______ 
change and dynamic is correct!
Question: The variable, msg, is then used as a _______ to the print command
parameter is correct!
Question: What is it grouping a sequence of commands, often used repeatedly, called?
procedural abstraction is correct!
shruthim you scored 5/5!!