Public Service Commission Preparation, Computer Operator, Blogspot and Wordpress Blogging, Qbasic Programming

QBASIC

Qbasic Program; Write a program to find the simple interest.

Post Top Ad

Ms-Office Practical Guides

In this section, we present the learning materials for your computer practical exam especially in Ms-Office. Most important, frequently asked Questions, Practical Guides, Practice Sets, and Tips & Tricks from Ms-word, Ms-excel, Ms-powerpoint, Ms-Access and HTML for the practical exam preparation of PSC Computer Operator and Data Entry Supervisor. Let's started to learn.


Ms-Word

Practical Guides

Ms-Word

Asked Papers

Ms-Word

Practice Sets

Ms-Word

Tips & Tricks


Ms-Excel

Practical Guides

Ms-Excel

Asked Papers

Ms-Excel

Practice Sets

Ms-Excel

Tips & Tricks


Ms-Powerpoint

Practical Guides

Ms-Powerpoint

Asked Papers

Ms-Powerpoint

Practice Sets

Ms-Powerpoint

Tips & Tricks


Ms-Access

Practical Guides

Ms-Access

Asked Papers

Ms-Access

Practice Sets

Ms-Access

Tips & Tricks


Multiple Choice Questions Sets

Here we presents the selected, Most important, frequently asked Multiple Choice Questions from Ms-word, Ms-excel, Ms-powerpoint, Ms-Access and HTML for the written exam preparation of PSC Computer Operator and Data Entry Supervisor. Let's Get started to learn.


Ms-Word

MCQ Sets

Ms-Excel

MCQ Sets

Ms-Powerpoint

MCQ Sets

Ms-Access

MCQ Sets


HTML

MCQ Sets

Operating System

MCQ Sets



Interviews Preparations

The most important part of preparing for an Interview is practice. Preparation is the key to a successfull interview so take a look at Preparations Questions and Tips & Tricks how to answer them. Let's Get started to learn.


Interview Questions

Asked Before

Tips & Tricks

Based on Experience



Question Papers

I knew its hard to find the right question papers in internet from one website. But it's good to say here i collects questions papers sets that are previously asked from psc exams. These questions will be helpful for the final preparation of your exam. Let's start to expand your knowledge.


Section Officer

Asked Before

Computer Officer

Asked Papers

Nayab Subba

Asked Papers

Computer Operator

Asked Papers


Kharidar

Asked Papers

Asst. C.O.

Asked Papers



Modal Practice Paper Sets

Here we have writes some sample practical paper sets for your exam. Try to solve these questions within time at home frequently. If you solve this within time you will cover almost every quetions in exam hall. These questions will be helpful for the final preparation of your exam. Let's start to practice.


Section Officer

Modal Sets

Computer Officer

Asked Papers

Nayab Subba

Modal Sets

Computer Operator

Modal Sets


Kharidar

Modal Sets

Asst. C.O.

Modal Sets



Tutorials & Courses

In this section, we presents the learning materials for your Public Service Commission exam, bank exam, Nea exam, institutional exan etc. This section contains chapters with solutions, cources, or any thing that helps for your written exam, practical exam & interview based on curriculam. Let's start to prepare for your exam.


Section Officer

Tutorials

Computer Officer

Tutorials

Nayab Subba

Tutorials

Computer Operator

Tutorials


Kharidar

Tutorials

Asst. C.O.

Tutorials



Blogging & Wordpress Tutorials, Courses

In this place, you will find blogging tips, new strategies, and will teach you how to be a bogger with just the most basic computer skills. Everything you need to know to start blogging-we'll show you how step by step for blogging and wordpress. Let's Get started to learn.


Wordpress

Tips

Blogging

Tips

Wordpress

New Strategies

Blogging

New Strategies


Blogging

Make Money

Wordpress

Make money

Blogging

Guide

Wordpress

Guide


Blogging

For Beginners

Wordpress

For Beginners

Blogging

Tutorials

Wordpress

Tutorials


Wordpress

How to start?

Blogging

How to start?

Blogging

Intermediate

Wordpress

Intermediate


Post Top Ad

Question:- Write a program to find the sum of any two integers.

