Python Day 1

A colorful and engaging illustration of a computer screen displaying Python code snippets with images of lists and dictionaries, in a friendly and educational style

Python Basics Quiz

Test your knowledge of Python fundamentals with our interactive quiz designed for beginners! Perfect for students, teachers, or anyone looking to refresh their coding skills.

In this quiz, you will encounter questions about:

  • Data structures such as lists and dictionaries
  • Common Python functions
  • Basic syntax and logic
11 Questions3 MinutesCreated by CodingStar540
Enter Your Name:
1. What is the proper syntax to use when creating a dictionary?
" "
{ }
( )
[ ]
2.What kind of data can be included in one list?
Strings only
Float only
Strings and floats
All kinds of data
3. What is the proper syntax to use when creating a list?
[ ]
" "
{ }
( )
4. Predict the correct output of the given instructions Fruits = [“apple”, “banana”, “mango”, “gauva”] Fruits.append(“orange”) Print(Fruits)
.[“orange”,”apple”, “banana”, “mango”, “gauva”]
.[ apple”, “orange”,“banana”, “mango”, “gauva”]
.[“ apple”, “banana”, “mango”, “gauva”, “orange”]
None
5. Dictionaries store information using….
Key & Value Pairs
Key & Index Pairs
Value & Index Pairs
Only Index
6. . Which of the following statements can be used to remove a key/value pair from a dictionary?
Del
Change
Alter
Edit
7. What kind of data does the Input() function return?
Strings
Int
Float
All
8. What does the list called players organize in the'Guess What's in your backpack' game?
It organizes all the items belonging to each player
It organizes score
It organizes player names
It organizes a backpack
9. What kind of item is inside the players list?
Any item that player wants
A string
A dictionary
None
10. What is a game loop?
A loop that keeps going forever
A loop that holds the logic of the game
A loop that keeps the game running
None
{"name":"Python Day 1", "url":"https://www.quiz-maker.com/QPREVIEW","txt":"Test your knowledge of Python fundamentals with our interactive quiz designed for beginners! Perfect for students, teachers, or anyone looking to refresh their coding skills.In this quiz, you will encounter questions about:Data structures such as lists and dictionariesCommon Python functionsBasic syntax and logic","img":"https:/images/course1.png"}
Powered by: Quiz Maker