Data Types, Assignment And Input Output State

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 modified 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 briefly.

Ans.: -GW-BASIC Modes of operations
GW-BASIC is also utilized in either of 2 modes:

1 – Direct Mode 2- Indirect Mode

1-Direct 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.

2-Indirect Mode

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 first 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 file. The program may be a file that contains specific directions, or statements, for the pc. In a GW-

BASIC program, lines have the subsequent format:

Line# statement(s)

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 file 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 file is saved beneath the name you specified.
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 file
Press Enter key.
The file is loaded into memory, and is prepared to list, edit, or run.

If the file 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 file in a very directory, you ought to specify the whole path with the file name. Otherwise the file 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, first 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 specifically 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 first 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 specified, 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 specifically 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 significant digits, but it cannot handle seventh significant digit accurately. If additional accurately is desired, we must always rather use double exactitude.

E. g

10 Num1= thirteen

20 Num2=11

30 Pro=Num1 *Num2

40 PRINT professional

50 END

ii- String variable

A string may be defined 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$,

StdFname$, StdAdd$

2- Constants

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 .specified, 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

E.g.: Auto

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 specified 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. .

Syntax

DELETE Line range

DELETE Line range 1-line range two

E.g.

DELETE 50

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.

DELETE -60

Deletes all lines up to and together with line sixty

DELETE 20

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 file. 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] [,filename]

LIST [Line number-][,fi1ename] .

The line range may be a valid line range with within the vary i.e. 0 to 65529. If filename isn’t specified with the list command, the specified 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 specified line. the amount (.) will replace either linenumber to point the present line.

E.g. LIST

Lists all lines within the program

LIST 20-60

Lists lines twenty through sixty

LIST -40

The on top of command can lists lines of the program up to the road range.40p.

LIST 30-

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.

E.g.: LLIST

LLIST 20-50

Lists lines twenty through fifty to the printer

LIST -50

The on top of command can lists lines of the program up to the road range fifty to the printer.

LIST 40

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 file 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 files 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 files area unit unbroken .

Syntax: LOAD file name [r]

File name is that the file name used the file was saved. If the extension was omitted, .bas are used. once the file name is omitted, the program file that is found first are browse.

E.g.: LOAD “ABC.BAS”

Load “Test.Bas”,

The on top of command masses the file ‘Test.Bas_” and runs it, retentive all open files 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 file on the floppy. The SAVE command is employed to avoid wasting AN ASCII code program to the file specified by the file name on the device specified by the device name. If filename already exists, the file are written over.

Syntax: SAVE File Name, [,a]

SAVE filename, [, p]

Filename may be a quoted string that follows the conventional software|DOS|disk operating system} naming conventions. The ‘a’ possibility saves the file in ASCII format. ASCII format takes extra space on the floppy,.but some floppy access commands could need AN

ASCII format file. The ‘P’ possibility protects the file by saving it in AN encoded binary format. once a protected file 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.

E.g.: SAVE“ABC.BAS”,

The on top of command saves the file ABC.BAS in theASCII format.

SAVE “TEST.BAS”, R

The on top of command saves the file 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.

Syntax: NEW

E.g.: NEW

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 file from the floppy into memory and run it.

Syntax:

RUN [line number] [, r]

I RUN computer filename [, r]

RUN or RUN line range runs the program presently in memory. If line range is specified 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 filename closes all open files and deletes the present memory contents before loading the specified file from the disk into memory and corporal punishment it.

The ‘r’ possibility keeps all information files 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’file while not closing information files.

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 files and directories from the specified drive on the monitor.

Syntax: FILES [Pathname]

If the trail name is omitted, the command lists all files within the current directory of the chosen drive. Pathname could contain question marks (?) to match any character within the filename or extension. AN asterisk (*) because the first character of the filename or extension can match any file or any extension

E.g.: FILES

FILES command permits pathnames.

The directory for the specified path is displayed. If a definite path isn’t given, the present directory is assumed.

FILES “WORK”

The on top of command lists all files 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 files from the floppy. KILL command is employed for all kinds of disk files, together with program, random information and ordered files. you want to specify the fi1ename’s extension once exploitation the KILL command. bear in mind that files saved in GW-BASIC area unit given the default extension .bas

Syntax: KILL computer filename

Filename may be a program

file, ordered file or random access file.

E.g.: KILL “Ali.Bas”

The on top of command can deletes file “Ali.Bas” from

If a KILL command is given for a file that’s presently open, a “File already open” error happens.

KILL “TEST.BAS”

The on top of command deletes the GW-BASIC file TESTBAS, and makes the house offered for reallocation to a different file

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 specified line, and position the pointer beneath the first 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 “Undefined Line Number” error happens.

Syntax:

EDIT Line range

EDIT.

Comments:

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.

Examples:

i- Edit one hundred forty

Displays statement range I40 for writing.

ii- Edit

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.

Syntax

RENUM [new number],[old number] ,[increment]

New range is that the first 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 first 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 reflect the printing operation numbers. The RENUM statementis not accustomed modification the order of the program lines.

E.g.

RENUM35,/10,15 A

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 first, 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;

Syntax: 3

MKDIR Pathname

Comments:

Pathname may be a string expression that ought to not exceed sixty three characters.

Pathname establish the placement wherever the directory is formed.

Example: –

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

Interpretation: .

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.

Example: A

RMDIR “D:\SALES\CUSTOMERD”

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 file;

Syntax: ,

NAME Old-File name As‘ New-filename Interpretation:

Old-File name should exist and new filename should not exist; otherwise, a slip results. The file are renamed; the old-filename is replaced by the new- filename. when NAME command, the file exists on an equivalent floppy, within the same disk location, with the new name.

Example

NAME “ACC.DOC” AS “LEDG.DOC”

The on top of command provides the name LEDG.DOC to the file command. DOC, however the file 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

Ans.: instruction
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 files before it returns to. operating system.

Syntax:

SYSTEM

Example:

SYSTEM

ii- CONT Command:

CONT command is employed to continue program execution when a chance.

Syntax:

CONT

Interpretation:

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 modified, 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.

Syntax:

REM [Comments]

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 first workable statement when the REM statement. However, the program runs quicker if the branch is formed to the first statement. don’t use REM in a very information statement as a result of it’ll be thought of to be legal information.

Example

10 REM Taking Values from the user

20 INPUT N1

30 INPUT N2

40 REM Calculation

50 SUM=N1+N2

60 REM Printing the Result

70 PRINT total

80 END

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 files and come to the command level.

Syntax:

END

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.

Example

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.

Syntax:

STOP

Interpretation:

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 files. GW- BASIC invariably returns to command level when a STOP is dead. Execution is resumed by provision a CONT command.

Example

10 A=30

20 B=4O

30 PRINT A, B

40 STOP

50 C=A+B

60 PRINT C

70 END

RUN

30 40 _

Break in forty

Short queries

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?

Ans. Program

10 LET Nl=41

20 LET N2= one two

30 SUM=N1+N2

40 PRINT “Sum of 2 Numbers”, SUM

END

Q.10:- Write down the procedure of saving a GW-BASIC program?

Ans.: – Saving a GW-BASIC Program

. to avoid wasting a file 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 file is saved beneath the specified 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 significant digits, but it cannot handle seventh significant digit accurately. If additional accurately is desired, we must always rather use double exactitude.

Q.16: – Define string.

Ans.: – String

A string may be defined 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 files 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 specified format:

Please follow and like us:
error