QBASIC


QBasic is abbreviated as Quick Beginners All purpose Symbolic Instruction Code.

An interpreter for the BASIC programming language provided by Microsoft with the DOS and Windows 95 operating systems.

The QBASIC interpreter supports many of the more sophisticated.

This is a programming language created by Microsoft to replace the old GWbasic. Usually, this language is referred to as Microsoft Qbasic or Microsoft QuickBasic or simply Qbasic.

  • Qbasic is the best programming language for beginners because it is the easiest to learn and it also serves as the starting point for learning complex programs such as C++, Visual Basic, Java and others.

It contains codes similar to other languages. Once you master programming Qbasic, it will be easier for you to learn and program other languages.

Qbasic is a good choice for beginners because this language is almost always accessible to everyone. Often, this is inside the programs already in your computer when you install the Microsoft package.

If this is not so, Qbasic can easily be surfed in the internet.

There are actually several sites that offer free downloads.

Although there are different versions of Qbasic, the logic is still the same.

Getting to DOS:

§  To run QBASIC we need to get to DOS

§  In Windows 2000, it is called the “Command Prompt” and you can find it by clicking on Start, then Programs, then Accessories, then Command Prompt.

§  In Windows XP, it is called the “Command Prompt” and you can get to it by clicking on Start, then All Programs, then Accessories, then Command Prompt.

§  You will get the black window with the “C:\WINDOWS>_” prompt.

§  QBASIC may not be on your computer. At the “C:\WINDOWS>_” prompt, try typing: qbasic and press the ENTER key.

§  If you get a blue screen with something about a “Survival Guide”, you made it!

§  If instead you got something about a “Bad command or file name”, then you need to install it from any website.

§  If you need to leave QBASIC, you can click on “File” on QBASIC’s menu and then “Exit” to get back to DOS.

§  At the “C:\WINDOWS>_” prompt, type: exit and then press the key to get rid of the DOS window.

Your First Program:

§  With the blinking cursor ( _ ) at the top-left corner of the screen, type this:

§  PRINT “Welcome to QBASIC. Your wish is my command.”

§  Make sure it looks exactly like that. The quotation marks (“) are very important. If you make any mistakes, use the BACKSPACE key to correct them.

Running Your Program:

§  You have to run it to find out. Look for the word “Run” on QBASIC’s menu at the top of the screen. Click on it. Now you will see a menu with a list of selections (Start, Restart, and Continue).

§  Click on Start to run your program. You may have to look around on the screen a bit, but you should find your message:

§  C:\WINDOWS> qbasic 

Welcome to QBASIC. Your wish is my command.

Advertisements

Give A message for us

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s