Quiz
TEST
Questions in this quiz (1)
1We want to create an algorithm called swapValues. Given two variables x and y the result should have the values of x and y swapped. Which of the following algorithms correctly swaps the values of x and y?
- Ay ← x
temp ← x
x ← y - Bx ← y
y ← x - Ctemp ← x
x ← y
y ← temp - Dtemp ← x
y ← temp
y ← x
- Ay ← x
Information
- Description
- Quiz on TEST, created by Victor Lu on 15/12/2018.
- Author
- Victor Lu
- Language
- English
- Views
- 0
- Tags
- Rating
- No ratings yet Rate this quiz