際際滷

際際滷Share a Scribd company logo
UJJAL SHARMA
UJJAL SHARMA
UJJAL SHARMA
: The command which display text
and numbers in the screen.
              : Helps to make clear the screen after
a command is executed.
               : It helps to add text or remark for
the user that will not be executed.
               : It stops the execution of the
program.




                     UJJAL SHARMA
UJJAL SHARMA
The comma causes the output to be displayed after
leaving a gap of approximately 8-10 characters.
Syntax: PRINT text, text



It will execute the following.



                         UJJAL SHARMA
T h e s e mi c o    l o n c a u s e s
t h e o u t p u t    t o b e
d i s p l a y e d   a f t e r
l e a v i n g n o    s p a c e .
Sy n t a x : PRI     N T t e x t ;
t e x t 




Ex e c u t i o n wi l l
                    UJJAL SHARMA   b e t h e
Th    e    Co l o n a l l           o ws t o
wr    i   t e mo r e t h            a n o n e
s t   a   t e me n t o n            a s i n g l e
l i   n   e .
Sy    n   t a x : PRI NT            t e x t :
Pr    i   n t t e x t 




I t   wi l l    Pr i n t
                     UJJAL SHARMA   t h e
We will know about the basic rules to use
Variables.

 A variable can be big or small, it may contain
  letter or numbers but the first letter should
  be a letter.
 A variable cannot contain spaces.
 A special character is allowed in QBASIC
  which is underscore.

                     UJJAL SHARMA
 We will know about three types of
  operators:




                  UJJAL SHARMA
Operation            Arithmetic           Example          Output
                                          a = 20
                     Symbol               b = 10
Addition             +                    PRINT a + b      30

Subtraction          -                    PRINT a - b      10

Multiplication       *                    PRINT a * b      200

Division             /                    PRINT a/b        2

Parenthesis          ()                   PRIN a + (b*2)   40

Raising to a power                        PRINT a 甼2       400
                     甼
                                  UJJAL SHARMA
Operation                  Relational     Example   Output (Will
                                          a = 20
                           Symbols        b = 10    result in TRUE
                                                    or FALSE)

Greater than               >              a>b       TRUE

Greater than or equal to   >=             a>=b      TRUE

Less than                  <              a<b       FALSE

Less than or equal to      <=             a<=b      FALSE

Equal to                   =              a=b       FALSE

Not equal to               <>             a<>b      TRUE
                                   UJJAL SHARMA
Operation             Relational           Example                 Output (Will
                                           a = 20
                      Symbols              b = 10                  result in TRUE
                                           c = 50                  or FALSE)
AND (All the          AND                  a>b and a>c            False
conditions must be                         Here, cond1 (a>b) is
true for the final                         true but cond2 (a>c)
result to be true)                         is false. So the final
                                           result is false.

OR (Any one or all     OR                  a>b and a>c             True
the conditions                             Here, since one
should be true for                         condition i.e. cond1
the final result to be                     (a>b) is true, so the
true)                                      final result is true.

                                   UJJAL SHARMA
 We will know about 3 statements:




                    UJJAL SHARMA
 When a value of a variable is required to be
  accepted during the execution of the program,
  then the INPUT command is used.
 Syntax: INPUT Variable name
Example




The output is in next slide.
                      UJJAL SHARMA
 At first




 Next




 And then


             UJJAL SHARMA
UJJAL SHARMA
 GOTO command is used to shift the control of the
  program to the desired command. To specify where the
  control of the program should go, label name is
  specified along with the GOTO command.
 Example,


                                   The label name is
                                   always followed by
                                   a colon
Output will be

                         UJJAL SHARMA
UJJAL SHARMA

More Related Content

Viewers also liked (20)

