Problem set Exam Questions with all answers
Correctly provided Latest 2024/2025
Input - correct answer data that is passed into a procedure
Instantiation - correct answer creating instances of a class, or
creating an object from a class. Any number of instances may be
created from a class.
Integer - correct answer a whole number (not a fraction) that
can be positive, negative, or zero
Interpreted language - correct answer you write source code
and that file is used to run the program. When you run that file
an interpreter is used to process the source code when it is
needed. Can run on any platform and is easier to test. User must
have the interpreter to run the program.
Interpreter - correct answer a program that takes source
code and translates it to machine code when that code is needed.
Invoke - correct answer to activate. One usually speaks of
invoking a function in a program.
Len() - correct answer outputs the number of characters in a
string
,Library - correct answer huge amounts of code already
written, already tested, ready for you to link to and use within
your programs. Also called frameworks.
List - correct answer a mutable collection of objects. The
elements in a list can be of any type, including other lists.
Logical operators - correct answer the and and or operators.
The important property they have which is different from other
operators is that the second operand expression is evaluated only
when necessary.
Loop - correct answer provide a way to evaluate the same
block of code an arbitrary number of times
Machine code - correct answer code that the computer
actually understands. Written as numerical operations, works on
the level of the cpu, too tedious for writing directly.
Mutation - correct answer change or cause to change in form
or nature
Object - correct answer something self-contained, has an
identity separate from other objects. Has its own attributes and
behaviors.
Operand - correct answer the inputs to a procedure. Also
called arguments.
, Operator - correct answer constructs which behave generally
like functions, but which differ syntactically or semantically from
usual functions. Examples: arithmetic (addition with +,
comparison with >) and logical operations (such as and or &&)
Parameters - correct answer the inputs to a procedure. There
can be any number of parameters (including none).
Polymorphism - correct answer means many forms. It lets us
automatically do the correct behavior even if what we're working
with could take one of many different forms.
Pop() - correct answer mutates a list by removing its last
element. Outputs the value of that element.
Precedence - correct answer the order of operations. A rule
used to clarify which procedures should be performed first in a
given mathematical expression.
Procedure - correct answer takes in inputs, does some
processing, and produces outputs. This differs from an algorithm,
because the processing simply has to execute a set of commands
and doesn't necessarily have to return a value.
Programming - correct answer a series of instructions telling
the computer to do something. It's breaking apart a more
complex idea, a more complex task, into its smallest individual