NBS Minimal BASIC Test Programs: Version 2, User's Manual, Volume 13U.S. Department of Commerce, National Bureau of Standards, 1980 |
From inside the book
Results 1-5 of 45
Page 46
... steps . This group 5.14.1 Standard Capabilities In Context Of LET - statement This test tries out various lengthy expressions , using the full generality allowed by the standard , and assigns the resulting value to a variable . As usual ...
... steps . This group 5.14.1 Standard Capabilities In Context Of LET - statement This test tries out various lengthy expressions , using the full generality allowed by the standard , and assigns the resulting value to a variable . As usual ...
Page 57
... STEP CLAUSE OF THE FOR - STATEMENT DEFAULTS TO A VALUE OF ONE . REFS : 11.2 11.4 PROGRAM NUMBER 48 LIMIT AND INCREMENT IN THE FOR - STATEMENT ARE EVALUATED ONCE UPON ENTERING THE LOOP . REFS : 11.2 11.4 PROGRAM NUMBER 49 NESTED FOR ...
... STEP CLAUSE OF THE FOR - STATEMENT DEFAULTS TO A VALUE OF ONE . REFS : 11.2 11.4 PROGRAM NUMBER 48 LIMIT AND INCREMENT IN THE FOR - STATEMENT ARE EVALUATED ONCE UPON ENTERING THE LOOP . REFS : 11.2 11.4 PROGRAM NUMBER 49 NESTED FOR ...
Page 138
... STEP " ; C1 3030 PRINT 3040 PRINT " CONTROL VARIABLE : " 3050 PRINT " SHOULD BE " , " ACTUAL " , " RESULT " 3060 LET A2 = A1 3070 LET B2 = B1 3080 LET C2 = C1 3090 LET 12 = A2 3100 REM S1 IS ERROR SWITCH 3110 LET S1 = 0 3120 REM T1 IS ...
... STEP " ; C1 3030 PRINT 3040 PRINT " CONTROL VARIABLE : " 3050 PRINT " SHOULD BE " , " ACTUAL " , " RESULT " 3060 LET A2 = A1 3070 LET B2 = B1 3080 LET C2 = C1 3090 LET 12 = A2 3100 REM S1 IS ERROR SWITCH 3110 LET S1 = 0 3120 REM T1 IS ...
Page 139
... STEP 3.00000E - 7 CONTROL VARIABLE : SHOULD BE ACTUAL RESULT 9.87789E - 2 9.87789E - 2 OK 9.87792E - 2 9.87792E - 2 OK 9.87795E - 2 9.87795E - 2 OK 9.87798E - 2 9.87798E - 2 OK LOOP EXITED 9.87801E - 2 9.87801E - 2 OK NO . TIMES THROUGH ...
... STEP 3.00000E - 7 CONTROL VARIABLE : SHOULD BE ACTUAL RESULT 9.87789E - 2 9.87789E - 2 OK 9.87792E - 2 9.87792E - 2 OK 9.87795E - 2 9.87795E - 2 OK 9.87798E - 2 9.87798E - 2 OK LOOP EXITED 9.87801E - 2 9.87801E - 2 OK NO . TIMES THROUGH ...
Page 140
... STEP 1 CONTROL VARIABLE : SHOULD BE ACTUAL LOOP EXITED 8 8 RESULT OK NO . TIMES THROUGH LOOP : SHOULD BE : 0 ACTUAL : 0 RESULT : OK LOOP IS : FOR I1 = 8 TO -5 STEP -3 CONTROL VARIABLE : SHOULD BE 8 ACTUAL 8 5 5 RESULT OK 2 2 -1 -1 -4 ...
... STEP 1 CONTROL VARIABLE : SHOULD BE ACTUAL LOOP EXITED 8 8 RESULT OK NO . TIMES THROUGH LOOP : SHOULD BE : 0 ACTUAL : 0 RESULT : OK LOOP IS : FOR I1 = 8 TO -5 STEP -3 CONTROL VARIABLE : SHOULD BE 8 ACTUAL 8 5 5 RESULT OK 2 2 -1 -1 -4 ...
Other editions - View all
Common terms and phrases
15 PRINT 20 PRINT 40 PRINT SECTION ACCEPT THE PROGRAM ACCOMPANIED BY DOCUMENTATION ACCURATELY DESCRIBING ANSI STANDARD 7.2 APPROPRIATE ERROR MESSAGE ARGUMENT ASSIGNED BASIC TEST PROGRAMS COMPUTED DATA DESCRIBING THE FEATURE'S DETAILED CRITERIA DIM-STATEMENT DISPLAYED DIVISION BY ZERO END END TEST END PROGRAM FILE EXRAD FEATURE OF MINIMAL FEATURE'S INTERPRETATION FOR-STATEMENT GOSUB GOTO IDENTIFYING THE EXCEPTION implementation INFORMATIVE TEST PASSED INPUT INPUT-REPLY LINE NUMBER LINE-NUMBERS MACHINE INFINITY MESSAGE IDENTIFYING MINIMAL BASIC TEST NBS MINIMAL BASIC NON-STANDARD FEATURE NUMERIC EXPRESSIONS OK OK OK ON-GOTO OPTION BASE PASS THIS TEST PRINT 40 PRINT PRINT BEGIN TEST PRINT END PROGRAM PRINT END TEST PRINT FOR DETAILED PRINT PROGRAM FILE PRINT THIS PROGRAM PRINT THIS SECTION PRINT TO PASS PROCESSOR PROGRAM TESTS PROGRAMS USER'S MANUAL QUOTED STRINGS READ REFS REJECT THE PROGRAM REM SUBROUTINE RND FUNCTION SECTION TESTS SIGNIFICAND STATEMENT TEST IS INFORMATIVE TEST OK TEST PROGRAMS USER'S UNDERFLOW USER-DEFINED FUNCTION