Qbasic
QbasicQbasic
Qbasic
Shubham Gupta
QBASIC
QBASICQBASIC
QBASIC
nivi88
Introduction to Programming and QBasic Tutorial
Introduction to Programming and QBasic TutorialIntroduction to Programming and QBasic Tutorial
Introduction to Programming and QBasic Tutorial
nhomz
Introduction to qbasic
Introduction to qbasicIntroduction to qbasic
Introduction to qbasic
Richa Karthikeyan
Andrew raj, teacher at don bosco, egmore slide share1
Andrew raj, teacher at don bosco, egmore   slide share1Andrew raj, teacher at don bosco, egmore   slide share1
Andrew raj, teacher at don bosco, egmore slide share1
rowanalfred
Introduction to loops
Introduction to loopsIntroduction to loops
Introduction to loops
Richa Karthikeyan
Qbtut2.1
Qbtut2.1Qbtut2.1
Qbtut2.1
agtishan
Basics of Html
 Basics of Html Basics of Html
Basics of Html
Arslan Butt
Introduction to Java programming - Java tutorial for beginners to teach Java ...
Introduction to Java programming - Java tutorial for beginners to teach Java ...Introduction to Java programming - Java tutorial for beginners to teach Java ...
Introduction to Java programming - Java tutorial for beginners to teach Java ...
Duckademy IT courses
Data structure and its types
Data structure and its typesData structure and its types
Data structure and its types
Navtar Sidhu Brar
Intro to Adobe Flash CS3 welcome & course outline (2010)
Intro to Adobe Flash CS3 welcome & course outline (2010)Intro to Adobe Flash CS3 welcome & course outline (2010)
Intro to Adobe Flash CS3 welcome & course outline (2010)
Matteo Wyllyamz
Computer network ppt
Computer network pptComputer network ppt
Computer network ppt
Santosh Delwar
Introduction to visual basic programming
Introduction to visual basic programmingIntroduction to visual basic programming
Introduction to visual basic programming
Roger Argarin
Ppt of types of-network
Ppt of types of-network Ppt of types of-network
Ppt of types of-network
Darshit narechania
Network ppt
Network pptNetwork ppt
Network ppt
hlalu861
Networking
NetworkingNetworking
Networking
Palash Sachan
Basic concepts of computer Networking
Basic concepts of computer NetworkingBasic concepts of computer Networking
Basic concepts of computer Networking
Hj Habib
Network Hardware And Software
Network Hardware And SoftwareNetwork Hardware And Software
Network Hardware And Software
Steven Cahill
Data Structure
Data StructureData Structure
Data Structure
Karthikeyan A K
Lecture 1 data structures and algorithms
Lecture 1 data structures and algorithmsLecture 1 data structures and algorithms
Lecture 1 data structures and algorithms
Aakash deep Singhal
QBASIC
QBASICQBASIC
QBASIC
nivi88
Introduction to Programming and QBasic Tutorial
Introduction to Programming and QBasic TutorialIntroduction to Programming and QBasic Tutorial
Introduction to Programming and QBasic Tutorial
nhomz
Andrew raj, teacher at don bosco, egmore slide share1
Andrew raj, teacher at don bosco, egmore   slide share1Andrew raj, teacher at don bosco, egmore   slide share1
Andrew raj, teacher at don bosco, egmore slide share1
rowanalfred
Qbtut2.1
Qbtut2.1Qbtut2.1
Qbtut2.1
agtishan
Basics of Html
 Basics of Html Basics of Html
