Science - CH.1 Test Questions with
Accurate Answers
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?
- Record
- List
- Queue
- Stack correct answer Stack
How are items accessed in a stack?
- The item removed is the one that has been in the longest time.
- All items can be added to or removed from any location.
- The last item to be added becomes the first item removed.
- All items can be accessed or changed but not easily inserted or
removed. correct answer The last item to be added becomes the first
item removed.
What is the relationship between a parameter and an argument?
- A parameter is passed to a function by reference, whereas an
argument is passed by value.