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
QBASIC
nivi88
 
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
 
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
 
Introduction to visual basic programming
Introduction to visual basic programmingIntroduction to visual basic programming
Introduction to visual basic programming
Roger Argarin
 
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
 

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)

Java Programmin: Selections
Java Programmin: SelectionsJava Programmin: Selections
Java Programmin: Selections
Karwan Mustafa Kareem
 

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

Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
ZurliaSoop
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
AnaAcapella
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
KarakKing
 

Recently uploaded (20)

How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptx
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptx
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 

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