Cards (126)

    • The value assigned to a variable must match its declared data type.

      True
    • Variables are referred to by their names in a program.

      True
    • What is a float in programming?
      A number with a decimal
    • In Python, an integer variable can be declared as age = 25
    • A float is used to store numbers with decimal points
    • In Python, an integer variable can be declared as age = 25
    • Which data type is used to store "True" or "False" values in Python?
      Boolean
    • What is the primary characteristic of a variable's value?
      It can be updated
    • What type of data is stored in a string variable?
      Text or characters
    • What is an integer used for in programming?
      Whole numbers
    • What type of numbers are stored in a float variable?
      Decimal numbers
    • Give an example of an integer value.
      42
    • What is the value of a boolean variable that represents a false condition?
      False
    • The assignment operator in Python is equal
    • The assignment operator `=` is used to store a value in a variable.

      True
    • Each variable must be declared with a name and a data type
    • An integer is a whole number without decimal points
    • What are the possible values of a boolean data type?
      True or False
    • What is an integer used for in programming?
      Whole numbers
    • What is a boolean variable used for in programming?
      True or False values
    • The string variable `name` is assigned the value `"Alice"` in Python.
      True
    • Each variable is referred to by its unique name in programming.

      True
    • A float can store numbers with decimal points in programming.
      True
    • In Python, declaring an integer variable requires using the keyword `int`.
      False
    • A boolean variable can only store two values: True or False.

      True
    • Variables must be declared before they can be used in a program.
      True
    • A string variable in Python can store text or characters.

      True
    • Match the data type with its example:
      Integer ↔️ 42
      Float ↔️ 3.14
      String ↔️ "Hello"
      Boolean ↔️ True
    • What is the second step in assigning a value to a variable?
      Use the assignment operator
    • The first step in assigning a value to a variable is to declare
    • Before assigning a value, a variable must be declared
    • What are the four common data types mentioned in the study material?
      Integer, float, string, boolean
    • To use a variable, you must first declare
    • What are two examples of integer variables declared in Python?
      age, count
    • What are two examples of boolean variables declared in Python?
      is_student, is_valid
    • Integer variables are used to store whole numbers without decimal points.
    • An example of an integer value is 42
    • A variable is a named storage location in a computer's memory used to hold values.
    • The data type for whole numbers without decimals is called an integer
    • Variables hold a specific value
    See similar decks