1+ import {
2+ AnswerChoice ,
3+ MultipleChoiceQuizQuestion ,
4+ QuizQuestion ,
5+ QuizQuestionProvider ,
6+ } from 'codedifferently-instructional' ;
7+
8+ export class DevynBensonQuiz implements QuizQuestionProvider {
9+ getProviderName ( ) : string {
10+ return 'devynbenson' ;
11+ }
12+
13+ makeQuizQuestions ( ) : QuizQuestion [ ] {
14+ return [
15+ DevynBensonQuiz . makeQuestion0 ( ) ,
16+ DevynBensonQuiz . makeQuestion1 ( ) ,
17+ DevynBensonQuiz . makeQuestion2 ( ) ,
18+ DevynBensonQuiz . makeQuestion3 ( ) ,
19+ DevynBensonQuiz . makeQuestion4 ( ) ,
20+ DevynBensonQuiz . makeQuestion5 ( ) ,
21+ DevynBensonQuiz . makeQuestion6 ( ) ,
22+ DevynBensonQuiz . makeQuestion7 ( ) ,
23+ DevynBensonQuiz . makeQuestion8 ( ) ,
24+ DevynBensonQuiz . makeQuestion9 ( ) ,
25+ ] ;
26+ }
27+
28+ private static makeQuestion0 ( ) : QuizQuestion {
29+ return new MultipleChoiceQuizQuestion (
30+ 0 ,
31+ 'What command is used to initialize a new Git repository?' ,
32+ new Map < AnswerChoice , string > ( [
33+ [ AnswerChoice . A , 'git start' ] ,
34+ [ AnswerChoice . B , 'git create' ] ,
35+ [ AnswerChoice . C , 'git new' ] ,
36+ [ AnswerChoice . D , 'git init' ] ,
37+ ] ) ,
38+ AnswerChoice . UNANSWERED ,
39+ ) ; // Replace `UNANSWERED` with the correct answer.
40+ }
41+
42+ private static makeQuestion1 ( ) : QuizQuestion {
43+ return new MultipleChoiceQuizQuestion (
44+ 1 ,
45+ 'Which of the following is NOT a basic data type in most programming languages?' ,
46+ new Map < AnswerChoice , string > ( [
47+ [ AnswerChoice . A , 'Integer' ] ,
48+ [ AnswerChoice . B , 'String' ] ,
49+ [ AnswerChoice . C , 'Boolean' ] ,
50+ [ AnswerChoice . D , 'Repository' ] ,
51+ ] ) ,
52+ AnswerChoice . UNANSWERED ,
53+ ) ; // Replace `UNANSWERED` with the correct answer.
54+ }
55+
56+ private static makeQuestion2 ( ) : QuizQuestion {
57+ return new MultipleChoiceQuizQuestion (
58+ 2 ,
59+ 'What is apart of the 6 steps?' ,
60+ new Map < AnswerChoice , string > ( [
61+ [ AnswerChoice . A , 'Versatility' ] ,
62+ [ AnswerChoice . B , 'Adapt' ] ,
63+ [ AnswerChoice . C , 'Do Not Communicate' ] ,
64+ [ AnswerChoice . D , 'Ask Questions' ] ,
65+ ] ) ,
66+ AnswerChoice . UNANSWERED ,
67+ ) ; // Replace `UNANSWERED` with the correct answer.
68+ }
69+
70+ private static makeQuestion3 ( ) : QuizQuestion {
71+ return new MultipleChoiceQuizQuestion (
72+ 3 ,
73+ 'What is the basic unit of computer memory?' ,
74+ new Map < AnswerChoice , string > ( [
75+ [ AnswerChoice . A , 'Bit' ] ,
76+ [ AnswerChoice . B , 'Byte' ] ,
77+ [ AnswerChoice . C , 'Word' ] ,
78+ [ AnswerChoice . D , 'Block' ] ,
79+ ] ) ,
80+ AnswerChoice . UNANSWERED ,
81+ ) ; // Replace `UNANSWERED` with the correct answer.
82+ }
83+ private static makeQuestion4 ( ) : QuizQuestion {
84+ return new MultipleChoiceQuizQuestion (
85+ 4 ,
86+ 'What does CPU stand for?' ,
87+ new Map < AnswerChoice , string > ( [
88+ [ AnswerChoice . A , 'Computer Processing Unit' ] ,
89+ [ AnswerChoice . B , 'Central Program Unit' ] ,
90+ [ AnswerChoice . C , 'Core Processing Unit' ] ,
91+ [ AnswerChoice . D , 'Central Processing Unit' ] ,
92+ ] ) ,
93+ AnswerChoice . UNANSWERED ,
94+ ) ; // Replace `UNANSWERED` with the correct answer.
95+ }
96+ private static makeQuestion5 ( ) : QuizQuestion {
97+ return new MultipleChoiceQuizQuestion (
98+ 5 ,
99+ 'Which Git command is used to create a new branch?' ,
100+ new Map < AnswerChoice , string > ( [
101+ [ AnswerChoice . A , 'git new-branch' ] ,
102+ [ AnswerChoice . B , 'git create-branch' ] ,
103+ [ AnswerChoice . C , 'git make-branch' ] ,
104+ [ AnswerChoice . D , 'git branch' ] ,
105+ ] ) ,
106+ AnswerChoice . UNANSWERED ,
107+ ) ; // Replace `UNANSWERED` with the correct answer.
108+ }
109+ private static makeQuestion6 ( ) : QuizQuestion {
110+ return new MultipleChoiceQuizQuestion (
111+ 6 ,
112+ 'What is the main purpose of GitHub?' ,
113+ new Map < AnswerChoice , string > ( [
114+ [ AnswerChoice . A , 'Social networking' ] ,
115+ [ AnswerChoice . B , 'Online shopping' ] ,
116+ [ AnswerChoice . C , 'Video streaming' ] ,
117+ [ AnswerChoice . D , 'Code hosting and version control' ] ,
118+ ] ) ,
119+ AnswerChoice . UNANSWERED ,
120+ ) ; // Replace `UNANSWERED` with the correct answer.
121+ }
122+
123+ private static makeQuestion7 ( ) : QuizQuestion {
124+ return new MultipleChoiceQuizQuestion (
125+ 7 ,
126+ 'Which component is considered the "brain" of the computer?' ,
127+ new Map < AnswerChoice , string > ( [
128+ [ AnswerChoice . A , 'RAM' ] ,
129+ [ AnswerChoice . B , 'CPU' ] ,
130+ [ AnswerChoice . C , 'Hard Drive' ] ,
131+ [ AnswerChoice . D , 'Motherboard' ] ,
132+ ] ) ,
133+ AnswerChoice . UNANSWERED ,
134+ ) ; // Replace `UNANSWERED` with the correct answer.
135+ }
136+
137+ private static makeQuestion8 ( ) : QuizQuestion {
138+ return new MultipleChoiceQuizQuestion (
139+ 8 ,
140+ 'In programming, what does "debugging" mean?' ,
141+ new Map < AnswerChoice , string > ( [
142+ [ AnswerChoice . A , 'Writing new code' ] ,
143+ [ AnswerChoice . B , 'Deleting old files' ] ,
144+ [ AnswerChoice . C , 'Finding and fixing errors in code' ] ,
145+ [ AnswerChoice . D , 'Compiling code' ] ,
146+ ] ) ,
147+ AnswerChoice . UNANSWERED ,
148+ ) ; // Replace `UNANSWERED` with the correct answer.
149+ }
150+
151+ private static makeQuestion9 ( ) : QuizQuestion {
152+ return new MultipleChoiceQuizQuestion (
153+ 9 ,
154+ 'What does RAM stand for in computer architecture?' ,
155+ new Map < AnswerChoice , string > ( [
156+ [ AnswerChoice . A , 'Read Access Memory' ] ,
157+ [ AnswerChoice . B , 'Rapid Application Memory' ] ,
158+ [ AnswerChoice . C , 'Remote Access Module' ] ,
159+ [ AnswerChoice . D , 'Random Access Memory' ] ,
160+ ] ) ,
161+ AnswerChoice . UNANSWERED ,
162+ ) ; // Replace `UNANSWERED` with the correct answer.
163+ }
164+ }
0 commit comments