PYnative

Python Programming

  • Learn Python
  • Exercises
  • Quizzes
  • Code Editor
  • Tricks
Home » Python » Quizzes » Python Tuple Quiz

Python Tuple Quiz

Updated on: August 24, 2022 | 11 Comments

This Python tuple quiz provides Multiple Choice Questions(MCQ) to get familiar with Python tuple type and its operations. This online quiz will help you to improve your understanding of Python tuple.

Also, See: Solve Python Tuple Exercise with Solutions.

  • The quiz contains 12 Questions. Solve 8 correct to pass the test.
  • You will have to read all the given answers and click over the correct answer.
  • Read Tuples in Python to solve this quiz.

1. What is the output of the following code

aTuple = (100, 200, 300, 400, 500)
aTuple[1] = 800
print(aTuple)
 
 
 

2. What is the type of the following variable

aTuple = ("Orange")
print(type(aTuple))
 
 
 
 

3. Select which is true for Python tuple

 
 
 
 

4. What is the output of the following

tuple1 = (1120, 'a')
print(max(tuple1))
 
 
 

5. Select true statements regarding the Python tuple

 
 
 
 

6. What is the output of the following tuple operation

aTuple = (100,)
print(aTuple * 2)
 
 
 

7. What is the output of the following

aTuple = (10, 20, 30, 40, 50, 60, 70, 80)
print(aTuple[2:5], aTuple[:4], aTuple[3:])
 
 

8. What is the output of the following

aTuple = "Yellow", 20, "Red"
a, b, c = aTuple
print(a)
 
 
 

9. What is the output of the following tuple operation

aTuple = (100, 200, 300, 400, 500)
aTuple.pop(2)
print(aTuple)
 
 
 

10. Choose the correct way to access value 20 from the following tuple

aTuple = ("Orange", [10, 20, 30], (5, 15, 25))
 
 
 
 

11. A Python tuple can also be created without using parentheses

 
 

12. What is the output of the following code

aTuple = (100, 200, 300, 400, 500)
print(aTuple[-2])
print(aTuple[-4:-1])
 
 

Loading ... Loading …

Loading

Filed Under: Python, Python Basics, Python Quizzes

Did you find this page helpful? Let others know about it. Sharing helps me continue to create free Python resources.

TweetF  sharein  shareP  Pin

About Vishal

Founder of PYnative.com I am a Python developer and I love to write articles to help developers. Follow me on Twitter. All the best for your future Python endeavors!

Related Tutorial Topics:

Python Python Basics Python Quizzes

Python Exercises and Quizzes

Free coding exercises and quizzes cover Python basics, data structure, data analytics, and more.

  • 15+ Topic-specific Exercises and Quizzes
  • Each Exercise contains 10 questions
  • Each Quiz contains 12-15 MCQ
Exercises
Quizzes

Comments

  1. NUNE VENKATA HARIKA says

    February 21, 2023 at 3:21 pm

    Your quizzes are really boosting me and helping me know the unknown concepts.Thanks you so much

    Reply
  2. cherub says

    February 11, 2023 at 11:31 pm

    your quiz are great for practice. Thanks.

    Reply
    • Vishal says

      March 2, 2023 at 1:50 pm

      I am glad it helped you

      Reply
    • Vishal says

      March 2, 2023 at 1:52 pm

      You’re Welcome.

      Reply
  3. Tonya says

    August 30, 2022 at 10:08 am

    Submit button just doesn’t work for me. I’ve refreshed and tried twice.

    Reply
    • Vishal says

      August 30, 2022 at 4:39 pm

      Hi Tonya, Can you please clear the cache once and let me know? Still, if the problem persists, please let me know your browser name and device.

      Reply
  4. Kavin says

    March 11, 2021 at 6:45 pm

    All the topics were really useful to me…

    Reply
  5. RG says

    October 8, 2020 at 5:10 pm

    very helpfull indeed

    Reply
  6. Anna says

    April 17, 2020 at 11:10 pm

    On this page, error “WATU_CAPTCHA:::No answer to the verification question.” appears after clicking Submit button.

    Reply
    • Vishal says

      April 18, 2020 at 12:42 am

      Thank you Anna for letting me know. I have fixed the issue can you please check

      Reply
      • Anna says

        April 18, 2020 at 4:03 am

        The error is fixed. Thanks!

        Reply

Leave a Reply Cancel reply

your email address will NOT be published. all comments are moderated according to our comment policy.

Use <pre> tag for posting code. E.g. <pre> Your entire code </pre>

Posted In

Python Python Basics Python Quizzes
TweetF  sharein  shareP  Pin

  Python Quizzes

  • Python Quizzes Home
  • Basic Quiz For Beginners
  • Variables and Data Types Quiz
  • Operators and Expression Quiz
  • Input and Output Quiz
  • Functions Quiz
  • if else and loops Quiz
  • Numbers Quiz
  • String Quiz
  • List Quiz
  • Set Quiz
  • Dictionary Quiz
  • Tuple Quiz
  • File Handling Quiz
  • Random Data Generation Quiz

All Python Topics

Python Basics Python Exercises Python Quizzes Python File Handling Python OOP Python Date and Time Python Random Python Regex Python Pandas Python Databases Python MySQL Python PostgreSQL Python SQLite Python JSON

About PYnative

PYnative.com is for Python lovers. Here, You can get Tutorials, Exercises, and Quizzes to practice and improve your Python skills.

Explore Python

  • Learn Python
  • Python Basics
  • Python Databases
  • Python Exercises
  • Python Quizzes
  • Online Python Code Editor
  • Python Tricks

Follow Us

To get New Python Tutorials, Exercises, and Quizzes

  • Twitter
  • Facebook
  • Sitemap

Legal Stuff

  • About Us
  • Contact Us

We use cookies to improve your experience. While using PYnative, you agree to have read and accepted our Terms Of Use, Cookie Policy, and Privacy Policy.

Copyright © 2018–2023 pynative.com