Which function is used to display text on the screen?, read(), print(), show(), output(), Which of these is used to take input from the user?, get(), input(), read(), scan(), What is the correct way to assign a value to a variable?, 5 = x, x == 5, x = 5, x + 5, Which of these is a string?, 12, 4.5, ”Hello”, True, What will this code print? print(3 + 4), 34, 7, 3+4, Error, What symbol is used for comments in Python?, //(slash), #(Hastag), %(percentage), ”(double cots), Which operator is used for multiplication?, /, +, *, —, What will this code output? name = Ria print(“Hi” + Ria), Hi, Ria, Hi Ria, Hi + Ria, Which of these is a list?, {1,2,3}, [1,2,3], (1,2,3), ”1,2,3”, What does an if statement do?, Repeats codes, Chooses based on a condition, Prints output, Joins string, Which code correctly defines a function?, define hello():, def hello():, func hello:, function hello():, What will this loop do? for i in range(3): print("Hi"), Print Hi once, Print Hi forever, Print Hi 3 times, Error, What type of data is True?, int, str, bool, float, Which dictionary is written correctly?, [“name”: “Asha”], {“name”: “Asha”}, (“name”: “Asha”), “name”: “Asha”, Why is indentation important in Python?, It makes code colorful, It decorates the text, It shows which code belongs to a block, It adds comments.
0%
Python Quiz
Share
Share
Share
by
Steventhest47
Edit Content
Print
Embed
More
Assignments
Leaderboard
Show more
Show less
This leaderboard is currently private. Click
Share
to make it public.
This leaderboard has been disabled by the resource owner.
This leaderboard is disabled as your options are different to the resource owner.
Revert Options
Quiz
is an open-ended template. It does not generate scores for a leaderboard.
Log in required
Visual style
Fonts
Subscription required
Options
Switch template
Show all
More formats will appear as you play the activity.
Open results
Copy link
QR code
Delete
Continue editing:
?