Podcast
Questions and Answers
What does the function CREATE do?
What does the function CREATE do?
- Stores a value in an array
- Retrieves a value from an array
- Checks if two indices are equal
- Produces a new, empty array (correct)
What is the purpose of the RETRIEVE function?
What is the purpose of the RETRIEVE function?
- To retrieve a value from an array based on an index (correct)
- To check if two indices are equal
- To create a new array
- To store a value in an array
According to the given axioms, what does the statement 'RETRIEVE(CREATE,I)' do?
According to the given axioms, what does the statement 'RETRIEVE(CREATE,I)' do?
- Creates a new array with index I
- Checks if two indices are equal
- Returns an error
- Retrieves a value from the array with index I (correct)
What does the STORE function do?
What does the STORE function do?
Based on the given axioms, what does the axiom 'EQUAL(i,j) then z else RETRIEVE(A,j)' imply?
Based on the given axioms, what does the axiom 'EQUAL(i,j) then z else RETRIEVE(A,j)' imply?
Flashcards are hidden until you start studying