Basics of Html
Arslan Butt
Introduction to Java programming - Java tutorial for beginners to teach Java ...
Introduction to Java programming - Java tutorial for beginners to teach Java ...Introduction to Java programming - Java tutorial for beginners to teach Java ...
Introduction to Java programming - Java tutorial for beginners to teach Java ...
Duckademy IT courses
Data structure and its types
Data structure and its typesData structure and its types
Data structure and its types
Navtar Sidhu Brar
Intro to Adobe Flash CS3 welcome & course outline (2010)
Intro to Adobe Flash CS3 welcome & course outline (2010)Intro to Adobe Flash CS3 welcome & course outline (2010)
Intro to Adobe Flash CS3 welcome & course outline (2010)
Matteo Wyllyamz
Computer network ppt
Computer network pptComputer network ppt
Computer network ppt
Santosh Delwar
Introduction to visual basic programming
Introduction to visual basic programmingIntroduction to visual basic programming
Introduction to visual basic programming
Roger Argarin
Network ppt
Network pptNetwork ppt
Network ppt
hlalu861
Basic concepts of computer Networking
Basic concepts of computer NetworkingBasic concepts of computer Networking
Basic concepts of computer Networking
Hj Habib
Network Hardware And Software
Network Hardware And SoftwareNetwork Hardware And Software
Network Hardware And Software
Steven Cahill
Lecture 1 data structures and algorithms
Lecture 1 data structures and algorithmsLecture 1 data structures and algorithms
Lecture 1 data structures and algorithms
Aakash deep Singhal

Similar to Computer (Q BASIC) (8)

Python : basic operators
Python : basic operatorsPython : basic operators
Python : basic operators
S.M. Salaquzzaman
Java Programmin: Selections
Java Programmin: SelectionsJava Programmin: Selections
Java Programmin: Selections
Karwan Mustafa Kareem
Computer programming 2 Lesson 7
Computer programming 2  Lesson 7Computer programming 2  Lesson 7
Computer programming 2 Lesson 7
MLG College of Learning, Inc
C operators
C operators C operators
C operators
AbiramiT9
Operator 04 (js)
Operator 04 (js)Operator 04 (js)
Operator 04 (js)
AbhishekMondal42
C operators
C operatorsC operators
C operators
Rupanshi rawat
Sql operators & functions 3
Sql operators & functions 3Sql operators & functions 3
Sql operators & functions 3
Dr. C.V. Suresh Babu
Control All
Control AllControl All
Control All
phanleson

Recently uploaded (20)

