answersLogoWhite

0

What is a constant in qbasic?

Updated: 10/19/2022
User Avatar

Wiki User

9y ago

Best Answer

A constant in any language is an instance of a data type for which the assigned value cannot be altered by the program. In the case of complex objects (particularly in object-oriented languages), the term constant applies to the logical representation of the object as viewed by the client, rather than the underlying representation which may mutate. For instance, an object can expose a constant accessor which could initialise a member upon first access, which means it must mutate that member even though the object's external state is currently constant with respect to the client. A programmer might do this when initialising a member would be a costly operation, but if the accessor is not invoked against the object then there is no cost. The cost is only paid when the client invokes the accessor for the first time.

User Avatar

Wiki User

9y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is a constant in qbasic?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What extension would a file saved in Qbasic have?

the extensions of qbasic are that, there are only 80 pixels to write in the qbasic


Why are rem statements important in qbasic programming?

qbasic is important because its technology


What is the shortcut key for input statement in QBasic?

There is no shortcut key of input in qbasic


What are the different types of operators in QBASIC?

The different types of operators in QBASIC are:Arithmetic OperatorsRelational OperatorsLogical Operators


What are the difference between gwbasic and qbasic?

Difference between QBASIC and GWBASIC?


Why is QBasic called QuickBasic?

Qbasic and Quickbasic are not the same! Qbasic was a free interpreter that Microsoft included with MS-DOS. Although Quickbasic uses similar syntax as quickbasic it allows programs to be compiled.


Who found QBASIC?

microsoft


Do you need statement numbers in QBASIC?

Statement numbers were a feature of BASIC, and while QBASIC supports them, they are by no means necessary.


Advantage of qbasic?

The advantage of qbasic is that it is easy to learn, to start out,then one can move on to more complex, or advanced languages.


What are the 2 types of data allowed in QBASIC?

the two types of data used in Qbasic is numeric data and alpha numeric data.


What is the default screen mode of Qbasic?

The default screen mode for Qbasic is 0.


Is there a Qbasic compiler that works on Windows 3.1?

The original version of QBASIC had a built-in compiler (which worked anywhere, anytime), but this functionality was removed in the 'newer' version for some odd reason. QBasic version 4.5 (also known as QuickBasic) can compile, and I believe that QBasic version 7.1x (very difficult to find) is capable of compiling also.