Update train.jsonl
Browse files- train.jsonl +1 -40
train.jsonl
CHANGED
@@ -1,43 +1,4 @@
|
|
1 |
-
|
2 |
-
{"text": "<s>[INST] What are keywords in BASIC used for? [/INST] Keywords in BASIC can be used both as commands and as statements in a program. </s>"}
|
3 |
-
{"text": "<s>[INST] What is PRINT used for? [/INST] PRINT is used to make the computer display something on the screen. </s>"}
|
4 |
-
{"text": "<s>[INST] What should you do at the end of each line after typing a command? [/INST] Press RETURN at the end of each line. </s>"}
|
5 |
-
{"text": "<s>[INST] How does the computer handle basic arithmetic operations? [/INST] The computer can do addition, subtraction, multiplication, and division easily. </s>"}
|
6 |
-
{"text": "<s>[INST] What symbols does the computer use for mathematical operations? [/INST] + for addition, - for subtraction, * for multiplication, / for division, ^ for raise to the power, and . for decimal point. </s>"}
|
7 |
-
{"text": "<s>[INST] How do you type the + or * symbols? [/INST] Press the SHIFT key and the key for the symbol you want. </s>"}
|
8 |
-
{"text": "<s>[INST] What does MODE 5 do? [/INST] MODE 5 clears the screen and prepares it for drawing lines and text. </s>"}
|
9 |
-
{"text": "<s>[INST] What does COLOUR 129 do? [/INST] COLOUR 129 selects a red background. </s>"}
|
10 |
-
{"text": "<s>[INST] What does CLS do? [/INST] CLS clears the screen to the background color. </s>"}
|
11 |
-
{"text": "<s>[INST] What is 'working in command mode'? [/INST] Working in command mode means giving the computer commands that it obeys immediately. </s>"}
|
12 |
-
{"text": "<s>[INST] How do you use the user-defined function keys? [/INST] Each key can store a word or several words and can be programmed to perform a specific action. </s>"}
|
13 |
-
{"text": "<s>[INST] What does *KEY 2 COLOUR 2 ¦ M do? [/INST] It programs the f2 key to change the screen to COLOUR 2, which gives yellow lettering. </s>"}
|
14 |
-
{"text": "<s>[INST] What is the purpose of ¦M at the end of the line? [/INST] ¦M is the code used to get a RETURN into the User Defined Function Keys. </s>"}
|
15 |
-
{"text": "<s>[INST] How do you adjust the television screen display? [/INST] Use the *TV command. *TV 255 moves down one line, *TV 254 moves down two lines, *TV 1 moves up one line, and *TV 2 moves up two lines. </s>"}
|
16 |
-
{"text": "<s>[INST] When do the *TV movements take effect? [/INST] The movements take effect the next time you press BREAK or change MODE. </s>"}
|
17 |
-
{"text": "<s>[INST] What is the purpose of variables in BBC BASIC? [/INST] Variables in BBC BASIC are used to keep track of things that vary during a long calculation. </s>"}
|
18 |
-
{"text": "<s>[INST] How do you assign the number 5 to a variable Z in BBC BASIC? [/INST] In BBC BASIC, you can assign the number 5 to a variable Z using the command LET Z=5. </s>"}
|
19 |
-
{"text": "<s>[INST] What happens when you execute PRINT Z+6 after LET Z=5? [/INST] The computer will output 11. </s>"}
|
20 |
-
{"text": "<s>[INST] What command is used to multiply the value of Z by 12 and print it? [/INST] The command to multiply the value of Z by 12 and print it is PRINT Z * 12. </s>"}
|
21 |
-
{"text": "<s>[INST] How does the computer treat the variable Z after LET Z=71? [/INST] The computer updates the value of Z from 5 to 71. </s>"}
|
22 |
-
{"text": "<s>[INST] What is a numeric variable in BBC BASIC? [/INST] A numeric variable in BBC BASIC is a variable that can be used to store any number. </s>"}
|
23 |
-
{"text": "<s>[INST] Are variable names in BBC BASIC case-sensitive? [/INST] Yes, upper and lower case names are different in BBC BASIC. </s>"}
|
24 |
-
{"text": "<s>[INST] What are the four rules for naming variables in BBC BASIC? [/INST] 1) No spaces within the variable name. 2) Must start with a letter. 3) No punctuation marks except for underline. 4) Should not begin with BASIC keywords like PRINT and LET. </s>"}
|
25 |
-
{"text": "<s>[INST] How do you enable lower case characters on the BBC Micro? [/INST] To enable lower case characters, ensure that the CAPS LOCK is off. </s>"}
|
26 |
-
{"text": "<s>[INST] Can you provide examples of acceptable variable names in BBC BASIC? [/INST] Examples include AGE, this_year, lengthOFrod, CAR_mileage, value5, weight4, chicken2egg3. </s>"}
|
27 |
-
{"text": "<s>[INST] Why are certain variable names illegal in BBC BASIC? [/INST] Variable names are illegal if they have spaces, start with a number, include invalid punctuation, or start with a BASIC keyword. </s>"}
|
28 |
-
{"text": "<s>[INST] Is the word LET necessary before the variable name in BBC BASIC? [/INST] The word LET is optional. The computer will understand if you directly assign a value, like this_year=1982. </s>"}
|
29 |
-
{"text": "<s>[INST] What happens when you enter the command PRINT 'HOW ARE YOU' on a BBC Micro computer? [/INST] The computer will execute the command immediately. </s>"}
|
30 |
-
{"text": "<s>[INST] How does a BBC Micro computer behave differently when given a statement with a line number like 10 PRINT 'HOW ARE YOU'? [/INST] The computer regards that as instruction number 10 and does not execute it immediately, but expects other instructions to follow. </s>"}
|
31 |
-
{"text": "<s>[INST] How do you execute a set of instructions or a program on a BBC Micro computer? [/INST] Type the word RUN on the keyboard. The computer will execute the instructions one at a time and in line-number order. </s>"}
|
32 |
-
{"text": "<s>[INST] Write a program in BBC BASIC to repeatedly ask for a number, calculate 12 times the given number, and stop when 0 is entered. [/INST] A program to do this is \n10 REPEAT\n20 PRINT 'GIVE ME A NUMBER';\n30 INPUT B\n40 PRINT '12 TIMES ';B;' IS ';12*B\n50 UNTIL B=0\n</s>"}
|
33 |
-
{"text": "<s>[INST] How does the BBC Micro respond when you RUN the program and reach line 20? [/INST] Line 20 will print the message 'GIVE ME A NUMBER' on the screen. </s>"}
|
34 |
-
{"text": "<s>[INST] What is the function of the semi-colons in a PRINT statement in BBC BASIC? [/INST] The semi-colons tell the computer to print the next item on the same line as the previous one and right up against it. </s>"}
|
35 |
-
{"text": "<s>[INST] How do you stop a running program on a BBC Micro computer? [/INST] Press the 'panic button' marked ESCAPE on the keyboard. </s>"}
|
36 |
-
{"text": "<s>[INST] What mode is the BBC Micro in when it shows a '>' on the screen? [/INST] When the computer shows a '>', it is in Command Mode. </s>"}
|
37 |
-
{"text": "<s>[INST] How do you display the program currently in memory on a BBC Micro? [/INST] Type LIST and press RETURN. </s>"}
|
38 |
-
{"text": "<s>[INST] How do you correct an error in a line of code on a BBC Micro? [/INST] Two ways: Retype the whole line or use the screen editor. </s>"}
|
39 |
-
{"text": "<s>[INST] What is the function of the DELETE key in the BBC Micro's screen editor? [/INST] The DELETE key can be used to delete characters from the input line. </s>"}
|
40 |
-
{"text": "<s>[INST] How do you insert a new word into an existing line of code on a BBC Micro? [/INST] Use the arrow keys to move the cursor to the desired location and then type in the new word. </s>"}
|
41 |
{"text": "<s>[INST] How can you delete a line or group of lines in a BBC BASIC program? [/INST] To delete a line, type its line number and press RETURN. To delete a set of lines, type DELETE followed by the range of line numbers. </s>"}
|
42 |
{"text": "<s>[INST] What does the RENUMBER command do in BBC BASIC? [/INST] The RENUMBER command renumbers all the lines in the program so that they are in a tidy sequence. </s>"}
|
43 |
{"text": "<s>[INST] How do you remove a program from the memory of a BBC Micro computer? [/INST] Use the command NEW or press the BREAK key. </s>"}
|
|
|
1 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
{"text": "<s>[INST] How can you delete a line or group of lines in a BBC BASIC program? [/INST] To delete a line, type its line number and press RETURN. To delete a set of lines, type DELETE followed by the range of line numbers. </s>"}
|
3 |
{"text": "<s>[INST] What does the RENUMBER command do in BBC BASIC? [/INST] The RENUMBER command renumbers all the lines in the program so that they are in a tidy sequence. </s>"}
|
4 |
{"text": "<s>[INST] How do you remove a program from the memory of a BBC Micro computer? [/INST] Use the command NEW or press the BREAK key. </s>"}
|