SlideShare a Scribd company logo
1 of 19
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

QBASIC
QBASICQBASIC
QBASICnivi88
 
Introduction to Programming and QBasic Tutorial
Introduction to Programming and QBasic TutorialIntroduction to Programming and QBasic Tutorial
Introduction to Programming and QBasic Tutorialnhomz
 
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 share1rowanalfred
 
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 typesNavtar 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
 
Introduction to visual basic programming
Introduction to visual basic programmingIntroduction to visual basic programming
Introduction to visual basic programmingRoger Argarin
 
Network ppt
Network pptNetwork ppt
Network ppthlalu861
 
Basic concepts of computer Networking
Basic concepts of computer NetworkingBasic concepts of computer Networking
Basic concepts of computer NetworkingHj Habib
 
Network Hardware And Software
Network Hardware And SoftwareNetwork Hardware And Software
Network Hardware And SoftwareSteven Cahill
 
Lecture 1 data structures and algorithms
Lecture 1 data structures and algorithmsLecture 1 data structures and algorithms
Lecture 1 data structures and algorithmsAakash deep Singhal
 

Viewers also liked (20)

Qbasic
QbasicQbasic
Qbasic
 
QBASIC
QBASICQBASIC
QBASIC
 
Introduction to Programming and QBasic Tutorial
Introduction to Programming and QBasic TutorialIntroduction to Programming and QBasic Tutorial
Introduction to Programming and QBasic Tutorial
 
Introduction to qbasic
Introduction to qbasicIntroduction to qbasic
Introduction to qbasic
 
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
 
Introduction to loops
Introduction to loopsIntroduction to loops
Introduction to loops
 
Qbtut2.1
Qbtut2.1Qbtut2.1
Qbtut2.1
 
Basics of Html
 Basics of Html Basics of Html
Basics of Html
 
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 ...
 
Data structure and its types
Data structure and its typesData structure and its types
Data structure and its types
 
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)
 
Computer network ppt
Computer network pptComputer network ppt
Computer network ppt
 
Introduction to visual basic programming
Introduction to visual basic programmingIntroduction to visual basic programming
Introduction to visual basic programming
 
Ppt of types of-network
Ppt of types of-network Ppt of types of-network
Ppt of types of-network
 
Network ppt
Network pptNetwork ppt
Network ppt
 
Networking
NetworkingNetworking
Networking
 
Basic concepts of computer Networking
Basic concepts of computer NetworkingBasic concepts of computer Networking
Basic concepts of computer Networking
 
Network Hardware And Software
Network Hardware And SoftwareNetwork Hardware And Software
Network Hardware And Software
 
Data Structure
Data StructureData Structure
Data Structure
 
Lecture 1 data structures and algorithms
Lecture 1 data structures and algorithmsLecture 1 data structures and algorithms
Lecture 1 data structures and algorithms
 

Similar to Computer (Q BASIC)

Similar to Computer (Q BASIC) (8)

Python : basic operators
Python : basic operatorsPython : basic operators
Python : basic operators
 
Java Programmin: Selections
Java Programmin: SelectionsJava Programmin: Selections
Java Programmin: Selections
 
Computer programming 2 Lesson 7
Computer programming 2  Lesson 7Computer programming 2  Lesson 7
Computer programming 2 Lesson 7
 
C operators
C operators C operators
C operators
 
Operator 04 (js)
Operator 04 (js)Operator 04 (js)
Operator 04 (js)
 
C operators
C operatorsC operators
C operators
 
Sql operators & functions 3
Sql operators & functions 3Sql operators & functions 3
Sql operators & functions 3
 
Control All
Control AllControl All
Control All
 

Recently uploaded

AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfphamnguyenenglishnb
 
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYKayeClaireEstoconing
 
Science 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptxScience 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptxMaryGraceBautista27
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designMIPLM
 
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfVirtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfErwinPantujan2
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxAnupkumar Sharma
 
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...Postal Advocate Inc.
 
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptxAUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptxiammrhaywood
 
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxBarangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxCarlos105
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONHumphrey A Beña
 
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfGrade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfJemuel Francisco
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPCeline George
 
FILIPINO PSYCHology sikolohiyang pilipino
FILIPINO PSYCHology sikolohiyang pilipinoFILIPINO PSYCHology sikolohiyang pilipino
FILIPINO PSYCHology sikolohiyang pilipinojohnmickonozaleda
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Mark Reed
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptxSherlyMaeNeri
 
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Celine George
 
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfInclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfTechSoup
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptxmary850239
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17Celine George
 

Recently uploaded (20)

AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
 
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
 
Science 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptxScience 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptx
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-design
 
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfVirtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
 
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
 
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptxAUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptx
 
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxBarangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
 
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfGrade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERP
 
FILIPINO PSYCHology sikolohiyang pilipino
FILIPINO PSYCHology sikolohiyang pilipinoFILIPINO PSYCHology sikolohiyang pilipino
FILIPINO PSYCHology sikolohiyang pilipino
 
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptxLEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptx
 
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
 
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfInclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17
 

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