This is a self assessment tool for Concur iOS Academy 2018
Results will not be personally evaluated and do not block registration to the course, they only serve for self-evaluation
Let's assume this piece of code
for (i = 0; i < 5; i ++) {
print(i)
}
What is going to be output?
0 points
Let's assume this piece of code
function printExclamation(input) {
if (input < 10) {
if (input > 5) {
print("Gotcha!")
} else {
print("Ouch")
}
} else {
print("Ouch")
}
}
For which values of input the above code will print "Gotcha!"?
0 points
Let's assume this piece of code
Given the following pseudo code, what would you expect to be printed as output?

array = [ 5, 1, -9, 7, -1, 0 ];
for (i = 0; i < array.length; i ++) {
if (array[i] < 0) {
print(array[i]*2)
} else {
print(array[i])
}
}

What is going to be the output?
0 points
Let's assume this piece of code
numbers = [ 5, 1, 9, 0, 7, 1 ]
value = numbers[0]
for (i = 1; i < numbers.length; i ++) {
if (numbers[i] > value) {
value = numbers[i]
}
}
print(value)
What will be output of the code?
0 points