-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstimuli.json
329 lines (328 loc) · 13.7 KB
/
stimuli.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
/* STIMULI FROM BELOW */
// https://ac.els-cdn.com/S1877042810009778/1-s2.0-S1877042810009778-main.pdf?_tid=c1bc4904-3661-4e5d-bd5c-492975d1c82a&acdnat=1521138601_271386bb96aa9b62d20c16c65ba4e79f
var stimuli = [
/* CATEGORY A */
[
{
"prompt": "Fill in the blank below",
"text": "To reach Simonville, the traveller needs to drive with extreme caution along the windy curves of the ________ road that climbs steeply to the summit.",
"line": 0,
"character": 105
},
{
"prompt": "Fill in the blank below",
"text": "The admiral rescinded her ________ to attack when she saw the white flag raised by the enemy sailors; she was relieved that she could bring an end to the hostilities.",
"line": 0,
"character": 30
},
{
"prompt": "Fill in the blank below",
"text": "Architects define a physical structure as a set of materials arranged in such a way that these materials can resist the downward ________ of gravity.",
"line": 0,
"character": 133
},
{
"prompt": "Fill in the blank below",
"text": "In frigid regions a ________ of ice under the soil surface prevents water from sinking deep into the soil, and so the water floods the land, helping to create bog and swamp conditions.",
"line": 0,
"character": 24
},
{
"prompt": "Fill in the blank below",
"text": "The library's ________ is a trove of Asian American historical documents, including rare materials about race relations.",
"line": 0,
"character": 18
},
{
"prompt": "Fill in the blank below",
"text": "Brian was so fond of his dog that their brief ________ left him not just saddened, but in a state of sorrow.",
"line": 0,
"character": 50
},
{
"prompt": "Fill in the blank below",
"text": "Since the foreign correspondent was accustomed to completing his ________ under tumultuous conditions, the commotion of the subway at rush hour presented no impediment to his creativity.",
"line": 0,
"character": 69
},
{
"prompt": "Fill in the blank below",
"text": "In addition to evaluating ________ of resumes and references, some employers want to supplement the hiring process by employing graphologists to study applicants' handwriting for character analysis.",
"line": 0,
"character": 30
},
{
"prompt": "Fill in the blank below",
"text": "New York fashion designer Anna Sui creates eclectic ________ that represent an amalgam of playful, 1970's funky style fused with an edgy, urban sensibility.",
"line": 0,
"character": 56
},
{
"prompt": "Fill in the blank below",
"text": "The lectures on quantum physics were invariably dull; the lecturer ________ his ill-prepared material in a manner guaranteed to send even the most ardent student to sleep.",
"line": 0,
"character": 71
},
{
"prompt": "Fill in the blank below",
"text": "The progress of the disease is subtle; it ________ stealthily without any symptoms in the early stages.",
"line": 0,
"character": 46
},
{
"prompt": "Fill in the blank below",
"text": "Using detailed observations made by ancient astronomers in China, Korea, and Japan to complement data ________ by modern instruments, scientists can establish precisely when a particular star exploded.",
"line": 0,
"character": 106
},
{
"prompt": "Fill in the blank below",
"text": "According to the ancient Greek philosopher Plato, only philosophy can provide genuine understanding because it scrutinizes assumptions that other areas of study merely ________ for granted.",
"line": 0,
"character": 172
},
{
"prompt": "Fill in the blank below",
"text": "Over the years the anthropologist's opinions had ossified: he refused to tolerate new ideas and nothing could ________ his mind.",
"line": 0,
"character": 114
},
{
"prompt": "Fill in the blank below",
"text": "Once his integrity had been challenged, the mayoral candidate was quick both to dismiss these attacks and to ________ counterattacks.",
"line": 0,
"character": 113
},
{
"prompt": "Fill in the blank below",
"text": "Because he had decided not to glorify himself through the sales of his new product, the inventor anonymously ________ all profits to charity.",
"line": 0,
"character": 113
},
{
"prompt": "Fill in the blank below",
"text": "Angered that the book arrived in the mail in such a shabby condition, Elliot insisted that the bookseller ________ it with a new copy.",
"line": 0,
"character": 110
}
],
/* CATEGORY B */
[
{
"prompt": "Some people believe that university students should be required to attend classes. Others believe that going to classes should be optional for students. Which point of view do you agree with, and why?",
"text": "",
"line": 0,
"character": 0
},
{
"prompt": "Should a city try to preserve its old, historic buildings or destroy them and replace them with modern buildings? Explain.",
"text": "",
"line": 0,
"character": 0
},
{
"prompt": "Do you agree or disagree with the following statement? The best way to travel is in a group led by a tour guide. Explain.",
"text": "",
"line": 0,
"character": 0
},
{
"prompt": "Some universities require students to take classes in many subjects. Other universities require students to specialize in one subject. Which is better? Explain.",
"text": "",
"line": 0,
"character": 0
},
{
"prompt": "Is it more important to be able to work with a group of people on a team or to work independently? Explain.",
"text": "",
"line": 0,
"character": 0
},
{
"prompt": "Some people prefer to spend time with one or two close friends. Others choose to spend time with a large number of friends. Compare the advantages of each choice.",
"text": "",
"line": 0,
"character": 0
},
{
"prompt": "Some people prefer to plan activities for their free time very carefully. Others choose not to make any plans at all for their free time. Compare the benefits of planning free-time activities with the benefits of not making plans.",
"text": "",
"line": 0,
"character": 0
},
{
"prompt": "Some people enjoy change, and they look forward to new experiences. Others like their lives to stay the same, and they do not change their usual habits. Compare these two approaches to life.",
"text": "",
"line": 0,
"character": 0
},
{
"prompt": "What would happen if everyone lived in space? (e.g., What type of houses would they live in? What type of clothing would they wear?)",
"text": "",
"line": 0,
"character": 0
}
],
/* CATEGORY X */
[
{
"prompt": "Using two statements, complete the definition of the function swapints that is passed two int variables. The function returns nothing but exchanges the values of the two variables.",
"text": "void swapints(int &a, int &b){\n\tint temp = a;\n\t/* YOUR CODE HERE */\n\t\n}\n",
"line": 3,
"character": 1
},
{
"prompt": "Write a function addOne that adds 1 to its integer reference parameter. The function returns nothing.",
"text": "void addOne (int& x) {\n\t/* YOUR CODE HERE */\n\t\n}\n",
"line": 2,
"character": 1
},
{
"prompt": "Complete the definition of the function absoluteValue such that it receives an integer parameter and returns the absolute value of the parameter's value.",
"text": "int absoluteValue(int num1) {\n\t/* YOUR CODE HERE */\n\t\n\tabsoluteValue = abs(num1);\n\treturn absoluteValue;\n}\n",
"line": 2,
"character": 1
},
{
"prompt": "Complete the for loop such that it prints the odd integers 11 through 121 inclusive, separated by spaces.",
"text": "for (int i = 11; i <= 121; /* YOUR CODE HERE */) {\n\tcout << i << \" \";\n}\n",
"line": 0,
"character": 47
},
{
"prompt": "Complete the definition of a function isSenior, that receives an integer parameter and returns true if the parameter's value is greater or equal to 65, and false otherwise.",
"text": "bool isSenior(int age) {\n\t/* YOUR CODE HERE */\n\t\n}\n",
"line": 2,
"character": 1
},
{
"prompt": "Write a for loop that prints the integers 1 through 40, separated by spaces or new lines. You may use only one variable, count which has already been declared as an integer.",
"text": "for (/* YOUR CODE HERE */) {\n\tcout << count << \" \";\n}\n",
"line": 0,
"character": 25
},
{
"prompt": "Write the definition of a function min that has two int parameters and returns the smaller.",
"text": "int min (int num1, int num2) {\n\t/* YOUR CODE HERE */\n\t}\n",
"line": 2,
"character": 1
},
{
"prompt": "Given an int variable k that has already been declared, use a for loop to print a single line consisting of 97 asterisks. Use no variables other than k.",
"text": "for (/* YOUR CODE HERE */){\n\tcout << \"*\";\n}\n",
"line": 0,
"character": 25
},
{
"prompt": "Complete the assignment of the variable isFailing such that it is set to true if exam_score is less than 50, and false otherwise",
"text": "int exam_score;\ncin >> exam_score;\nbool isFailing = /* YOUR CODE HERE */;\nif (isFailing) {\n\tcout << \"You failed!\" << endl;\n} else {\n\tcout << \"You passed!\" << endl;\n}\n",
"line": 2,
"character": 37
},
{
"prompt": "Using one expression, complete the function notDivisibleByThree that returns false if x is divisible by three, and true otherwise",
"text": "bool notDivisibleByThree(int x){\n\treturn /*YOUR CODE HERE*/;\n}\n",
"line": 1,
"character": 26
},
{
"prompt": "Given that an array of int named a has been declared with 12 elements and that the integer variable k holds a value between 0 and 6. Assign 9 to the element just after a[k].",
"text": "a[/* YOUR CODE HERE */] = 9;",
"line": 0,
"character": 22
},
{
"prompt": "Complete the if/else statement such that it assigns true to the variable fever if the variable temperature is greater than 98.6; otherwise it assigns false to fever.",
"text": "if (temperature > 98.6) {\n\t/* YOUR CODE HERE */\n\t\n} else {\n\tfever = false;\n}\n",
"line": 2,
"character": 1
},
{
"prompt": "Complete the definition of a function max that has three int parameters and returns the largest.",
"text": "int max(int x,int y,int z) {\n\tif (x > z && x > y) {\n\t\treturn x;\n\t} else if (/*YOUR CODE HERE*/) {\n\t\treturn y;\n\t} else {\n\t\treturn z;\n\t}\n}\n",
"line": 3,
"character": 30
},
{
"prompt": "Given two 3x5 2D arrays of integer, x1 and x2, write the code needed to copy every value from x1 to its corresponding element in x2.",
"text": "for(int i = 0; i < 3; i++){\n\tfor(int j = 0; j < 5; j++){\n\t\t/* YOUR CODE HERE */\n\t\t\n\t}\n}\n",
"line": 3,
"character": 2
},
{
"prompt": "You are given a 6x8 (6 rows, 8 columns) array of integers, x, already initialized and three integer variables: max, i and j. Write the necessary code so that max will have the largest value in the array x.",
"text": "max = x[0][0];\nfor(i = 0; i < 6; i++){\n\tfor(j = 0; j < 8; j++){\n\t\tif(/* YOUR CODE HERE */){\n\t\t\tmax = x[i][j];\n\t\t}\n\t}\n}\n",
"line": 3,
"character": 25
},
{
"prompt": "Complete the switch statement to output \"Moo!\" when the value of animal is \"cow\"",
"text": "switch(animal) {\n\tcase \"pig\":\n\t\tcout << \"Oink!\" << endl;\n\t\tbreak;\n\tcase \"hen\":\n\tcout << \"Cluck!\" << endl;\n\t\tbreak;\n\t/* YOUR CODE HERE */\n\t\n\n}\n",
"line": 8,
"character": 1
},
{
"prompt": "Write the definition of a function firstEqualsLast that checks if the first character of one string is the same as the last character of a second string",
"text": "bool firstEqualsLast(string a, string b) {\n\t/* YOUR CODE HERE */\n\t\n}\n",
"line": 2,
"character": 1
}
],
/* CATEGORY Y */
[
{
"prompt": "Clunker Motors Inc. is recalling all vehicles in its Extravagant line from model years 1999-2002. Given an int variable modelYear and a string modelName, print \"RECALL\" if modelYear and modelName match the recal details",
"text": "",
"line": 0,
"character": 0
},
{
"prompt": "Write a statement that toggles the value of the bool variable onOffSwitch. That is, if onOffSwitch is false, itsvalue is changed to true; if onOffSwitch is true, its value is changed to false.",
"text": "",
"line": 0,
"character": 0
},
{
"prompt": "Write the definition of a function isPositive, that receives an integer parameter and returns true if the parameter is positive, and false otherwise.",
"text": "",
"line": 0,
"character": 0
},
{
"prompt": "Implement a function is_sorted that accepts a vector of integer values and returns true if it is non-decreasing, and false otherwise",
"text": "",
"line": 0,
"character": 0
},
{
"prompt": "Given a string, s, and an integer, x, update s such that its characters are shifted by x. Ex. s = \"cd\", x = 1. Loop results in s = \"de\"",
"text": "",
"line": 0,
"character": 0
},
{
"prompt": "Given integer variables amount and total both initialized to 0, write a loop that reads in values for amount from standard in and adds them to total until total is greater than 100.",
"text": "",
"line": 0,
"character": 0
},
{
"prompt": "Implement a function containsDuplicate that accepts a vector of integers and returns true if it contains a duplicate element, and false otherwise",
"text": "",
"line": 0,
"character": 0
},
{
"prompt": "Implement a function secondGreatest that accepts a vector of integers and returns the second greatest element in the vector",
"text": "",
"line": 0,
"character": 0
},
{
"prompt": "Implement a function countdown() that accepts an integer n as a parameter and counts down from n, printing each number to standard output, separated by a space. After reaching n, print \"liftoff!\"",
"text": "",
"line": 0,
"character": 0
}
]
];