Update train.jsonl
Browse files- train.jsonl +13 -13
train.jsonl
CHANGED
@@ -8,7 +8,7 @@
|
|
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
|
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>"}
|
@@ -26,14 +26,14 @@
|
|
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
|
30 |
-
{"text": "<s>[INST] How does a BBC Micro computer behave differently when given a statement with a line number like 10 PRINT
|
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
|
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
|
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
|
36 |
-
{"text": "<s>[INST] What mode is the BBC Micro in when it shows a
|
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>"}
|
@@ -47,7 +47,7 @@
|
|
47 |
{"text": "<s>[INST] How can you delete a range of lines in a BBC BASIC program? [/INST] To delete a range of lines, use the command DELETE followed by the first and last line numbers of the range, separated by a comma. </s>"}
|
48 |
{"text": "<s>[INST] What caution should you exercise while deleting lines in a BBC BASIC program? [/INST] You cannot retrieve these lines once deleted unless you copy them from the screen before deletion. </s>"}
|
49 |
{"text": "<s>[INST] What is the function of the RENUMBER command in BBC BASIC? [/INST] The RENUMBER command renumbers all lines in your program in a tidy sequence. </s>"}
|
50 |
-
{"text": "<s>[INST] Write a BBC BASIC program to illustrate the function of the RENUMBER command [/INST] A program to illustrate the function of the RENUMBER command is \n1 REM ** GOTO GOTO GOTO\n2 REM WITH ACKNOWLEDGEMENTS TO\n3 REM
|
51 |
{"text": "<s>[INST] Does the RENUMBER command also update the line numbers in the GOTO statements? [/INST] Yes, the RENUMBER command updates the line numbers referred to in GOTO statements within the program. </s>"}
|
52 |
{"text": "<s>[INST] How can you remove an existing program from the BBC Micro computer's memory? [/INST] Use the command NEW or press the BREAK key to remove the existing program from memory. </s>"}
|
53 |
{"text": "<s>[INST] Is it possible to retrieve a program once it's been removed from the BBC Micro computer's memory? [/INST] Type OLD and press RETURN to retrieve a removed program, provided you haven't started typing in a new one. </s>"}
|
@@ -69,18 +69,18 @@
|
|
69 |
{"text": "<s>[INST] How can you clear the graphics area in BBC BASIC? [/INST] Use the CLG command to clear the graphics area. </s>"}
|
70 |
{"text": "<s>[INST] What is the role of VDU 26 command in BBC BASIC? [/INST] VDU 26 resets both text and graphics windows to fill the whole screen. </s>"}
|
71 |
{"text": "<s>[INST] What does VDU 5 enable in BBC BASIC? [/INST] VDU 5 allows text to be drawn at any position inside a graphics window. </s>"}
|
72 |
-
{"text": "<s>[INST] Write a BBC BASIC program to set text and graphics areas and draw lines. [/INST] A program to set text and graphics areas and draw lines is \n10 MODE 5\n20 VDU 24, 0; 0; 500; 1000;\n30 VDU 28,10,20,19,5\n40 COLOUR 129\n50 COLOUR 2\n60 GCOL 0,130\n70 CLS : CLG\n80 FOR N=1 TO 1000\n90 PRINT
|
73 |
{"text": "<s>[INST] What does the TAB statement do in BBC BASIC? [/INST] The TAB statement starts printing at a specific place on the screen. </s>"}
|
74 |
{"text": "<s>[INST] How many characters can a line have in the MODE 7 in BBC BASIC? [/INST] MODE 7 has 40 characters. </s>"}
|
75 |
-
{"text": "<s>[INST] Write a BBC BASIC program to print the value of F and 2*F at specific positions on the screen. [/INST] A program to do this is \n10 PRINT
|
76 |
-
{"text": "<s>[INST] What will happen if you put a space between TAB and its argument? [/INST] The computer will not understand and will report
|
77 |
{"text": "<s>[INST] What happens if you are beyond the place you specify with TAB in BBC BASIC? [/INST] The computer moves to the next line and then tabs to the specified place. </s>"}
|
78 |
{"text": "<s>[INST] Write a BBC BASIC program that counts to 1000, printing each number at specific X and Y text coordinates. [/INST] A program to do this is \n5 CLS\n10 Q=1\n20 REPEAT\n30 PRINT TAB(18,5);Q\n40 Q=Q+1\n50 UNTIL Q=1000\n</s>"}
|
79 |
{"text": "<s>[INST] How does PRINT TAB(X,Y) differ from PRINT TAB(X) in BBC BASIC? [/INST] PRINT TAB(X,Y) allows text to be printed at any specific X and Y character location on the screen. </s>"}
|
80 |
-
{"text": "<s>[INST] Write a BBC BASIC program to subscript the chemical formula H2. [/INST] A program to do this is \n10 MODE 4\n20 VDU 5\n30 MOVE 500,500\n40 PRINT
|
81 |
{"text": "<s>[INST] What is the purpose of the VDU 5 statement in BBC BASIC? [/INST] VDU 5 enables text to be printed at the exact position of the graphics cursor. </s>"}
|
82 |
{"text": "<s>[INST] What limitations are there when using VDU 5 in BBC BASIC? [/INST] VDU 5 does not work in text-only modes like MODES 3, 6, and 7. Also, you can only print things in the graphics window and not in the text window. </s>"}
|
83 |
{"text": "<s>[INST] How can the text cursor be moved in BBC BASIC? [/INST] The text cursor can be moved with special control codes, PRINT TAB(X,Y), or the VDU command. </s>"}
|
84 |
-
{"text": "<s>[INST] What VDU command moves the cursor to the
|
85 |
{"text": "<s>[INST] How can you turn off the flashing cursor in BBC BASIC? [/INST] The flashing cursor can be turned off with the statement VDU 23;8202;0;0;0;. </s>"}
|
86 |
{"text": "<s>[INST] How can you turn the cursor back on in BBC BASIC? [/INST] The cursor can be turned back on with the MODE statement. </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>"}
|
|
|
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>"}
|
|
|
47 |
{"text": "<s>[INST] How can you delete a range of lines in a BBC BASIC program? [/INST] To delete a range of lines, use the command DELETE followed by the first and last line numbers of the range, separated by a comma. </s>"}
|
48 |
{"text": "<s>[INST] What caution should you exercise while deleting lines in a BBC BASIC program? [/INST] You cannot retrieve these lines once deleted unless you copy them from the screen before deletion. </s>"}
|
49 |
{"text": "<s>[INST] What is the function of the RENUMBER command in BBC BASIC? [/INST] The RENUMBER command renumbers all lines in your program in a tidy sequence. </s>"}
|
50 |
+
{"text": "<s>[INST] Write a BBC BASIC program to illustrate the function of the RENUMBER command [/INST] A program to illustrate the function of the RENUMBER command is \n1 REM ** GOTO GOTO GOTO\n2 REM WITH ACKNOWLEDGEMENTS TO\n3 REM 'COMPUTERS IN SCHOOLS'\n4 REM THE JOURNAL OF MUSE\n15 GOTO 100\n16 GOTO 95\n40 N=N+1\n44 END\n57 IF N=18 THEN PRINT 'GOTO OR NOT TO GOTO'\n60 IF N>35 THEN GOTO 110\n78 GOTO 40\n95 PRINT '**THE GOTO SHOW**': GOTO 40\n100 N=0: GOTO 16\n105 PRINT 'GOT TO GOTO GOTO NOW'\n110 GOTO 44\n115 PRINT 'GOTO OR NOT TO GOTO'; GOTO 60\n</s>"}
|
51 |
{"text": "<s>[INST] Does the RENUMBER command also update the line numbers in the GOTO statements? [/INST] Yes, the RENUMBER command updates the line numbers referred to in GOTO statements within the program. </s>"}
|
52 |
{"text": "<s>[INST] How can you remove an existing program from the BBC Micro computer's memory? [/INST] Use the command NEW or press the BREAK key to remove the existing program from memory. </s>"}
|
53 |
{"text": "<s>[INST] Is it possible to retrieve a program once it's been removed from the BBC Micro computer's memory? [/INST] Type OLD and press RETURN to retrieve a removed program, provided you haven't started typing in a new one. </s>"}
|
|
|
69 |
{"text": "<s>[INST] How can you clear the graphics area in BBC BASIC? [/INST] Use the CLG command to clear the graphics area. </s>"}
|
70 |
{"text": "<s>[INST] What is the role of VDU 26 command in BBC BASIC? [/INST] VDU 26 resets both text and graphics windows to fill the whole screen. </s>"}
|
71 |
{"text": "<s>[INST] What does VDU 5 enable in BBC BASIC? [/INST] VDU 5 allows text to be drawn at any position inside a graphics window. </s>"}
|
72 |
+
{"text": "<s>[INST] Write a BBC BASIC program to set text and graphics areas and draw lines. [/INST] A program to set text and graphics areas and draw lines is \n10 MODE 5\n20 VDU 24, 0; 0; 500; 1000;\n30 VDU 28,10,20,19,5\n40 COLOUR 129\n50 COLOUR 2\n60 GCOL 0,130\n70 CLS : CLG\n80 FOR N=1 TO 1000\n90 PRINT 'LINE'; N\n100 GCOL 0, RND (4)\n110 DRAW RND(500), RND(1000)\n120 NEXT N\nRUN\n</s>"}
|
73 |
{"text": "<s>[INST] What does the TAB statement do in BBC BASIC? [/INST] The TAB statement starts printing at a specific place on the screen. </s>"}
|
74 |
{"text": "<s>[INST] How many characters can a line have in the MODE 7 in BBC BASIC? [/INST] MODE 7 has 40 characters. </s>"}
|
75 |
+
{"text": "<s>[INST] Write a BBC BASIC program to print the value of F and 2*F at specific positions on the screen. [/INST] A program to do this is \n10 PRINT '012345678901234567890'\n20 F=16\n30 REPEAT\n40 PRINT TAB(10);F;TAB(15);2*F\n50 F=F+1\n60 UNTIL F=18\n</s>"}
|
76 |
+
{"text": "<s>[INST] What will happen if you put a space between TAB and its argument? [/INST] The computer will not understand and will report 'No such variable.' </s>"}
|
77 |
{"text": "<s>[INST] What happens if you are beyond the place you specify with TAB in BBC BASIC? [/INST] The computer moves to the next line and then tabs to the specified place. </s>"}
|
78 |
{"text": "<s>[INST] Write a BBC BASIC program that counts to 1000, printing each number at specific X and Y text coordinates. [/INST] A program to do this is \n5 CLS\n10 Q=1\n20 REPEAT\n30 PRINT TAB(18,5);Q\n40 Q=Q+1\n50 UNTIL Q=1000\n</s>"}
|
79 |
{"text": "<s>[INST] How does PRINT TAB(X,Y) differ from PRINT TAB(X) in BBC BASIC? [/INST] PRINT TAB(X,Y) allows text to be printed at any specific X and Y character location on the screen. </s>"}
|
80 |
+
{"text": "<s>[INST] Write a BBC BASIC program to subscript the chemical formula H2. [/INST] A program to do this is \n10 MODE 4\n20 VDU 5\n30 MOVE 500,500\n40 PRINT 'H'\n50 MOVE 532,484\n60 PRINT '2'\n70 VDU 4\n</s>"}
|
81 |
{"text": "<s>[INST] What is the purpose of the VDU 5 statement in BBC BASIC? [/INST] VDU 5 enables text to be printed at the exact position of the graphics cursor. </s>"}
|
82 |
{"text": "<s>[INST] What limitations are there when using VDU 5 in BBC BASIC? [/INST] VDU 5 does not work in text-only modes like MODES 3, 6, and 7. Also, you can only print things in the graphics window and not in the text window. </s>"}
|
83 |
{"text": "<s>[INST] How can the text cursor be moved in BBC BASIC? [/INST] The text cursor can be moved with special control codes, PRINT TAB(X,Y), or the VDU command. </s>"}
|
84 |
+
{"text": "<s>[INST] What VDU command moves the cursor to the 'home' position at the top left of the screen? [/INST] The VDU 30 command moves the cursor to the 'home' position. </s>"}
|
85 |
{"text": "<s>[INST] How can you turn off the flashing cursor in BBC BASIC? [/INST] The flashing cursor can be turned off with the statement VDU 23;8202;0;0;0;. </s>"}
|
86 |
{"text": "<s>[INST] How can you turn the cursor back on in BBC BASIC? [/INST] The cursor can be turned back on with the MODE statement. </s>"}
|