Computer Science, asked by perweenalviya, 3 months ago

what are the two categories of built in functions in Q basic.write any two examples for each one. ​

Answers

Answered by mail2rheaagr
2

Answer:

A function is a built-in formula to accomplish certain task such as mathematical, statistical, financial, logical/data calculations, etc. Functions in QBASIC are readymade programs which take some data, manipulate them and return the value, which may be string or numeric type. Programming languages also have certain functions like spread sheets or database software.

Every function has its unique name which once written and debugged, it can be used again and again. It may be used in any program which is called calling function.

TYPES OF FUNCTIONS:-

QBASIC supports two types of functions. They are:-

A) USER DEFINED FUNCTIONS:-

A function which is written and stored by the programmer to perform a specific task is known as User Defined Functions. When QBASIC does not provide a built in function to solve any particular problem required by the programmer in that case only programmers define this type of function. FUNCTION……………END FUNCTION statement can be used to define the function.

B) BUILD-IN OR LIBRARY FUNCTIONS:-

The functions which are provided by the QBASIC system and also allow the programmer to use them according to the requirement are known as BUILT-IN or Library Functions. These functions are required to be called by the programmer to use them in a program. Some common Build-IN or Library Functions are LEN, LEFT$, RIGHT$, MID$, UCASE$, LCASE$, CHR$……..etc.

Answered by ak4925176
1

Answer:

there are two types of functions in basic

1)user defined functions

2)built-in or functions

Similar questions