Solution:-

Before starting a Qbasic program you need to know what a program is. So I'm going to tell you a little bit about the program and so on.
Computer Program:-
A computer Program is a set of instructions given to the computer to perform a particular task. It is writtern in a programming language such as QBASIC, C, C++ etc. given by the users that are translated into machine level language to obtain the desired result.
Computer Programming:-
Computer Programming is the process of designing, writing, testing, debugging and maintaining the source code written in a particular computer language.
Programmer:-
A programmer is a person who is involved in the different processes of computer programming.
Programming Language:-
It is coded or artificial language used to write instructions that a computer can understand to do what the user wants.
A programming langage is therefore a practical way for us to give instructions to a computer.

Before going on code, i will you introduce about Qbasic Programming.
QBASIC (Quick Beginner's All purpose Symbolic Instruction Code) is a high level programming language delveloped by Microsoft Corporation in 1985. It is a modular Programming Language, where program is divided into different modules or procedure. QBasic is simple and easy to learn. It uses English like Keywords and mathematical symbols to write a program.
Features of QBasic Programming:-
  • It is simple and easy to learn
  • It is an interpreter having its own editor.
  • It has dynamic program debugging.
  • It supports the local and global variable.
  • It supports modular programming.
  • It capitalizes the reserved words automatically.
  • The syntaxes of the statements are checked automatically.
Starting QBASIC
QBASIC may not be on your computer. At first, you need to have QBASIC in your computer. It is freely available. You can download it from internet as well.
Downloading QBASIC Software:-
In Windows 7, 8, 10:-
I have written a post before this. In this post, I have provided detailed experimental information on how to download and run Qbasic software on your computer.
You can find out how to download Qbasic by looking at this post. After downloading Qbasic you should run Application file.
If there is any problem, please comment in the comment box below..
Now you will see the QBASIC window where you have to write QBASIC Statements to make your program.
Please if the following Images do not clearly displays, click on images to view largely images.
.com/img/a/
Your First Program:-
Just type the below statements in the above screen.
PRINT "Hello World"
END
Running (executing) your program:-
Press F5 button from your computer keyboard. Now you will see the output screen as below.
This is a sample program to display the words "Hello World" on the output screen.
.com/img/a/
Now we will start write code for the above query.
QBASIC CODE for above Question:- 
Step 1:- Open Qbasic Software from your computer.
Step 2:- The following Qbasic Code is used to solve to above query. Write down the following Qbasic Code clearly in the Qbasic software that you have opened.
Rem To find out the simple interest
Cls
P = 1000
T = 2
R = 6
I = P * T * R / 100
Print "The Simple Interest is = "; I
End
Before we go on Syntax we know some below topics:-
QBASIC Statements:-
The instructions within a program are called statements. Each QBasic instruction is like a sentence. As a sentence must have a verb in it, each Qbasic instruction must have a Qbasic Keyword. A Qbasic statement is either executable or non-executable.
Now In the above Syntax the following statements are used:-
CLS:-
To clear the screen
REM Statements [Comments]:-
Commensts may be included in a QBASIC Program to describe the purpose or to clarify some portion of code in a program. In QBasic, we use REM or ' for comments.
Print Statement (Print):-
To display the output on the screen.
END Statement:-
It is a declaration that ends a QBASIC program, procedure or block.
After typing the above code in Qbasic Software, you have to follow following steps.
.com/img/a/
Step 3:- To run this program, Go to Run Tab menu, click to start. You can also press Shortcut F5 key from the keyboard.
.com/img/a/
After this, click on OK button.
Step 4:- After running the program, following black window output screen is display.
.com/img/a/
Step 5:- After running program, the simple interest calculates and display on the output screen. 
.com/img/a/
That's all.
Step 7:- But don't forget to save the program you have written. To save press ctrl + s key or Go to File Menu, Click on Save button.
.com/img/a/
Step 8:- Write the name of file in the file name field, Choose the file path where you want to save the file in the computer and Click on OK button.
.com/img/a/
Step 9:- Your File saved. If you need to edit in your code, you can open your saved file later.
.com/img/a/

No comments:

Post a Comment

Post Bottom Ad