Using GenAI for Universal Design for Learning
Using GenAI for Universal Design for LearningUsing GenAI for Universal Design for Learning
Using GenAI for Universal Design for Learning
Damian T. Gordon
How to manage Customer Tips with Odoo 17 Point Of Sale
How to manage Customer Tips with Odoo 17 Point Of SaleHow to manage Customer Tips with Odoo 17 Point Of Sale
How to manage Customer Tips with Odoo 17 Point Of Sale
Celine George
All India Council of Skills and Vocational Studies (AICSVS) PROSPECTUS 2025
All India Council of Skills and Vocational Studies (AICSVS) PROSPECTUS 2025All India Council of Skills and Vocational Studies (AICSVS) PROSPECTUS 2025
All India Council of Skills and Vocational Studies (AICSVS) PROSPECTUS 2025
National Council of Open Schooling Research and Training
How to process Interwarehouse and Intrawarehouse transfers in Odoo
How to process Interwarehouse and Intrawarehouse transfers in OdooHow to process Interwarehouse and Intrawarehouse transfers in Odoo
How to process Interwarehouse and Intrawarehouse transfers in Odoo
Celine George
Synthesis for VIth SEM 21-2-25.pptx by Mrs. Manjushri P. Dabhade
Synthesis for VIth SEM 21-2-25.pptx by Mrs. Manjushri P. DabhadeSynthesis for VIth SEM 21-2-25.pptx by Mrs. Manjushri P. Dabhade
Synthesis for VIth SEM 21-2-25.pptx by Mrs. Manjushri P. Dabhade
Dabhade madam Dabhade
Conrad "Accessibility Essentials: Introductory Seminar"
Conrad "Accessibility Essentials: Introductory Seminar"Conrad "Accessibility Essentials: Introductory Seminar"
Conrad "Accessibility Essentials: Introductory Seminar"
National Information Standards Organization (NISO)
NC Advisory Council on Student Safety and Well-Being
NC Advisory Council on Student Safety and Well-BeingNC Advisory Council on Student Safety and Well-Being
NC Advisory Council on Student Safety and Well-Being
Mebane Rash
UNIT 1 Introduction to communication.pptx
UNIT 1 Introduction to communication.pptxUNIT 1 Introduction to communication.pptx
UNIT 1 Introduction to communication.pptx
HARIHARAN A
nature and importance of Indian Knowledge System
nature and importance of Indian Knowledge Systemnature and importance of Indian Knowledge System
nature and importance of Indian Knowledge System
hanishabatra0
Mixed_Sinhala_Dual_Male_Names (1).pdf...
Mixed_Sinhala_Dual_Male_Names (1).pdf...Mixed_Sinhala_Dual_Male_Names (1).pdf...
Mixed_Sinhala_Dual_Male_Names (1).pdf...
keshanf79
Action of Muscles ppt by Priscilla Jasper Vedam Vemavarapu @ASRHMC
Action of  Muscles ppt by Priscilla Jasper Vedam Vemavarapu @ASRHMCAction of  Muscles ppt by Priscilla Jasper Vedam Vemavarapu @ASRHMC
Action of Muscles ppt by Priscilla Jasper Vedam Vemavarapu @ASRHMC
jaspervedamvemavarap
Code a Strategy on Pine Script With the Help of ChatGPT by Akshay Choudhary
Code a Strategy on Pine Script With the Help of ChatGPT by Akshay ChoudharyCode a Strategy on Pine Script With the Help of ChatGPT by Akshay Choudhary
Code a Strategy on Pine Script With the Help of ChatGPT by Akshay Choudhary
QuantInsti
10.socialorganisationandsocialsystem .pptx
10.socialorganisationandsocialsystem .pptx10.socialorganisationandsocialsystem .pptx
10.socialorganisationandsocialsystem .pptx
Vivek Bhattji
Strategic Corporate Social Responsibility: Sustainable Value Creation Fourth
Strategic Corporate Social Responsibility: Sustainable Value Creation FourthStrategic Corporate Social Responsibility: Sustainable Value Creation Fourth
Strategic Corporate Social Responsibility: Sustainable Value Creation Fourth
keileyrazawi
O SWEET SPONTANEOUS BY EDWARD ESTLIN CUMMINGSAN.pptx
O SWEET SPONTANEOUS BY EDWARD ESTLIN CUMMINGSAN.pptxO SWEET SPONTANEOUS BY EDWARD ESTLIN CUMMINGSAN.pptx
O SWEET SPONTANEOUS BY EDWARD ESTLIN CUMMINGSAN.pptx
AituzazKoree
SUPPOSITORIES
SUPPOSITORIESSUPPOSITORIES
SUPPOSITORIES
Shantanu Ranjan
Proteins, Bio similars & Antibodies.pptx
Proteins, Bio similars &  Antibodies.pptxProteins, Bio similars &  Antibodies.pptx
Proteins, Bio similars & Antibodies.pptx
Ashish Umale
APM London Network: Essentials of a Good PMO, 2 April 2025
APM London Network: Essentials of a Good PMO, 2 April 2025APM London Network: Essentials of a Good PMO, 2 April 2025
APM London Network: Essentials of a Good PMO, 2 April 2025
Association for Project Management
Combinatorial_Chemistry.pptx by Mrs. Manjushri P. Dabhade
Combinatorial_Chemistry.pptx by Mrs. Manjushri P. DabhadeCombinatorial_Chemistry.pptx by Mrs. Manjushri P. Dabhade
Combinatorial_Chemistry.pptx by Mrs. Manjushri P. Dabhade
Dabhade madam Dabhade
YSPH VMOC Special Report - Measles Outbreak Southwest US 4-6-2025 ver 5.pptx
YSPH VMOC Special Report - Measles Outbreak  Southwest US 4-6-2025 ver 5.pptxYSPH VMOC Special Report - Measles Outbreak  Southwest US 4-6-2025 ver 5.pptx
YSPH VMOC Special Report - Measles Outbreak Southwest US 4-6-2025 ver 5.pptx
Yale School of Public Health - The Virtual Medical Operations Center (VMOC)
Using GenAI for Universal Design for Learning
Using GenAI for Universal Design for LearningUsing GenAI for Universal Design for Learning
Using GenAI for Universal Design for Learning
Damian T. Gordon
How to manage Customer Tips with Odoo 17 Point Of Sale
How to manage Customer Tips with Odoo 17 Point Of SaleHow to manage Customer Tips with Odoo 17 Point Of Sale
How to manage Customer Tips with Odoo 17 Point Of Sale
Celine George
How to process Interwarehouse and Intrawarehouse transfers in Odoo
How to process Interwarehouse and Intrawarehouse transfers in OdooHow to process Interwarehouse and Intrawarehouse transfers in Odoo
How to process Interwarehouse and Intrawarehouse transfers in Odoo
Celine George
Synthesis for VIth SEM 21-2-25.pptx by Mrs. Manjushri P. Dabhade
Synthesis for VIth SEM 21-2-25.pptx by Mrs. Manjushri P. DabhadeSynthesis for VIth SEM 21-2-25.pptx by Mrs. Manjushri P. Dabhade
Synthesis for VIth SEM 21-2-25.pptx by Mrs. Manjushri P. Dabhade
Dabhade madam Dabhade
NC Advisory Council on Student Safety and Well-Being
NC Advisory Council on Student Safety and Well-BeingNC Advisory Council on Student Safety and Well-Being
NC Advisory Council on Student Safety and Well-Being
Mebane Rash
UNIT 1 Introduction to communication.pptx
UNIT 1 Introduction to communication.pptxUNIT 1 Introduction to communication.pptx
UNIT 1 Introduction to communication.pptx
HARIHARAN A
nature and importance of Indian Knowledge System
nature and importance of Indian Knowledge Systemnature and importance of Indian Knowledge System
nature and importance of Indian Knowledge System
hanishabatra0
Mixed_Sinhala_Dual_Male_Names (1).pdf...
Mixed_Sinhala_Dual_Male_Names (1).pdf...Mixed_Sinhala_Dual_Male_Names (1).pdf...
Mixed_Sinhala_Dual_Male_Names (1).pdf...
keshanf79
Action of Muscles ppt by Priscilla Jasper Vedam Vemavarapu @ASRHMC
Action of  Muscles ppt by Priscilla Jasper Vedam Vemavarapu @ASRHMCAction of  Muscles ppt by Priscilla Jasper Vedam Vemavarapu @ASRHMC
Action of Muscles ppt by Priscilla Jasper Vedam Vemavarapu @ASRHMC
jaspervedamvemavarap
Code a Strategy on Pine Script With the Help of ChatGPT by Akshay Choudhary
Code a Strategy on Pine Script With the Help of ChatGPT by Akshay ChoudharyCode a Strategy on Pine Script With the Help of ChatGPT by Akshay Choudhary
Code a Strategy on Pine Script With the Help of ChatGPT by Akshay Choudhary
QuantInsti
10.socialorganisationandsocialsystem .pptx
10.socialorganisationandsocialsystem .pptx10.socialorganisationandsocialsystem .pptx
10.socialorganisationandsocialsystem .pptx
Vivek Bhattji
Strategic Corporate Social Responsibility: Sustainable Value Creation Fourth
Strategic Corporate Social Responsibility: Sustainable Value Creation FourthStrategic Corporate Social Responsibility: Sustainable Value Creation Fourth
Strategic Corporate Social Responsibility: Sustainable Value Creation Fourth
keileyrazawi
O SWEET SPONTANEOUS BY EDWARD ESTLIN CUMMINGSAN.pptx
O SWEET SPONTANEOUS BY EDWARD ESTLIN CUMMINGSAN.pptxO SWEET SPONTANEOUS BY EDWARD ESTLIN CUMMINGSAN.pptx
O SWEET SPONTANEOUS BY EDWARD ESTLIN CUMMINGSAN.pptx
AituzazKoree
Proteins, Bio similars & Antibodies.pptx
Proteins, Bio similars &  Antibodies.pptxProteins, Bio similars &  Antibodies.pptx
Proteins, Bio similars & Antibodies.pptx
Ashish Umale
Combinatorial_Chemistry.pptx by Mrs. Manjushri P. Dabhade
Combinatorial_Chemistry.pptx by Mrs. Manjushri P. DabhadeCombinatorial_Chemistry.pptx by Mrs. Manjushri P. Dabhade
Combinatorial_Chemistry.pptx by Mrs. Manjushri P. Dabhade
Dabhade madam Dabhade

