Skip to content

Commit 87394a7

Browse files
committed
feat: adds Tyran's Quiz answers and adds Java port
1 parent 958664f commit 87394a7

File tree

16 files changed

+886
-11
lines changed

16 files changed

+886
-11
lines changed

lesson_02/quiz/src/lesson2.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export class Lesson2 {
3939
[AnswerChoice.C, "To delete unnecessary files"],
4040
[AnswerChoice.D, "To run code more efficiently"],
4141
]),
42-
AnswerChoice.UNANSWERED, // Replace `UNANSWERED` with the correct answer.
42+
AnswerChoice.B, // Replace `UNANSWERED` with the correct answer.
4343
);
4444
}
4545

@@ -56,7 +56,7 @@ export class Lesson2 {
5656
[AnswerChoice.C, "A tool for merging branches"],
5757
[AnswerChoice.D, "A way to delete a repository"],
5858
]),
59-
AnswerChoice.UNANSWERED, // Replace `UNANSWERED` with the correct answer.
59+
AnswerChoice.A, // Replace `UNANSWERED` with the correct answer.
6060
);
6161
}
6262

@@ -70,7 +70,7 @@ export class Lesson2 {
7070
[AnswerChoice.C, "Push changes to the server"],
7171
[AnswerChoice.D, "Write code directly in GitHub"],
7272
]),
73-
AnswerChoice.UNANSWERED, // Replace `UNANSWERED` with the correct answer.
73+
AnswerChoice.D, // Replace `UNANSWERED` with the correct answer.
7474
);
7575
}
7676

@@ -84,7 +84,7 @@ export class Lesson2 {
8484
[AnswerChoice.C, "git branch"],
8585
[AnswerChoice.D, "git pull"],
8686
]),
87-
AnswerChoice.UNANSWERED, // Replace `UNANSWERED` with the correct answer.
87+
AnswerChoice.B, // Replace `UNANSWERED` with the correct answer.
8888
);
8989
}
9090

@@ -98,7 +98,7 @@ export class Lesson2 {
9898
[AnswerChoice.C, "NetBeans"],
9999
[AnswerChoice.D, "VS Code"],
100100
]),
101-
AnswerChoice.UNANSWERED, // Replace `UNANSWERED` with the correct answer.
101+
AnswerChoice.D, // Replace `UNANSWERED` with the correct answer.
102102
);
103103
}
104104

@@ -112,7 +112,7 @@ export class Lesson2 {
112112
[AnswerChoice.C, "Dev Containers"],
113113
[AnswerChoice.D, "Source Control"],
114114
]),
115-
AnswerChoice.UNANSWERED, // Replace `UNANSWERED` with the correct answer.
115+
AnswerChoice.C, // Replace `UNANSWERED` with the correct answer.
116116
);
117117
}
118118

@@ -126,7 +126,7 @@ export class Lesson2 {
126126
[AnswerChoice.C, "Playing music"],
127127
[AnswerChoice.D, "Managing source control"],
128128
]),
129-
AnswerChoice.UNANSWERED, // Replace `UNANSWERED` with the correct answer.
129+
AnswerChoice.C, // Replace `UNANSWERED` with the correct answer.
130130
);
131131
}
132132

@@ -140,7 +140,7 @@ export class Lesson2 {
140140
[AnswerChoice.C, "cd"],
141141
[AnswerChoice.D, "mkdir"],
142142
]),
143-
AnswerChoice.UNANSWERED, // Replace `UNANSWERED` with the correct answer.
143+
AnswerChoice.B, // Replace `UNANSWERED` with the correct answer.
144144
);
145145
}
146146

@@ -154,7 +154,7 @@ export class Lesson2 {
154154
[AnswerChoice.C, "cd"],
155155
[AnswerChoice.D, "mkdir"],
156156
]),
157-
AnswerChoice.UNANSWERED, // Replace `UNANSWERED` with the correct answer.
157+
AnswerChoice.C, // Replace `UNANSWERED` with the correct answer.
158158
);
159159
}
160160

@@ -168,7 +168,7 @@ export class Lesson2 {
168168
[AnswerChoice.C, "Remove a file or directory"],
169169
[AnswerChoice.D, "Copy a file or directory"],
170170
]),
171-
AnswerChoice.UNANSWERED, // Replace `UNANSWERED` with the correct answer.
171+
AnswerChoice.A, // Replace `UNANSWERED` with the correct answer.
172172
);
173173
}
174174

@@ -182,7 +182,7 @@ export class Lesson2 {
182182
[AnswerChoice.C, "⌘ + Q"],
183183
[AnswerChoice.D, '⌘ + S, then type "terminal"'],
184184
]),
185-
AnswerChoice.UNANSWERED, // Replace `UNANSWERED` with the correct answer.
185+
AnswerChoice.B, // Replace `UNANSWERED` with the correct answer.
186186
);
187187
}
188188
}

lesson_02/quiz_java/.gitattributes

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#
2+
# https://help.github.com/articles/dealing-with-line-endings/
3+
#
4+
# Linux start script should use lf
5+
/gradlew text eol=lf
6+
7+
# These are Windows script files and should use crlf
8+
*.bat text eol=crlf
9+
10+
# Binary files should be left untouched
11+
*.jar binary
12+

lesson_02/quiz_java/.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Ignore Gradle project-specific cache directory
2+
.gradle
3+
4+
# Ignore Gradle build output directory
5+
build
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
/*
2+
* This file was generated by the Gradle 'init' task.
3+
*/
4+
5+
6+
plugins {
7+
java
8+
id("org.springframework.boot") version "3.1.0"
9+
id("io.spring.dependency-management") version "1.1.0"
10+
application
11+
}
12+
13+
14+
java {
15+
toolchain {
16+
languageVersion.set(JavaLanguageVersion.of(21))
17+
}
18+
}
19+
20+
repositories {
21+
mavenCentral()
22+
}
23+
24+
dependencies {
25+
implementation("org.apache.commons:commons-text:1.10.0")
26+
implementation(project(":instructional-lib"))
27+
implementation("org.springframework.boot:spring-boot-starter")
28+
testImplementation("org.springframework.boot:spring-boot-starter-test")
29+
30+
}
31+
32+
33+
34+
application {
35+
// Define the main class for the application.
36+
mainClass.set("org.example.Lesson2")
37+
}
38+
39+
tasks.named<Test>("test") {
40+
// Use JUnit Platform for unit tests.
41+
useJUnitPlatform()
42+
}

0 commit comments

Comments
 (0)