Q.1:- Describe Basic Language.
Ans.: – BASIC stands for Beginners All Purpose Symbolic Instruction Code. It is a simple to use high level programming language. it had been developed by John Kenny and Thomas Kuitz in 1963 at college, USA. BASIC language was fancied as AN tutorial tool to show elementary programming ideas to students. BASIC language is especially appropriate for the programming on microcomputers. it had been developed to handle the quality problems with older languages.
The problem with BASIC language is that it’s been extended and improved totally different|in several|in numerous} ways that by different pc makers. so a programmer written in BASIC won’t run on alternative computers from totally different makers. but there area unit similarities in several versions of digital computer and may be simply modiﬁed to run on alternative microcomputers.
GW-BASIC is AN interpreter for BASIC. There area unit several alternative translators for basic from totally different vendors like QBASIC that provides a menu driven setting to write down and execute BASIC programs
Q.2:- In what percentage modes, GW-BASIC will operate? Discuss brieﬂy.
Ans.: -GW-BASIC Modes of operations
GW-BASIC is also utilized in either of 2 modes:
1 – Direct Mode 2- Indirect Mode
In direct mode, GW-BASIC statements and commands area unit dead as they’re entered. Results of arithmetic and logical operations may be displayed Figurez. Example of Direct Mode like a shot and/or keep for later use, however the directions themselves area unit lost when execution. This mode is beneficial for debugging and for fast computations that don’t need an entire program. Direct mode will tum» BASIC into a calculator to produce immediate computation.
The indirect mode is employed to enter programs. A program in BASIC consists of a collection of directions or statement every of that is preceded by range|variety} known as a line number. Line numbers specify the precise order during which the statements of a program area unit to be performed. The statement with the littlest range is In dead ﬁrst followed by the second smallest range so on. Program statements area unit keep in memory. The program keep in memory is dead by coming into the RUN commands.
Q.3: – Write down the strategy of making and saving the GWBASIC program?
Ans.: – Writing and Saving the GWBASIC Program
I GW-BASIC provides AN IDE (Integrated Development Environment) wherever we are able to write, edit, save, load and ‘ execute BASIC programs.
Creating a program is like making a knowledge ﬁle. The program may be a ﬁle that contains specific directions, or statements, for the pc. In a GW-
BASIC program, lines have the subsequent format:
Where line # is AN unsigned number within the vary from zero to 65529 and statement(s) is any valid GW-BASIC statement. A GW-BAASIC program linen cannot have quite 255 characters.
However, there is also quite one statement on a line. If so, every should be separated by a colon (;). The program’s statements area unit dead counting on line numbers in ascending order. for instance, if line forty five is typewritten when line sixty, the pc would still run forty five before line sixty.
In order to use the program once more, we have a tendency to should reserve it. to avoid wasting a ﬁle in GW= BASIC, use the subsequent procedure:
Press F4 key
The command SAVE” seems on your screen.
kind the name for the program, and press the ENTER key. The ﬁle is saved beneath the name you speciﬁed.
Q.4: – however would you load and execute a GWBASIC program?
Ans.: – Loading the GWBASIC Program
Loading the program refers to bring it into memory from storage device device like fixed disk,‘ in order that it may be used. A saved program may be loaded by exploitation the subsequent procedure:
Press F3 key .
The command LOAD” seems on your screen.
Type the name of AN existing ﬁle
Press Enter key.
The ﬁle is loaded into memory, and is prepared to list, edit, or run.
If the ﬁle doesn’t exist or AN invalid path is typewritten, and error message is displayed.
The default extension of GWBASIC program is .BAS
To save the ﬁle in a very directory, you ought to specify the whole path with the ﬁle name. Otherwise the ﬁle are saved within the current operating directory of GWBASIC.
ii- Running the Program
Running the program refers to completing directions of the program. O The program should be loaded into memory (RAM) before execution. so to I execute a program, ﬁrst load it as represented on top of. Then press F2 key or . kind RUN command, the output of the . program can follow it.
Q.5: – make a case for the structure of a BASIC program.
Ans.: – Structure of the essential program
Every BASIC program ought to follow the subsequent rules.
Every program statement should begin with a line range.
It is a decent follow to finish each BASIC program with AN finish statement.
However, it’s not necessary.
Repetition of the road numbers inside a program isn’t allowed.
Two or additional statements may be written on a line however they have to be separated by a colon (:)
In BASIC, variables may be used while not declaration.
In a BASIC program, the physical look of the program statements doesn’t matter.
Q.6: – Describe Rules of naming variable in GW-BASIC.
Ans.: – Variables
Variables area unit the names that you simply have chosen to represent values utilized in a GW-BASIC program. the worth of a variable is also appointed speciﬁcally or is also the results of calculations in your program. If a variable is appointed no price, GW-BASIC assumes the v.ariable’s price to be zero. Variables area unit names or labels accustomed represent values that area unit utilized in a BASIC program.
Rules for Naming Variables in BASIC
Each variable that’s utilized in a BASIC program should have a reputation. The name of a variable is employed for more references created thereto. the worth of the variable is accessed by name. In’GW-BASIC, there area unit some rules for naming variables, these are:
GW-BASIC variable name is also any length; up to forty characters.
The variable name could contain alphabets (both upper-case letter and lowercase), numbers and therefore the mathematical notation.
The ﬁrst character within the variable name should be AN alphabet.
Special kind declaration characters also are allowed.
Reserved words cannot be used as variable names.
Blank areas aren’t allowed invariant names.
However, the last character of a variable name is also a special‘ kind declaration character indicating the kind of a variable.
If sort of a variable isn’t speciﬁed, it’s assumed as. a true kind variable.
Q.7: – Differentiate between variables and constants.
Ans.: – Variables
Variables area unit the names that you simply have chosen to represent values utilized in a GW-BASIC program. the worth of a variable is also appointed speciﬁcally or is also the results of calculations in your program. If a variable is appointed no price, the GW-BASIC assumes the worth of variable to be zero just in case of numeric variables and null to string variables.
Types of variables
There area unit 2 varieties of variables, that area unit as follows:
i- Numeric variables
A numeric variable will store numericvalues. This price is appointed to the variable throughout the execution of a program. If we do not specify the kind of a numeric variable, GW-BASIC considers it as single exactitude. Single exactitude variables will accurately handle numbers up to 6 signiﬁcant digits, but it cannot handle seventh signiﬁcant digit accurately. If additional accurately is desired, we must always rather use double exactitude.
10 Num1= thirteen
30 Pro=Num1 *Num2
40 PRINT professional
ii- String variable
A string may be deﬁned as a sequence of characters self-enclosed in double quotations. A string variable will so store sequence of characters. T h e nature of character string is entirely totally different from the character of numeric values. A string variable may be a sequence of characters i.e. letters numbers and bound special characters like +, -, *. A string variable should be written as a letter followed by a dollar sign ($). we are able to not perfonn an equivalent set of operations on strings that we are able to perform on numeric values. for instance StdName$,
Constants area unit static values, the GW-BASIC interpreter uses throughout program execution. the worth of a relentless doesn’t modification throughout execution of the programme.
Types of Constants
There 2 varieties of constants, that area unit as following: –
i- Numeric Constant
Numeric constants may be positive or negative numbers. Numeric constants encompass integers, single exactitude, or double exactitude numbers. once coming into a numeric constant in GW-BASIC, you ought to not kind the commas.
varieties of Numeric Constants
There area unit 2 varieties of numeric constants, that area unit as following:
Integer Numeric Constants
Integer constants represent numbers between -3 twenty seven sixty eight and +32767. they are doing not contain decimal points e. g. 34, -235 8, and etc.
Single or Double exactitude Numeric Constants
Single exactitude or double exactitude numeric constants represent values that area unit measured and will contain halfway half e. g. 45 .60, -66.34, etc. Single exactitude numeric constants area unit keep with seven digits. Double exactitude numeric constants area unit keep with /17 digits of exactitude, and written with as several as l6 digits. A single- exactitude constant is any numeric constant .with either:
Seven or fewer digits.
Exponential kind exploitation
A trailing punctuation mark (!)
A double-precision constant is any numeric constant with either
Eight or additional digits.
Exponential kind exploitation
A trailing range sign (#)
ii- String Constant
A string constant is any set of characters self-enclosed in quotation marks. Blank areas is also enclosed in a very string however not quotation marks. A string constant may be a sequence of zero to 255 alphameric characters self-enclosed in double quotation marks. for instance “DPS”, “Alif Publishers”, “23+23”
Q.8: – make a case for the aim and dealing of the automobile command.
Ans.: automobile Command
Auto command mechanically generates line numbers in AN increasing order, anytime the ENTER key’s ironed. automobile command is beneficial for Writing programs. automobile command begins enumeration at line range ten and increments every sequent line range of l ten. once line range and increment aren’t .speciﬁed, then each assume the worth l0.If automobile command generates a line range that’s already getting used, AN asterisk (*) seems when the quantity to warn that any input can replace the prevailing line. To terminate the automobile command at the same time presses CTRL and STOP key or CTRL-BREAK or CTRL-C. The system returns to command 7′ four mode with the prompt. _ I Fig.:- automobile with ten increments
Syntax: automobile [Line Number], [increment] S V
Generates line numbers ten, 20, thirty so on
Auto 30, 20 p
The on top of command can generates line numbers thirty, 50, seventy so on.
Q.9: – make a case for the aim and dealing of DELETE Command
Ans.: DELETE Command
This Command is employed to delete the program lines or vary of lines. DELETE command can solely deletes program lines not the program. It deletes the speciﬁed line range if range is given. It deletes all the lines inside the vary given. GW-BASIC invariably retums to command level when a DELETE command is dead. Unless a minimum of one line range is given, AN “Illegal operate Call” error happens. the amount (.) is also accustomed substitute for either line range to point the present line. .
DELETE Line range
DELETE Line range 1-line range two
T h e a b o v e command can deletes line range fifty DELETE 20-60
T h e a b o v linear unit command can deletes all the lines with within the vary given i.e. from twenty to sixty.
Deletes all lines up to and together with line sixty
Deletes all lines from line twenty to the top of the program
Q.10: – make a case for the aim and dealing of the LIST Command
Ans.: LIST Command
LIST command is employed to show a loaded program partly or fully on the screen, line-at-a-time printer or a ﬁle. F1 operate key’s used as a brief key for LIST command. Any listing is also in tempted by pressing Ctrl+Break.
Syntax: LIST [linenumber][-linenumber] [,ﬁlename]
LIST [Line number-][,ﬁ1ename] .
The line range may be a valid line range with within the vary i.e. 0 to 65529. If ﬁlename isn’t speciﬁed with the list command, the speciﬁed lines of the last typed/loaded program area unit listed. Use the hyphen to specify a line vary. If the road vary is omitted, the whole program is listed. Linenumber- lists that line and every one higher numbered lines. linenumber lists lines from the start of the program through the speciﬁed line. the amount (.) will replace either linenumber to point the present line.
Lists all lines within the program
Lists lines twenty through sixty
The on top of command can lists lines of the program up to the road range.40p.
The on top of command can lists lines thirty A through the top of the program.
Q.11: – make a case for the aim and dealing of the LLIST Command
Ans.: LLIST Command
LLIST command is employed to lists all or a part of the program presently in memory to the road printer. Any listing is also interrupted by pressing Ctrl+Break
Syntax: LLIST [linenumber] [-linenumber]
LLIST [Line number-]
The line range may be a valid line range with within the vary i.e. 0 to 65529. Use the hyphen to specify a
line range. If the road vary is omitted, the whole program is listed. GW-BASIC invariably retums to command level when a LLIST is dead. the road vary choices for LLIST area unit an equivalent as for LIST.
Lists lines twenty through fifty to the printer
The on top of command can lists lines of the program up to the road range fifty to the printer.
The on top of command can lists lines forty through the top of the program to the printer.
Q.12: – make a case for the aim and dealing of the LOAD Command
Ans.: LOAD Command
LOAD command is employed to load ﬁle from disk to memory. The LOAD command retrieves a program that was saved bythe SAVE command and skim it into the memory. This command closes all open ﬁles and deletes all variables and program lines presently residing in memory before it masses the selected program. If the R possibility is employed with LOAD, the program runs alter open it’s loaded, and every one open information ﬁles area unit unbroken .
Syntax: LOAD ﬁle name [r]
File name is that the ﬁle name used the ﬁle was saved. If the extension was omitted, .bas are used. once the ﬁle name is omitted, the program ﬁle that is found ﬁrst are browse.
E.g.: LOAD “ABC.BAS”
The on top of command masses the ﬁle ‘Test.Bas_” and runs it, retentive all open ﬁles and variables from a previous program intact.
Q.13: – Write a note on the SAVE Command.
Ans.: SAVE Command
SAVE command is employed to avoid wasting a ﬁle on the floppy. The SAVE command is employed to avoid wasting AN ASCII code program to the ﬁle speciﬁed by the ﬁle name on the device speciﬁed by the device name. If ﬁlename already exists, the ﬁle are written over.
Syntax: SAVE File Name, [,a]
SAVE ﬁlename, [, p]
Filename may be a quoted string that follows the conventional software|DOS|disk operating system} naming conventions. The ‘a’ possibility saves the ﬁle in ASCII format. ASCII format takes extra space on the floppy,.but some floppy access commands could need AN
ASCII format ﬁle. The ‘P’ possibility protects the ﬁle by saving it in AN encoded binary format. once a protected ﬁle is later run or loaded, any commit to list or edit it fails. “When the ‘p’ possibility is employed, create an extra copy beneath another name or floppy to facilitate future program maintenance.
The on top of command saves the ﬁle ABC.BAS in theASCII format.
SAVE “TEST.BAS”, R
The on top of command saves the ﬁle check.BAS in binary format, and protects access.
Q.14: – make a case for the aim and dealing of the NEW Command
Ans.: NEW Command
NEW command is employed to delete the program presently – loaded in memory and clears all variables. The new command erases the previous program from the memory, guaranteeing that lines from a previous program won’t have an effect on the new program.
NEW command is entered at command level to clear memory before coming into a replacement program. GW- BASIC invariably returns to command level when a replacement command is dead.
Q.15: P make a case for the aim and dealing of the RUN Command
Ans.: RUN Command
RUN Command is employed to execute the program presently loaded in memory, or to load a ﬁle from the floppy into memory and run it.
RUN [line number] [, r]
I RUN computer filename [, r]
RUN or RUN line range runs the program presently in memory. If line range is speciﬁed within the run command, execution begins on it line range. Otherwise, execution begins at the lower line range. If there’s no program within the memory once RUN command is dead, GW-BASIC returns to command level. RUN ﬁlename closes all open ﬁles and deletes the present memory contents before loading the speciﬁed ﬁle from the disk into memory and corporal punishment it.
The ‘r’ possibility keeps all information ﬁles open. If you’re exploitation the speaker on the pc, please note that corporal punishment the RUN command can shut down any sound that’s presently running and can reset to music foreground.
E.g.: RUN Ali.Bas A
RUN ABC.BAS, R
The on top of command can runs ABC.BAS’ﬁle while not closing information ﬁles.
Q.16: – make a case for the aim and dealing of the FILES Command
Ans.: FILES Command
This command is employed to show the names of all ﬁles and directories from the speciﬁed drive on the monitor.
Syntax: FILES [Pathname]
If the trail name is omitted, the command lists all ﬁles within the current directory of the chosen drive. Pathname could contain question marks (?) to match any character within the ﬁlename or extension. AN asterisk (*) because the ﬁrst character of the ﬁlename or extension can match any ﬁle or any extension
FILES command permits pathnames.
The directory for the speciﬁed path is displayed. If a definite path isn’t given, the present directory is assumed.
The on top of command lists all ﬁles within the directory names WORK that area unit on the . floppy in default drive.
Q.17: – make a case for the aim and dealing of the KILL Command
Ans.: KILL Command
L KILL command is employed to delete the ﬁles from the floppy. KILL command is employed for all kinds of disk ﬁles, together with program, random information and ordered ﬁles. you want to specify the ﬁ1ename’s extension once exploitation the KILL command. bear in mind that ﬁles saved in GW-BASIC area unit given the default extension .bas
Syntax: KILL computer filename
Filename may be a program
ﬁle, ordered ﬁle or random access ﬁle.
E.g.: KILL “Ali.Bas”
The on top of command can deletes file “Ali.Bas” from
If a KILL command is given for a ﬁle that’s presently open, a “File already open” error happens.
The on top of command deletes the GW-BASIC ﬁle TESTBAS, and makes the house offered for reallocation to a different ﬁle
Q.18: – make a case for the aim and dealing of the EDIT Command
Ans.: EDIT Command
EDIT command is employed to change a statement. This cormnand displays a speciﬁed line, and position the pointer beneath the ﬁrst digit of the road range, in order that the road is also altered. If line range refers to a line that doesn’t exist within the program, AN “Undeﬁned Line Number” error happens.
EDIT Line range
Line range is that the range of a line existing within the program that we would like to edit. the amount (.) refers
to the present line.
i- Edit one hundred forty
Displays statement range I40 for writing.
Displays the present statement for writing
Q.19: – make a case for the aim and dealing of the RENUM Command
Ans.: RENUM Command
RENUM command is employed to renumber program lines.
RENUM [new number],[old number] ,[increment]
New range is that the ﬁrst line range to be utilized in the new sequence. The default price is ten.
Old Line range is that the adjust range within the current program wherever renumbering is to start. The default price is that the ﬁrst line range of the program.
Increment is that the increment to be utilized in the new sequence. The default price of the increment is10.
RENUM command conjointly changes all line range references following
ELSE, GOTO, GO SUB and etc statements to reﬂect the printing operation numbers. The RENUM statementis not accustomed modification the order of the program lines.
The on top of command renumbers the lines from ten up in order that they begin with line range three five and area unit incremented by fifteen.
REN UM 60, , 50
The on top of command can renumbers the whole program. The ﬁrst, printing operation range are sixty. Lines increment by fifty.
Q.20: – make a case for the aim and dealing of the MKDIR Command
Ans.: MKDIR Command
This command is employed to form a subdirectory;
Pathname may be a string expression that ought to not exceed sixty three characters.
Pathname establish the placement wherever the directory is formed.
MKDIR “C:\SA_LES\CUSTOMER” .
The on top of command creates the directory client inside the directory SALES on drive D:
Q.21: – make a case for the aim and dealing of the subsequent GW-Basic Statements. i. RMDIR Command ii. NAME Command
Ans.: RMDIR Command
This command is employed to remove/ delete a directory from the disk.
Syntax: C S
RMDIR pathname i
The pathname may be a string expression, not extraordinary sixty three characters, distinguishing the directory to be aloof from its parent. The directory to be deleted should be empty otherwise a slip message can seem.
The on top of command deletes the directory CUSTOMERS inside the directory SALES on drive D:
ii Name Command:
A This command is employed to rename a ﬁle;
NAME Old-File name As‘ New-ﬁlename Interpretation:
Old-File name should exist and new ﬁlename should not exist; otherwise, a slip results. The ﬁle are renamed; the old-ﬁlename is replaced by the new- ﬁlename. when NAME command, the ﬁle exists on an equivalent floppy, within the same disk location, with the new name.
NAME “ACC.DOC” AS “LEDG.DOC”
The on top of command provides the name LEDG.DOC to the ﬁle command. DOC, however the ﬁle content and physical location on the floppy is unchanged.
Q.22: – make a case for the aim and dealing of the subsequent GW-Basic commands. i. instruction ii. CONT Command
SYSTEM command is employed to exit from GW-BASIC and come to package setting. Save your program before provision this command or the program are lost. The instruction closes all the ﬁles before it returns to. operating system.
ii- CONT Command:
CONT command is employed to continue program execution when a chance.
Resumes program ‘execution when CTRL-BREAK, STOP halts a program. ‘Execution continues at the purpose wherever the break happened. If the break passed off throughout AN INPUT statement, execution continues when publication the prompt.
CONT Americaeful|is beneficial|is helpful} in debugging; therein it lets us set break points with the STOP statement, modify variables exploitation direct statements, continue program execution, or use GOTO to resume execution at a specific line range. If a statement is modiﬁed, CONT are invalid.
Q.23: – make a case for the aim and dealing of the REM Statements.
Ans.: REM Statement
REM statement is employed to permit instructive remarks to be inserted in a very program.
REM statement isn’t dead, however is output precisely as entered once the program is listed. Once a REM statement is encountered, the professionalgram ignores everything else till subsequent line range or pro gram finish is encountered.
REM statements is also branched into from a GOTO‘ or GOSUB statement, and execution continues with the ﬁrst workable statement when the REM statement. However, the program runs quicker if the branch is formed to the ﬁrst statement. don’t use REM in a very information statement as a result of it’ll be thought of to be legal information.
10 REM Taking Values from the user
20 INPUT N1
30 INPUT N2
40 REM Calculation
60 REM Printing the Result
70 PRINT total
Q.24: – make a case for the aim and dealing of the subsequent Statements. i. finish Statement ii. STOP Statement
Ans.: finish Statement
This statement is employed to terminate program execution, shut all ﬁles and come to the command level.
END statements is also placed anyplace within the program to terminate execution. not like the STOP statement, finish statement doesn’t cause a “Break in line xxxx” message to be written. it’s optional statement. GW-BASIC invariably returns to command level when an/END statement is dead.
40 IF A>30 THEN finish ELSE GOTO ten
Ends the program and returns to command level Whenever the worth of A exceeds thirty.
ii- STOP Statement
This statement is employed to terminate program execution briefly, and come to command level.
STOP statement is also used anyplace in a very program to terminate execution of the program. once STOP statement is encountered within the program, the subsequent message is printed: ,
Break in line nnnn
Unlike the top statement, the STOP statement doesn’t shut ﬁles. GW- BASIC invariably returns to command level when a STOP is dead. Execution is resumed by provision a CONT command.
30 PRINT A, B
60 PRINT C
30 40 _
Break in forty
Q.1:- what’s a Basic Language?
Ans.: – Basic Language
BASIC may be a high level language. the essential language was developed by John Kemeny and Thomas Kurtz in 1963 at college, USA.
Q.2:- what’s the employment of Basic Language?
Ans.: – Use of BASIC Language
BASIC stands for Beginners All Purpose Symbolic Instruction Code.
BASIC language was fancied as AN tutorial tool to show elementary programming ideas to students.
Q.3 :- What area unit totally different modes of GW-BASIC interpreter?
Ans.: -GW-BASIC Modes of operations
Following area unit 2 modes of operations in GW-BASIC:
Direct Mode zero Indirect Mode
Q.4:- what’s the employment of direct mode in GW-BASIC?
Ans.: – Direct Mode
Indirect mode the GW-BASIC statements and commands area unit dead as they’re entered. we are able to see results of various operators i.e. arithmetic, relative in direct mode. it’s helpful for debugging method.
Q.5:- what’s the employment of indirect mode?
Ans.: – Indirect Mode
Indirect mode is employed to create programs. Program lines area unit invariably preceded by line numbers, and area unit keep in memory.
Q.6:- what’s the road range direct GW-BASIC?
Ans.: – the road range direct GW-BASIC is from zero to 65529.
Q.7:- however will we have a tendency to use quite one statement on one line?
Ans.: – There is also quite one statement on a line. If so, every should be separated by a colon (:).
Q.8:- however will the pc apprehend whether or not AN instruction you kind may be a program or an on the spot mode commands?
Ans. the road range tells the pc that the directions following the road range may be a program instead of an on the spot mode.
Q.9:- Write a program to calculate the total of 2 numbers?
10 LET Nl=41
20 LET N2= one two
40 PRINT “Sum of 2 Numbers”, SUM
Q.10:- Write down the procedure of saving a GW-BASIC program?
Ans.: – Saving a GW-BASIC Program
. to avoid wasting a ﬁle in/GW-BASIC, follow the subsequent procedure:
0 Press the F4 key
SAVE” seems. .
0 kind the name of the program, and press the ENTER key. The ﬁle is saved beneath the speciﬁed name. .
Q.11: – what’s the default extension of a GW-BASIC program?
Ans.: – Extension of the GW-BASIC Program
The default extension of GWBASIC program is .BAS
Q.12: – Write down the character sets of BASIC language?
Ans.: – Character Sets of BASIC
The list of GW-BASIC language area unit as following:
0 Alphabetic characters zero – Numeric characters
0 Special characters
Q.13: – What area unit the character sets of a BASIC language?
Ans.: – character Sets of BASIC V
The alphabetic characters in basic area unit upper-case letter letters of alphabets A to Z and grapheme letters of alphabets a to z..
Q.14: – what’s the employment of variable?
Ans.: – Variables
These area unit named memory locations that area unit accustomed store program’s input file and its process results throughout program execution. The values of variables changes throughout the program execution.
Q.15: – what’s the employment of single exactitude numeric variable?
Ans.: – Single exactitude Numeric Variable
Single exactitude variables will accurately handle numbers up to 6 signiﬁcant digits, but it cannot handle seventh signiﬁcant digit accurately. If additional accurately is desired, we must always rather use double exactitude.
Q.16: – Deﬁne string.
Ans.: – String
A string may be deﬁned as a sequence of characters self-enclosed in double quotations. ”
Q.17: – What area unit constants?
Ans.: – Constants
The value of constant doesn’t modification throughout execution of the programme.
Q.18: what’s the employment of automobile command?
Ans.: automobile Command
Auto command is employed to get and increment line range
automatically anytime you press the Enter key. automobile command is terminated by pressing Ctrl+Break or Ctrl+C.
Q.19: – what’s the employment of EDIT command?
Ans.: EDIT Command .
EDIT command is employed to change a statement.
Q.20: -iWhat is that the use of MKDIR command?
Ans.: MKDIR Command
MKDIR command is employed to form a directory.
Q.21: – what’s the employment of LIST command?
Ans.: LIST Command
This command is employed to ‘lists all or a part of the program presently in memory to the monitor screen.
Q.22: – what’s the employment of RMDIR command?
Ans.: RMDIR Command
RMDIR command is employed to remove/delete a directory from the disk.
Q.23: – what’s the employment of REM Statement?
Ans.: REM Statement
This statement is employed to feature instructive remarks to be inserted in a very program. it’s non workable statement.
Q.25: – what’s the employment of finish Statement?
Ans.: finish Statement
END statement is employed to terminate program execution, shut all ﬁles and come to the command level. –
Q.26: – what’s the employment of STOP Statement?
Ans.: STOP Statement
STOP command is employed to terminate program execution briefly, and come to command level.
Q.27: – Name the kinds of operators utilized in BASIC Language.
Ans.:- varieties of Operators
Types of BASIC language operators area unit as following:
0 Arithmetic Operators zero r relative Operators
0 Logical Operators
Q.28: – Write down the employment of arithmetic operators.
Ans.:- Arithmetic Operators
Arithmetic operators area unit accustomed perform arithmetic operations on values
variables. These values area unit equipped in information statement. the info statement contains a listing of values. The browse statement contains list of variables.
Q.37: – what’s the employment of Restore statement?
Ans.: -Restore Statement
Restore statement permits information values, within the information statement to be reused within the program. when Restore statement we are able to browse all the info once more for the more process.
Q.38:- What Input statement?
Ans.: -Input Statement
This statement is employed to just accept numeric or string information from the keyboard and assign this information to the variable used with within the Input statement throughout the program execution.
Q.39: – Write down the employment of the PRINT statement.
Ans.: -PRINT Statement .
This statement is employed to require output on the monitor screen.
Q.40:- what’s the employment of LPRINT statement?
Ans.: -The LPRINT Statement
The LPRINT statement is employed to print the output of the program on the printer, what’s displayed on the screen exploitation PRINT statement, an equivalent result’s written by the printer exploitation LPRINT statement. .
Q.41: – what’s the employment of PRINT exploitation statement?
Ans.: – PRINT exploitation statement
This statement is employed to show numbers and strings on the screen in a very speciﬁed format: