CSE 102: Exam 1 Part 2 Exam Questions
and Answers Graded A+
Expressions - Correct answer-code that return a value when evaluated
assigment - Correct answer-creates a new variable, = sign
print() - Correct answer-function displays variables or expression values
string literal - Correct answer-text enclosed in quotes
newline - Correct answer-new output line starts after each print statement
whitespace - Correct answer-any space, tab, or newline
newline character - Correct answer-Output can be moved to the next line by
printing \n
string - Correct answer-text in a computer program
type - Correct answer-a type determines how a value can behave
int() - Correct answer-function can be used to convert that string to the integer
SyntaxError - Correct answer-the program contains invalid code that cannot be
understood
©COPYRIGHT 2025, ALL RIGHTS RESERVED 1
, IndentationError - Correct answer-the lines of the program are not properly
indented
ValueError - Correct answer-An invalid value is used - can occur if giving letters to
int()
NameError - Correct answer-program tries to use a variable that does not exist
TypeError - Correct answer-An operation uses incorrect types - can occur if adding
an integer to a string
logic error (aka bug) - Correct answer-the program loads correctly, but would not
behave as intended
integrated development environment (IDE) - Correct answer-what code
development is usually done with
script - Correct answer-a program whose instructions are executed by another
program (called an interpreter)
Creator of python - Correct answer-Guido van Rossum
backwards compatible - Correct answer-The term given to software it it runs on
older versions of an operating system.
©COPYRIGHT 2025, ALL RIGHTS RESERVED 2
and Answers Graded A+
Expressions - Correct answer-code that return a value when evaluated
assigment - Correct answer-creates a new variable, = sign
print() - Correct answer-function displays variables or expression values
string literal - Correct answer-text enclosed in quotes
newline - Correct answer-new output line starts after each print statement
whitespace - Correct answer-any space, tab, or newline
newline character - Correct answer-Output can be moved to the next line by
printing \n
string - Correct answer-text in a computer program
type - Correct answer-a type determines how a value can behave
int() - Correct answer-function can be used to convert that string to the integer
SyntaxError - Correct answer-the program contains invalid code that cannot be
understood
©COPYRIGHT 2025, ALL RIGHTS RESERVED 1
, IndentationError - Correct answer-the lines of the program are not properly
indented
ValueError - Correct answer-An invalid value is used - can occur if giving letters to
int()
NameError - Correct answer-program tries to use a variable that does not exist
TypeError - Correct answer-An operation uses incorrect types - can occur if adding
an integer to a string
logic error (aka bug) - Correct answer-the program loads correctly, but would not
behave as intended
integrated development environment (IDE) - Correct answer-what code
development is usually done with
script - Correct answer-a program whose instructions are executed by another
program (called an interpreter)
Creator of python - Correct answer-Guido van Rossum
backwards compatible - Correct answer-The term given to software it it runs on
older versions of an operating system.
©COPYRIGHT 2025, ALL RIGHTS RESERVED 2