What will the following code output?

Python Programming Quiz

Quiz
•
Information Technology (IT)
•
University
•
Hard
Phạm DN)
Used 1+ times
FREE Resource
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Pythonawesome is fun
Python is awesome
Pythonawesome is fun
Python is awesome
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following functions opens a file for reading and writing without truncating the file?
open('file.txt', 'w')
open('file.txt', 'r+')
open('file.txt', 'a')
open('file.txt', 'wb')
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will the following code print?
1 3
2 4
1 2
3 4
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the result of the following code?
10
15
20
5
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code?
{'a': 1, 'b': 2, 'c': 3}
{'b': 2, 'c': 3}
{'a': 1, 'c': 3}
{'a': 1, 'b': 2}
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the result of this code?
HellO WOrld
Hello World
HellO WOrld
HellO WOrlD
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will the following code output?
60
30
10
50
Create a free account and access millions of resources
Similar Resources on Quizizz
20 questions
2F-3 | Python Quiz | 22/11/2024

Quiz
•
University
20 questions
Pretest 5 - PBW 2B - PHP

Quiz
•
University
20 questions
Java MCQs on Syntax and Semantics

Quiz
•
University
25 questions
Week 3-4

Quiz
•
University
25 questions
LATIHAN SOAL INFORMATIKA KLS 7

Quiz
•
7th Grade - University
20 questions
DSA (QUIZ 6) Hashing, Graphs, Advanced Graph Algorithms, and DP

Quiz
•
University
20 questions
YEAR 7 MID-TERM ASSESSMENT

Quiz
•
7th Grade - University
25 questions
Pyhton Debugging Questions

Quiz
•
University
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade