317x Filetype PDF File size 0.14 MB Source: baibhavcomputer.com
QUESTIONS AND ANSWERS ON QBASIC
Q: 1: Why does BASIC means?
Ans: BASIC is the abbreviation of Beginner’s All-Purpose Symbolic Instruction
Code. It is a language which was invented to teach students a fundamental
concept of programming.
Q: 2: Who invented the BASIC Language?
Ans: In 1963 two Americans John Kemeny and Thomas Kurtz developed BASIC
(Beginner’s All-Purpose Symbolic Instruction Code) language for computers
at DarmouthCollege.
Q: 3 :Define Variables.
Ans: A variable is assigned an area in the memory that can be used to store a
value. The value stored in the variable can be changed during the program
execution.
Q:4 : How many types of variables are used in QBASIC?
Ans: Two types of variables are used in QBASIC. They are called Numeric
Variables and String Variables.
Q: 5: What are Numeric Variables?
Ans: Numeric Variables are those variables that can store numeric values.
Q: 6: What are String Variables?
Ans: String Variables are those variables that can store sequence of characters.
Q: 7: What is a constant?
Ans: A Constant is a quantity whose value cannot be changed; it cannot be
changed like a Variable. There are Numeric Constants and String Constants.
Q:8: What is a Numeric Constant?
Ans: Numeric Constant consists of integers, single-precision or double-
precision numbers.
Q: 9: What is a String Constant?
Ans: A String Constant is a sequence of alphanumeric characters enclosed in
double quotation marks. The maximum length of a String Constant is 255
characters.
Q: 10: What is a Direct Mode?
Ans: When QBASIC is loaded, it shows OK message, it is in Direct Mode. In this
mode Q-BASIC commands are executed as they are typed. Results are
displayed immediately but the commands themselves are lost after execution
Q: 11: What is an Indirect Mode?
Ans: The Indirect mode is used to type the programs. The program loaded in
memory is executed by entering RUN command.
Q: 12: What is a Flow Chart?
Ans: Flowchart is the pictorial representation of an algorithm. We can present
the flow of data in visual form with a Flowchart. The following symbols are
used in a Flow chart.
Q: 13: What is an Algorithm?
Ans: An Algorithm is a finite set of steps which, if followed, accomplish a
particular task.
Q: 14: What are logical errors?
Ans: Such errors are called Logical Errors that are caused in a program due to
improper use of symbols and date or wrong use of formula.
Q:15: What are Syntax Errors?
Ans: Such errors that arise due to limitation of computer are called Syntax
Errors.
Q:16 : What are reserved words or Key words?
Ans: IN QBASIC some words have fixed meanings and cannot be used as a
variable, such words are called Key Words or reserved Words. Such as, IF,
THEN, NEXT, FOR.
Q:17 : Write a note on REM statement in QBASIC.
Ans: The REM statement is used to give remarks or comments in a program.
This statement is not executed. The computer ignores the REM statement.
Q:18 : What is the use of LET statement ?
Ans: The LET statement is used to assign or give a value to a variable. The LET
statement is also known as the assignment statement.
LET A = 100
This statement assigns the value 100 to the numeric variable A.
Q:19 : Write a note on PRINT statement in QBASIC.
Ans: The PRINT statement is used to display numbers, messages or values of
variables on the output screen. You can use a comma or a semicolon to
combine numbers, messages or values in a single PRINT statement.
Q:20 : What is the use of INPUT statement ?
Ans:The INPUT statement is used to take a value from the user and store it in a
variable. The computer asks for a value by displaying a question mark (?) and
puts a cursor on the screen where the user should type the data and press
Enter.
Q:21 : What are conditional statements ?
Ans: Conditional statements are used to execute a block of statements
depending upon a condition. They help to control the flow of the program and
hence are also known as control statements.
Q:22 : What is a Loop?
Ans: Loop is a technique to execute a set of statements repeatedly.
no reviews yet
Please Login to review.