Below are the required questions about AP CSP vocab

import getpass, sys

def question_and_answer(prompt):
    print("Question: " + prompt)
    msg = input()
    print("Answer: " + msg)

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?")

def question_with_response(prompt):
    print("Question: " + prompt)
    msg = input()
    return msg

questions = 3
correct = 0

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":
    print(rsp + " is correct!")
    correct += 1
else:
    print(rsp + " 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))
Question: Name the Python output command mentioned in this lesson?
Answer: rsp
Question: If you see many lines of code in order, what would College Board call it?
Answer: text
Question: Describe a keyword used in Python to define a function?
Answer: def
Hello, jiya_sav running /bin/python3
You will be asked 3 questions.
Question: Are you ready to take a test?
Answer: no
Question: What command is used to include other functions that were previously developed?
if is incorrect!
Question: What command is used to evaluate correct or incorrect response in this example?
then is incorrect!
Question: Each 'if' command contains an '_________' to determine a true or false condition?
expression is correct!
jiya_sav you scored 1/3

Below are questions about my fastpages site

import getpass, sys

def question_with_response(prompt):
    print("Question: " + prompt)
    msg = input()
    return msg

questions = 3
correct = 0

print('Hello, ' + getpass.getuser() + " running " + sys.executable)
print("You will be asked " + str(questions) + " questions about my blog.")
question_and_answer("Are you ready?")

rsp = question_with_response("Are sunflowers included in the flowers post?")
if rsp == "yes":
    print(rsp + " is correct!")
    correct += 1
else:
    print(rsp + " is incorrect!")

rsp = question_with_response("In the sample AP Physics lab post, what is the calculated density?")
if rsp == "0.815":
    print(rsp + " is correct!")
    correct += 1
else:
    print(rsp + " is incorrect!")

rsp = question_with_response("What instrument do I like to play?")
if rsp == "piano":
    print(rsp + " is correct!")
    correct += 1
else:
    print(rsp + " is incorrect!")

print(getpass.getuser() + " you scored " + str(correct) +"/" + str(questions))
Hello, jiya_sav running /bin/python3
You will be asked 3 questions about my blog.
Question: Are you ready?
Answer: no
Question: Are sunflowers included in the flowers post?
yes is correct!
Question: In the sample AP Physics lab post, what is the calculated density?
0.18 is incorrect!
Question: What instrument do I like to play?
piano is correct!
jiya_sav you scored 2/3