Converted everything to orgmode
converted everything to orgmode and added solution to the README files
This commit is contained in:
@@ -1,14 +0,0 @@
|
||||
# Task 1
|
||||
|
||||
This task is a text based task. You do not need to write any program/C++ file: the answer should be written in solutions.txt according to the indicated format. Lines that start with "#" are interpreted as comments. You can run the autograder to check correctness.
|
||||
|
||||
## Task
|
||||
|
||||
Which of the following expressions evaluate to `true`, which to `false`?
|
||||
|
||||
1. `3 >= 3`
|
||||
1. `true || false && false`
|
||||
1. `(true || false) && false`
|
||||
1. `3 > (1 < true)`
|
||||
1. `8 > 4 > 2 > 1`
|
||||
1. `2 < a < 4` (a is a variable of type int)
|
37
Informatik_I/Exercise_2/task_1/README.org
Normal file
37
Informatik_I/Exercise_2/task_1/README.org
Normal file
@@ -0,0 +1,37 @@
|
||||
#+TITLE: Task 1: Expression Evaluation
|
||||
#+AUTHOR: JirR02
|
||||
|
||||
|
||||
This task is a text based task. You do not need to write any program/C++ file: the answer should be written in solutions.txt according to the indicated format. Lines that start with "#" are interpreted as comments. You can run the autograder to check correctness.
|
||||
|
||||
* Task
|
||||
|
||||
Which of the following expressions evaluate to =true=, which to =false=?
|
||||
|
||||
1. =3 >= 3=
|
||||
1. =true || false && false=
|
||||
1. =(true || false) && false=
|
||||
1. =3 > (1 < true)=
|
||||
1. =8 > 4 > 2 > 1=
|
||||
1. =2 < a < 4= (a is a variable of type int)
|
||||
|
||||
* Solutions
|
||||
|
||||
#+begin_src txt
|
||||
# Lines starting with # are comments. Spaces are ignored.
|
||||
|
||||
# Replace the question marks, indicating which of the following expression evaluate to true, which to false.
|
||||
|
||||
|
||||
1. 3 >= 3 == true
|
||||
|
||||
2. true || false && false == true
|
||||
|
||||
3. (true || false) && false == false
|
||||
|
||||
4. 3 > (1 < true) == true
|
||||
|
||||
5. 8 > 4 > 2 > 1 == false
|
||||
|
||||
6. 2 < a < 4 == true
|
||||
#+end_src
|
@@ -1,17 +0,0 @@
|
||||
# Lines starting with # are comments. Spaces are ignored.
|
||||
|
||||
# Replace the question marks, indicating which of the following expression evaluate to true, which to false.
|
||||
|
||||
|
||||
1. 3 >= 3 == true
|
||||
|
||||
2. true || false && false == true
|
||||
|
||||
3. (true || false) && false == false
|
||||
|
||||
4. 3 > (1 < true) == true
|
||||
|
||||
5. 8 > 4 > 2 > 1 == false
|
||||
|
||||
6. 2 < a < 4 == true
|
||||
|
Reference in New Issue
Block a user