D335: Introduction to Python (Sections 1-4) Questions
with complete solution 2026
1 Input A program gets data, perhaps from a file, keyboard,
. touchscreen, network, etc.
2 Proces A program performs computations on that data, such as
. s adding two values like x + y
3. Output A program puts that data somewhere, such as to a file, screen, or
network.
4. computational creating a sequence of instructions to solve a problem
think-ing,
5. algorithm A sequence of instructions that solves a problem
6. Python interpreter a computer program that executes code written in the Python
program-
ming language.
7. interactive a program that allows the user to execute one line of code at a time
inter-preter
8. Code a common word for the textual representation of a program
9. line row of text
10. prompt indicates the interpreter is ready to accept code
11. statement a program instruction
12. Expressions code that return a value when evaluated
13. cariables named references to values stored by the interpreter
14. print() function that displays variables or expression values
15. '#" character tha denote comments, which are optional but can be
used to explains portions of code to a human reader
1/
21
,2/
21
, D335: Introduction to Python (Sections 1-4)
16. string literal text enclosed in quotes (single or double) and can contain letters,
numbers,
spaces, or symbols
17. Why would a To keep the output on the same line
pro-grammer
add end=' '
inside of
print()?
to output the value of a variable
18. print(variable_na
me)
*without quotes*
19. \n newline character; output can be moved to the next line
20. whitespace any space, tab, or newline
21. variable = input() reads a user-enter string and changes it into a variable
22. type determines how a value can behave
23. int() converts a string to an integer
24. syntax error violating a programming language's rules on how symbols can be
com-
bined to create a program
25. runtime error program's syntax is correct, but the program attemps an impossible
oper-
ation, such as dividing by zero or multiplying strings together
26. crash Abrupt and unintended termination of a program
27. SyntaxError The program contains invalid code that cannot be understood.
3/
21
with complete solution 2026
1 Input A program gets data, perhaps from a file, keyboard,
. touchscreen, network, etc.
2 Proces A program performs computations on that data, such as
. s adding two values like x + y
3. Output A program puts that data somewhere, such as to a file, screen, or
network.
4. computational creating a sequence of instructions to solve a problem
think-ing,
5. algorithm A sequence of instructions that solves a problem
6. Python interpreter a computer program that executes code written in the Python
program-
ming language.
7. interactive a program that allows the user to execute one line of code at a time
inter-preter
8. Code a common word for the textual representation of a program
9. line row of text
10. prompt indicates the interpreter is ready to accept code
11. statement a program instruction
12. Expressions code that return a value when evaluated
13. cariables named references to values stored by the interpreter
14. print() function that displays variables or expression values
15. '#" character tha denote comments, which are optional but can be
used to explains portions of code to a human reader
1/
21
,2/
21
, D335: Introduction to Python (Sections 1-4)
16. string literal text enclosed in quotes (single or double) and can contain letters,
numbers,
spaces, or symbols
17. Why would a To keep the output on the same line
pro-grammer
add end=' '
inside of
print()?
to output the value of a variable
18. print(variable_na
me)
*without quotes*
19. \n newline character; output can be moved to the next line
20. whitespace any space, tab, or newline
21. variable = input() reads a user-enter string and changes it into a variable
22. type determines how a value can behave
23. int() converts a string to an integer
24. syntax error violating a programming language's rules on how symbols can be
com-
bined to create a program
25. runtime error program's syntax is correct, but the program attemps an impossible
oper-
ation, such as dividing by zero or multiplying strings together
26. crash Abrupt and unintended termination of a program
27. SyntaxError The program contains invalid code that cannot be understood.
3/
21