RascalTutor
Synopsis

Test Case

Usage
rascal>NOW = $T20:11:01.463+00:00$;
datetime: $T20:11:01.463+00:00$
rascal>NOW.year = 2020;
Error: Cannot get year on a time value

1. Questions

Question 1

Replace text box by the result of the intersection and make the test true.

module Question1

test bool setIntersection() =
     {-12,7,-91,-8,71,29} & {-8,83,96,-47} ==
;

Question 2

Replace text box by a function name and make the test true.

module Question2
import List;

test bool listFunction() =
([24, 8, 58]) == <24,[8,58]>;

Question 3

Which means of transportation is faster

Apache Helicopter
High-speed train
Ferrari F430
Hovercraft

Question 4

Click on all identifiers in this code fragment

x = 1;
if(x){
   y = x + 2;
}