Study

Python Part 4

  •   0%
  •  0     0     0

  • What purpose is integer type used for?
    Used to store whole numbers without a fractional part
  • What is a program?
    A program is an algorithm that has been converted into program code so that it can be executed by a computer.
  • What is character type in programming?
    A character can be a single letter, a symbol, a number or even a space. It is one of the four basic data types
  • What is string type in programming?
    A set of characters which can include spaces and numbers and are treated as text rather than numbers
  • What purpose is float or real type used for?
    Used to store numbers with a fractional part (decimal place). Real numbers are sometimes referred to as floats (short for floating point)
  • What are the data types in programming?
    Integer, Real or Float, Boolean, Character, String
  • What is Boolean type in programming?
    Only has two possible values: True or False