10/11/2024 1:41 PM
CSCI 1301 Midterm Exam Questions 100%
Solved.
Program - answer✔instructions executing on at a time
input - answer✔A program gets data, perhaps from a file, keyboard, touchscreen, network, etc.
Process - answer✔A program performs computations on that data, such as adding two values like
x + y.
output - answer✔A program puts that data somewhere, such as to a file, screen, network, etc.
Variables - answer✔refer to data, like x, y, and z
computational thinking - answer✔creating a sequence of instructions to solve a problem
Algorithm - answer✔a sequence of instructions that solve a problem
Python interpreter - answer✔a computer program that executes code written in the Python
programming language
interactive interpreter - answer✔a program that allows the user to execute one line of code at a
time
, ©SIRJOEL EXAM SOLUTIONS
10/11/2024 1:41 PM
code - answer✔a common word for the textual representation of a program
line - answer✔a row of text
prompt >>> - answer✔indicates the interpreter is ready to accept code
statement - answer✔a program instruction
expressions - answer✔code that return a value when evaluated
variables - answer✔named references to values stored by the interpreter
assignment - answer✔=
print() - answer✔displays variables or expression values
comments - answer✔optional but can be used to explain portions of code to a human reader
string - answer✔text enclosed in quotes
newline character - answer✔Output can be moved to the next line by printing "\n", known as a
newline character.
escape sequence - answer✔a string that has a special meaning, like the newline character that
always starts with a backslash
whitespace - answer✔any space, tab, or newline