Sovi.AI - AI Math Tutor

Scan to solve math questions

QUESTION IMAGE

quiz 1: alternative version 1. memory locations are described using: a.…

Question

quiz 1: alternative version

  1. memory locations are described using:

a. variables
b. cells
c. lets
d. boxes

  1. which of lines of code print the following to the screen?

position: goalie
a. print (\position:\ + \\t + \goalie\)
b. print (\position: + \\t + goalie\)
c. print (\position: \\t goalie\)
d. print (\position: goalie\)

  1. the ____ command is used to input strings and the ____ command displays information on the screen.
  2. ______ is designed to be very clear and work consistently every time it is used.

a. familiar language
b. formal language
c. natural language
d. precise language

  1. ______ is information the user sends to the computer.

a. software
b. input
c. secondary memory
d. program

  1. the program below has several mistakes. rewrite the program to correct any errors.

input (\good morning, who are you?\) = name
print (\hi there name, nice to meet you\)

Explanation:

Brief Explanations
  1. Memory locations are described using variables. 2. The correct print statement for the output is with proper string concatenation. 3. input is for string input and print for display. 4. Formal language is consistent. 5. Input is user - sent info. 6. Correct syntax for input and print in Python.

Answer:

  1. a. Variables
  2. a. print ("Position:" + \t + "Goalie")
  3. input; print
  4. b. Formal Language
  5. b. input
  6. name = input("Good Morning, Who are you?")

print(f"Hi there {name}, nice to meet you")