1. Questions
Question 1
Replace the text box by the result of the intersection and make the test true:
module Question1
test bool setIntersection() =
{-48,-17,-34,23,44,12,70,-69,-3} & {76,55,-94,-34,44,70,-69,-3} == ;
Question 2
Replace the text box by a function name and make the test true:
module Question2
import List;
test bool listFunction() =
([-19, 92, -2, -25, -54]) == ←19,[92,-2,-25,-54]>;
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;
y += 2;
println("hello");
x #= 1;
Question 7
Reorder the following items and make all statements true:
- [1,2,3]
- {1,2,3}
- 123
- "abc"
- is a set[int]
- is a list[int]
- is a str
- is an int
Question 8
Reorder the following items and make all statements true:
- 12
- "abcd"
- 5
- 2
- is equal to "ab" + "cd"
- is less than 6
- is equal to 10+2
- is greater than 1
