__author__ = 'Michele'

#An instructor wants to create a short computer quiz for his students.
#There are only two questions in the quiz.
#Write a program to implement this quiz.

def Question1():
    print('The physical devices that a computer is made of are referred to as ______')
    print('a. hardware')
    print('b. software')
    print('c. the operation system')
    print('d. tools')
    global Answer1
    Answer1 = str(input('Enter your answer:'))
    Answer1 = Answer1.lower()
    if Answer1 == 'a':
        print('Hardware is the correct answer.')
    else:
        print(Answer1, 'is not correct.  The correct answer is Hardware.')
    print()

def Question2():
    print('The part of a computer that runs programs is called ______')
    print('a. RAM')
    print('b. secondary storage')
    print('c. main memory')
    print('d. the CPU')
    global Answer2
    Answer2 = str(input('Enter your answer:'))
    if Answer2 == 'd':
        print('CPU is the correct answer.')
    else:
        print(Answer2, 'is not correct.  The correct answer is CPU.')
    print()

def main():
    Question1()
    Question2()

main()
5989e19392f428375da6aad7fef954e61ee97033
<mask token>


def Question1():
    print(
        'The physical devices that a computer is made of are referred to as ______'
        )
    print('a. hardware')
    print('b. software')
    print('c. the operation system')
    print('d. tools')
    global Answer1
    Answer1 = str(input('Enter your answer:'))
    Answer1 = Answer1.lower()
    if Answer1 == 'a':
        print('Hardware is the correct answer.')
    else:
        print(Answer1, 'is not correct.  The correct answer is Hardware.')
    print()


def Question2():
    print('The part of a computer that runs programs is called ______')
    print('a. RAM')
    print('b. secondary storage')
    print('c. main memory')
    print('d. the CPU')
    global Answer2
    Answer2 = str(input('Enter your answer:'))
    if Answer2 == 'd':
        print('CPU is the correct answer.')
    else:
        print(Answer2, 'is not correct.  The correct answer is CPU.')
    print()


<mask token>

<mask token>


def Question1():
    print(
        'The physical devices that a computer is made of are referred to as ______'
        )
    print('a. hardware')
    print('b. software')
    print('c. the operation system')
    print('d. tools')
    global Answer1
    Answer1 = str(input('Enter your answer:'))
    Answer1 = Answer1.lower()
    if Answer1 == 'a':
        print('Hardware is the correct answer.')
    else:
        print(Answer1, 'is not correct.  The correct answer is Hardware.')
    print()


def Question2():
    print('The part of a computer that runs programs is called ______')
    print('a. RAM')
    print('b. secondary storage')
    print('c. main memory')
    print('d. the CPU')
    global Answer2
    Answer2 = str(input('Enter your answer:'))
    if Answer2 == 'd':
        print('CPU is the correct answer.')
    else:
        print(Answer2, 'is not correct.  The correct answer is CPU.')
    print()


def main():
    Question1()
    Question2()


<mask token>

<mask token>


def Question1():
    print(
        'The physical devices that a computer is made of are referred to as ______'
        )
    print('a. hardware')
    print('b. software')
    print('c. the operation system')
    print('d. tools')
    global Answer1
    Answer1 = str(input('Enter your answer:'))
    Answer1 = Answer1.lower()
    if Answer1 == 'a':
        print('Hardware is the correct answer.')
    else:
        print(Answer1, 'is not correct.  The correct answer is Hardware.')
    print()


def Question2():
    print('The part of a computer that runs programs is called ______')
    print('a. RAM')
    print('b. secondary storage')
    print('c. main memory')
    print('d. the CPU')
    global Answer2
    Answer2 = str(input('Enter your answer:'))
    if Answer2 == 'd':
        print('CPU is the correct answer.')
    else:
        print(Answer2, 'is not correct.  The correct answer is CPU.')
    print()


def main():
    Question1()
    Question2()


main()

__author__ = 'Michele'


def Question1():
    print(
        'The physical devices that a computer is made of are referred to as ______'
        )
    print('a. hardware')
    print('b. software')
    print('c. the operation system')
    print('d. tools')
    global Answer1
    Answer1 = str(input('Enter your answer:'))
    Answer1 = Answer1.lower()
    if Answer1 == 'a':
        print('Hardware is the correct answer.')
    else:
        print(Answer1, 'is not correct.  The correct answer is Hardware.')
    print()


def Question2():
    print('The part of a computer that runs programs is called ______')
    print('a. RAM')
    print('b. secondary storage')
    print('c. main memory')
    print('d. the CPU')
    global Answer2
    Answer2 = str(input('Enter your answer:'))
    if Answer2 == 'd':
        print('CPU is the correct answer.')
    else:
        print(Answer2, 'is not correct.  The correct answer is CPU.')
    print()


def main():
    Question1()
    Question2()


main()

__author__ = 'Michele'

#An instructor wants to create a short computer quiz for his students.
#There are only two questions in the quiz.
#Write a program to implement this quiz.

def Question1():
    print('The physical devices that a computer is made of are referred to as ______')
    print('a. hardware')
    print('b. software')
    print('c. the operation system')
    print('d. tools')
    global Answer1
    Answer1 = str(input('Enter your answer:'))
    Answer1 = Answer1.lower()
    if Answer1 == 'a':
        print('Hardware is the correct answer.')
    else:
        print(Answer1, 'is not correct.  The correct answer is Hardware.')
    print()

def Question2():
    print('The part of a computer that runs programs is called ______')
    print('a. RAM')
    print('b. secondary storage')
    print('c. main memory')
    print('d. the CPU')
    global Answer2
    Answer2 = str(input('Enter your answer:'))
    if Answer2 == 'd':
        print('CPU is the correct answer.')
    else:
        print(Answer2, 'is not correct.  The correct answer is CPU.')
    print()

def main():
    Question1()
    Question2()

main()