Python Programming Quiz
3 Questions
0 Views

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to lesson

Podcast

Play an AI-generated podcast conversation about this lesson

Questions and Answers

Which of the following is NOT a built-in data type in Python?

  • str
  • list
  • tuple
  • int
  • array (correct)
  • What is the output of the following code snippet?

    a = [1, 2, 3] print(a[3:])

  • [1, 2]
  • None
  • [] (correct)
  • IndexError
  • What is the difference between 'range' and 'xrange' in Python 2?

  • There is no difference
  • 'range' is used for strings
  • 'xrange' is used for floating point numbers
  • 'range' returns a list and 'xrange' returns an iterator (correct)
  • More Like This

    Python Programming Quiz
    3 questions
    Python Programming Quiz
    10 questions

    Python Programming Quiz

    WellBredLapisLazuli avatar
    WellBredLapisLazuli
    Python Programming Quiz
    10 questions
    Use Quizgecko on...
    Browser
    Browser