Introduction to Python programming Flashcards | StudBud
  • 5
    What is the output of the following code?
    • 2
    • 4
    • 1
    • 3
  • 6
    A programming language is a set of rules and syntax for writing programs.
    • True
    • False
  • 7
    What is the output of the following code?
    • 1,2
    • i,i,i
    • 0,1,2
    • 1,2,3
  • 8
    A list can only store one data type
    • False
    • True
  • 9
    What is the output of the following code?
    • cherry
    • 1
    • apple
    • banana
  • 10
    What is the output of the following code?
    • 20
    • 10
    • 15
    • 5
  • 11
  • What is the output of the following code?
  • 12
  • What is the output of the following code?
  • 13
    How can you check the number of elements in a list in Python?
    • Using the "size" function
    • Using the "count" function
    • Using the "length" function
    • Using the "len" function
  • 14
    Which of the following data types can be used to store decimal numbers in Python?
    • int
    • str
    • float
    • bool
  • 15
    What is programming?
    • The process of designing, writing, testing, and maintaining code
    • The process of automating repetitive tasks using scripting
    • The art of creating visual effects for movies
    • The practice of writing code to control hardware devices