-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'code-differently:main' into nilejack-lesson_03
- Loading branch information
Showing
4 changed files
with
141 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
import { | ||
AnswerChoice, | ||
MultipleChoiceQuizQuestion, | ||
QuizQuestion, | ||
QuizQuestionProvider, | ||
} from 'codedifferently-instructional'; | ||
|
||
export class AngelicaCQuiz implements QuizQuestionProvider { | ||
getProviderName(): string { | ||
return 'angelicacastillo'; | ||
} | ||
|
||
makeQuizQuestions(): QuizQuestion[] { | ||
return [ | ||
AngelicaCQuiz.makeQuestion0(), | ||
AngelicaCQuiz.makeQuestion1(), | ||
AngelicaCQuiz.makeQuestion2(), | ||
]; | ||
} | ||
|
||
private static makeQuestion0(): QuizQuestion { | ||
return new MultipleChoiceQuizQuestion( | ||
0, | ||
'What does CPU stand for?', | ||
new Map<AnswerChoice, string>([ | ||
[AnswerChoice.A, 'Central Processing Unit'], | ||
[AnswerChoice.B, 'Central Program Unit'], | ||
[AnswerChoice.C,'Center Program Unit'], | ||
[AnswerChoice.D, 'Whatever you want it to be!'], | ||
]), | ||
AnswerChoice.UNANSWERED, | ||
); // Replace `UNANSWERED` with the correct answer. | ||
} | ||
private static makeQuestion1(): QuizQuestion { | ||
return new MultipleChoiceQuizQuestion( | ||
1, | ||
'Which of the following would be a "simple" essential part of the computer?', | ||
new Map<AnswerChoice, string>([ | ||
[AnswerChoice.A, 'RAM'], | ||
[AnswerChoice.B, 'CPU'], | ||
[AnswerChoice.C,'CASE'], | ||
[AnswerChoice.D, 'HARD DRIVE'], | ||
]), | ||
AnswerChoice.UNANSWERED, | ||
); // Replace `UNANSWERED` with the correct answer. | ||
} | ||
private static makeQuestion2(): QuizQuestion { | ||
return new MultipleChoiceQuizQuestion( | ||
2, | ||
'What would be considered the brains long term memory?', | ||
new Map<AnswerChoice, string>([ | ||
[AnswerChoice.A, 'Mother board'], | ||
[AnswerChoice.B, 'Hard drive'], | ||
[AnswerChoice.C,'Power supply'], | ||
[AnswerChoice.D, 'Computer'], | ||
]), | ||
AnswerChoice.UNANSWERED, | ||
); // Replace `UNANSWERED` with the correct answer. | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
import { | ||
AnswerChoice, | ||
MultipleChoiceQuizQuestion, | ||
QuizQuestion, | ||
QuizQuestionProvider, | ||
} from 'codedifferently-instructional'; | ||
|
||
export class DasiaEnglishQuiz implements QuizQuestionProvider { | ||
getProviderName(): string { | ||
return 'dasiaenglish'; | ||
} | ||
|
||
makeQuizQuestions(): QuizQuestion[] { | ||
return [ | ||
DasiaEnglishQuiz.makeQuestion0(), | ||
DasiaEnglishQuiz.makeQuestion1(), | ||
DasiaEnglishQuiz.makeQuestion2(), | ||
]; | ||
} | ||
|
||
private static makeQuestion0(): QuizQuestion { | ||
return new MultipleChoiceQuizQuestion( | ||
0, | ||
'How often should you sync your fork?', | ||
new Map<AnswerChoice, string>([ | ||
[AnswerChoice.A, 'Never'], | ||
[AnswerChoice.B, 'Once a day'], | ||
[AnswerChoice.C, 'About every hour or as often as possible'], | ||
[AnswerChoice.D, 'Once a week'], | ||
]), | ||
AnswerChoice.UNANSWERED, | ||
); // Replace `UNANSWERED` with the correct answer. | ||
} | ||
|
||
private static makeQuestion1(): QuizQuestion { | ||
return new MultipleChoiceQuizQuestion( | ||
1, | ||
'What is a computer?', | ||
new Map<AnswerChoice, string>([ | ||
[ | ||
AnswerChoice.A, | ||
'A machine that transforms input to output data using automatically executed pre-programmed instructions', | ||
], | ||
[AnswerChoice.B, 'A machine'], | ||
[AnswerChoice.C, 'A laptop'], | ||
[ | ||
AnswerChoice.D, | ||
'A machine that automatically executed pre-programmed instructions', | ||
], | ||
]), | ||
AnswerChoice.UNANSWERED, | ||
); // Replace `UNANSWERED` with the correct answer. | ||
} | ||
private static makeQuestion2(): QuizQuestion { | ||
return new MultipleChoiceQuizQuestion( | ||
2, | ||
'What part of the computer does everything have to run through?', | ||
new Map<AnswerChoice, string>([ | ||
[AnswerChoice.A, 'CPU'], | ||
[AnswerChoice.B, 'GPU'], | ||
[AnswerChoice.C, 'RAM'], | ||
[AnswerChoice.D, 'Motherboard'], | ||
]), | ||
AnswerChoice.UNANSWERED, | ||
); // Replace `UNANSWERED` with the correct answer. | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters