CSCI 1103 PROGRAMMING EXAM 2025
UPDATED QUESTIONS AND ANSWERS
◉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 a file,
screen, or network.
◉Program . Answer: A computer program consists of instructions
executing one at a time
◉Variables . Answer: Programs use variables to refer to data, like x, y,
and z
◉Algorithm . Answer: Sequence of instructions to solve a problem
◉Python interpreter . Answer: is a computer program that executes code
written in the Python programming language. An interactive interpreter
is a program that allows the user to execute one line of code at a time.
, ◉Code . Answer: is a common word for the textual representation of a
program (and hence programming is also called coding).
◉Line . Answer: is a row of text
◉prompt . Answer: indicates the interpreter is ready to accept code. The
user types a line of Python code and presses the enter key to execute the
code.
◉statement . Answer: is a program instruction. A program mostly
consists of a series of statements, and each statement usually appears on
its own line.
◉Expressions . Answer: are code that return a value when evaluated; for
example, the code wage * hours * weeks is an expression that computes
a number. The symbol * is used for multiplication. The names wage,
hours, weeks, and salary are variables, which are named references to
values stored by the interpreter.
◉assignment . Answer: A new variable is created by performing an
assignment using the = symbol, such as salary = wage * hours * weeks,
which creates a new variable called salary.
◉print() . Answer: function displays variables or expression values.
UPDATED QUESTIONS AND ANSWERS
◉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 a file,
screen, or network.
◉Program . Answer: A computer program consists of instructions
executing one at a time
◉Variables . Answer: Programs use variables to refer to data, like x, y,
and z
◉Algorithm . Answer: Sequence of instructions to solve a problem
◉Python interpreter . Answer: is a computer program that executes code
written in the Python programming language. An interactive interpreter
is a program that allows the user to execute one line of code at a time.
, ◉Code . Answer: is a common word for the textual representation of a
program (and hence programming is also called coding).
◉Line . Answer: is a row of text
◉prompt . Answer: indicates the interpreter is ready to accept code. The
user types a line of Python code and presses the enter key to execute the
code.
◉statement . Answer: is a program instruction. A program mostly
consists of a series of statements, and each statement usually appears on
its own line.
◉Expressions . Answer: are code that return a value when evaluated; for
example, the code wage * hours * weeks is an expression that computes
a number. The symbol * is used for multiplication. The names wage,
hours, weeks, and salary are variables, which are named references to
values stored by the interpreter.
◉assignment . Answer: A new variable is created by performing an
assignment using the = symbol, such as salary = wage * hours * weeks,
which creates a new variable called salary.
◉print() . Answer: function displays variables or expression values.