Computer (Q BASIC)

  • 4. : The command which display text and numbers in the screen. : Helps to make clear the screen after a command is executed. : It helps to add text or remark for the user that will not be executed. : It stops the execution of the program. UJJAL SHARMA
  • 6. The comma causes the output to be displayed after leaving a gap of approximately 8-10 characters. Syntax: PRINT text, text It will execute the following. UJJAL SHARMA
  • 7. T h e s e mi c o l o n c a u s e s t h e o u t p u t t o b e d i s p l a y e d a f t e r l e a v i n g n o s p a c e . Sy n t a x : PRI N T t e x t ; t e x t Ex e c u t i o n wi l l UJJAL SHARMA b e t h e
  • 8. Th e Co l o n a l l o ws t o wr i t e mo r e t h a n o n e s t a t e me n t o n a s i n g l e l i n e . Sy n t a x : PRI NT t e x t : Pr i n t t e x t I t wi l l Pr i n t UJJAL SHARMA t h e
  • 9. We will know about the basic rules to use Variables. A variable can be big or small, it may contain letter or numbers but the first letter should be a letter. A variable cannot contain spaces. A special character is allowed in QBASIC which is underscore. UJJAL SHARMA
  • 10. We will know about three types of operators: UJJAL SHARMA
  • 11. Operation Arithmetic Example Output a = 20 Symbol b = 10 Addition + PRINT a + b 30 Subtraction - PRINT a - b 10 Multiplication * PRINT a * b 200 Division / PRINT a/b 2 Parenthesis () PRIN a + (b*2) 40 Raising to a power PRINT a 甼2 400 甼 UJJAL SHARMA
  • 12. Operation Relational Example Output (Will a = 20 Symbols b = 10 result in TRUE or FALSE) Greater than > a>b TRUE Greater than or equal to >= a>=b TRUE Less than < a<b FALSE Less than or equal to <= a<=b FALSE Equal to = a=b FALSE Not equal to <> a<>b TRUE UJJAL SHARMA
  • 13. Operation Relational Example Output (Will a = 20 Symbols b = 10 result in TRUE c = 50 or FALSE) AND (All the AND a>b and a>c False conditions must be Here, cond1 (a>b) is true for the final true but cond2 (a>c) result to be true) is false. So the final result is false. OR (Any one or all OR a>b and a>c True the conditions Here, since one should be true for condition i.e. cond1 the final result to be (a>b) is true, so the true) final result is true. UJJAL SHARMA
  • 14. We will know about 3 statements: UJJAL SHARMA
  • 15. When a value of a variable is required to be accepted during the execution of the program, then the INPUT command is used. Syntax: INPUT Variable name Example The output is in next slide. UJJAL SHARMA
  • 16. At first Next And then UJJAL SHARMA
  • 18. GOTO command is used to shift the control of the program to the desired command. To specify where the control of the program should go, label name is specified along with the GOTO command. Example, The label name is always followed by a colon Output will be UJJAL SHARMA