Complete
Mark 1.00 out
of 1.00 Flag question
Let f,g: RR such that f(x) =, g(x) = √x +1. Which of the following statement is correct?
a.f is a function, g is not a function
b.fand gare functions
c.f is not a function, g is a function
d.fand gare not functions.
The correct answer is:f and g are not functions.
Question 34
Let's consider the following algorithm:
Complete
Mark 1.00 out of 1.00
procedure bubblesort(a1, a2,..., a real numbers with n ≥ 2)for i:=1 to n -1
for/:= 1 to n -i
Flag question
if aj aj+1 then interchange aj and aj+1
{a1, a2,..., An is in increasing order)
We use this algorithm to sort the list [1, 5, 3, 4, 7, 2]. What does the list look like when i=2, j=4?
A. [1, 3, 2, 4, 5, 7]
B. [1, 5, 3, 4, 2, 7]
C. [1, 3, 4, 5, 2, 7]
D. [1, 3, 4, 2, 5, 7]