0% found this document useful (1 vote)
2K views24 pages

Chapter - 8: Introduction To Qb64

This document discusses QB64 and BASIC programming statements. It includes exercises that define terms, identify components of the QB64 window, and provide examples of PRINT, INPUT, LET and REM statements. Key points covered are: - QB64 is an editor that provides support for QBASIC programs. - The components of the QB64 window include title bar, menu bar, scroll bars, and status bar. - PRINT displays output, INPUT takes user input, LET assigns values to variables, and REM adds comments. - Variables can be numeric or string, identified with $ for string variables.

Uploaded by

Sudhanshu Saxena
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (1 vote)
2K views24 pages

Chapter - 8: Introduction To Qb64

This document discusses QB64 and BASIC programming statements. It includes exercises that define terms, identify components of the QB64 window, and provide examples of PRINT, INPUT, LET and REM statements. Key points covered are: - QB64 is an editor that provides support for QBASIC programs. - The components of the QB64 window include title bar, menu bar, scroll bars, and status bar. - PRINT displays output, INPUT takes user input, LET assigns values to variables, and REM adds comments. - Variables can be numeric or string, identified with $ for string variables.

Uploaded by

Sudhanshu Saxena
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 24

CHAPTER - 8

INTRODUCTION TO QB64
DIFFICULT WORDS:- (Notebook work)
1. Comprehensive
2. Components
3. Untitled
4. Horizontol
5. Executing
6. Displaying
7. Extension
8. Program
Exercises:- (Book work, page no. 106)
A. State whether true or false.
1. By default, the name of the program file in
QB64 is untitled. True
2. BES is the extension of a QB64 program. False
3. QBASIC is designed from BASIC language. True
4. Exit option is used to save the changes in the
program file. False
5. To exit from QB64, you use New option present
in the File menu. False
Exercise (Book work, Page no. 106)
B. Give one word for the following:
1. Runs a program F5
2. File extension in QB64 .bas
3. Helps to give a name to a file save As
4. Changes are saved Save
5. Command for clearing the screen CLS
6. Command to display the output on the screen PRINT
C. Label the following picture. (Page no. 106)
D. Answer the following questions. (Notebook
work)

1.What is QB64? How it is related to QBASIC?


Ans. QB64 is an editor with a compiler that provides
complete support for QBASIC programs.
2. Name the different components of QB64 window.
Ans. The different components of QB64 window are:-
a.Title bar
b.Menu bar
c.Program name
d.Vertical scroll bar
e.Horizontal scroll bar
f.Status bar
3.What command do you give to clear the output
screen?
Ans. The CLS command we give to clear the output
screen.
4.How do you execute a program in QB64?
Ans.The steps to execute a program are:-
1.Use PRINT and CLS command to write a simple
program.
2.Click on the Run menu → Start option.
3.The output screen occurs.
5.Why do you use Save As… option?
Ans. Save As helps to store a new file or to store
an existing file to a new location with the same
name or a different name.
Draw a diagram of Components of a QB64 window.
(Reference: page no. 100)
CHAPTER – 9
QB64 - STATEMENTS
Notebook work
Difficult words:-
1.Characters
2.Variable
3.Quotations
4.Semicolon
5.Corresponding
6.Alphanumeric
7.Statement
8.Execution
Bookwork (Page no. 115)
A.State wheather true or false.
1.Comma and semicolon are the two separators
used with PRINT. True
2.Print is a name of the memory location. False
3.Variables are non-executable statements. False
4.To accept a value from the user, input statement
is used. True
5.% sign is used with string variable. False
B.State the differences between:
1.STRING and NUMBER variables
String variable is used for storing string values. It can
be named using letter and numeric digits followed by
a ‘$’ sign.
whereas,
Number variable stores only numeric values.The
name of the variable can include letters and numeric
digits only.
2.INPUT and LET statements
INPUT statement is used to take input from the
user during the program execution.Each input is
stored in a separate variable.
whereas,
LET statement is used for assigning a value to a
variable within a program whose value may
change during the execution of the program.
3.PRINT with semicolon(;) and PRINT with
comma(,)
PRINT with semicolon is similar to pressing Space
bar key once. This command is used to leaves a
gap of one space between two printing values.
Whereas,
PRINT with comma is similar to a Tab key. This
command is used to leaves a gap of one tab space
between two printing values.
4.REM and PRINT statements.
REM stands for remark. It is used to enhance the
readability of the program code.
whereas,
PRINT statement is used for displaying a value,
message or an output on the monitor.
Notebook work.
D.Answer the following questions.

1.What is a PRINT statement? Give two examples.


Ans. PRINT statement is used for displaying a value,
message or an output on the monitor.
Example – PRINT “HELLO”
PRINT “10”
2.What is a variable? State two types of variables.
Ans.Variable is a named memory location that
contains a value which may or may not change during
the execution of the program.
The two types of variable are as follows:
a.Numeric variable
b.String variable
3.What is the use of REM statements? Give an
example.
Ans.The REM statement is used to add comments in a
program.
Example – PRINT “Hello”
REM To print a statement
INPUT “Enter your name”
4.What is the importance of the INPUT statenents?
Give an example.
Ans. INPUT statement is used to take input from the
user even during the execution of the program.
Example – Input “Enter Your Name”, Name$
5.What is the use of LET statement? Give a small
code to support your answer.
Ans. LET statement is used for assigning a value to
a variable within a program whose value may
change during the execution of the program.
Code – LET num = 35
PRINT num
Bookwook (Page no. 115)
C.Write command for the following statements.
1.To display “Hello QB64” message on the screen. PRINT
“Hello QB64”
2.To leave a blank line. PRINT
3.To assign a value 10 to a number variable N2.
N2 = 10
4.To assign a string value “ABC” to a string variable
NAME2. NAME2$=“ABC”
5.To accept class teacher’s name in the variable
CLTEACHER. INPUT "TYPE CLASS TEACHER
NAME";CLASSTEACHER$

You might also like