CORRECT 100%
Which value is stored as an integer in computer programming? - ANSWER21.
Rationale: The integer data type is used to represent positive or negative whole
numbers without fractional parts.
Which coding construct repeats a task while a condition is true? - ANSWERIteration.
Rationale: The iteration construct, or the looping construct, uses a while statement to
perform the same task over and over again as long as the condition is true.
What is the relationship between a parameter and an argument? - ANSWERA
parameter is a temporary variable in a function that receives the actual value of an
argument. Rationale: A parameter is defined within a function and serves as a
temporary placeholder. The argument is the actual value that is passed to the function
and gets temporarily stored in the parameter.
How are items accessed in a stack? - ANSWERThe last item to be added becomes the
first item removed (LIFO). Rationale: A stack is an ordered group of items that can only
be accessed at one end, called the top of the stack. Items can be pushed onto and
popped off of this end. Therefore, the last item to be added becomes the first item
removed.
A web browser puts websites into a viewing history log and accesses the most recent
one when the back button is clicked. Which data structure would be appropriate for this
situation? - ANSWERStack. Rationale: A stack is an ordered group of items that can
only be accessed at one end, called the top of the stack. Items can be pushed onto and
popped off of this end. In this case, the only item needing to be accessed is the most
recently added item. Therefore, a stack is most appropriate for storing the data.
Which programming language is considered to be a declarative language? -
ANSWERLisp - The declarative programming paradigm is a model in which the results
are described, but the steps to accomplish the results are not stated. There are two
basic models within this paradigm, functional and logical. Lisp is an example of
declarative.