1. Questions
Question 1
Replace the text box by the result of the intersection and make the test true:
module Question1
test bool setIntersection() =
{-62,-48,-40,29,22} & {-62,-27,-6} == ;
Question 2
Replace the text box by a function name and make the test true:
module Question2
import List;
test bool listFunction() =
([62, 8, -73, -63]) == <62,[8,-73,-63]>;
Question 3
Which means of transportation is faster:
Apache Helicopter
High-speed train
Ferrari F430
Hovercraft
Question 4
Place all code fragments in the grey box in the right order with the right indentation
y += 2;
println("hello");
}
if(x > 0){
x += 1;
Question 5
Click on all identifiers in this code fragment:
x = 1;
if(x){
y = x + 2;
}
Question 6
Place all code fragments in the grey box in the right order with the right indentation (and avoid decoys):
if(x > 0){
x += 1;
}
x #= 1;
y += 2;
println("hello");
Question 7
Reorder the following items and make all statements true:
- [1,2,3]
- {1,2,3}
- 123
- "abc"
- is a str
- is a list[int]
- is a set[int]
- is an int
Question 8
Reorder the following items and make all statements true:
- 2
- "abcd"
- 12
- 5
- is equal to "ab" + "cd"
- is less than 6
- is greater than 1
- is equal to 10+2
