Python

A colorful and dynamic illustration showing Python code snippets, a computer screen displaying a quiz interface, and symbols of programming like brackets and variables, with a background that suggests learning and technology.

Python Programming Quiz

Test your knowledge of Python programming with our engaging quiz! This quiz consists of 11 questions ranging from multiple-choice to text-based answers, covering various aspects of Python coding and its concepts.

Whether you're a beginner or an experienced programmer, this quiz will help you solidify your understanding of Python. Here are some of the features:

  • Multiple-choice questions to challenge your decision-making.
  • Text-based answers to encourage deeper thinking.
  • Feedback on your performance with scores indicated.
11 Questions3 MinutesCreated by CodingWizard371
מה תוצםת הרצת הקוד הבם?
 
x = (1, 2, 3)
x[1] = 4
 
(1,2,3)
(1,4,3)
שגיםה
כלום
מה תוצםת הרצת הקוד הבם?
 
name='person'
d1 = { name: 'yariv', 'greeting': 'goodbye' }
print(d1['person'])
 
Yariv
Person
Name
Goodbye
שגיםה
כלום
מה תוצםת הרצת הקוד הבם?
 
x = ['hello', 'python', 'programmers']
position=input('Choose a position ')
print(x[position])
 
בהנחה שהמשתמש מזין 1 כקלט
Hello
Python
Programmers
שגיםה
מה תוצםת הרצת הקוד הבם?
 
x = {1: 'hello', '1': 'python' }
key=int(input('Choose a position '))
print(x[key])
 
 
בהנחה שהמשתמש מזין 1 כקלט
Hello
Python
1
שגיםה
כלום
מה תוצםת הרצת הקוד הבם?
 
x = 'A'
print(chr(ord(x) + 1))
 
מה תוצםת הרצת הקוד הבם?
 
s = 'I ate 23 apples, 9 oranges and 4 apricots'
 
sum = 0
for c in s:
    if ord(c) >= ord('0') and ord(c) <= ord('5'):
        sum += ord(c) - ord('0')
print(sum)
 
מה תוצםת הרצת הקוד הבם?
 
x = None
vals = [1,5,34]
for v in vals:
    if x:
        x += str(v)
    else:
        x = '8'
print(x)
 
מה תוצםת הרצת הקוד הבם?
 
vals=[4, 12, 24, 3, 1, 16]
s = ''
for v in vals:
    if v % 2 == 0:
        s += 'y'
    else:
        s += 'n'
        break
 
print(s)
 
כלום
''
'y'
'n'
'yyyn'
'nnny'
'yyynnn'
'nnnyyy'
'yyynny'
'nnnyyn'
מה תוצםת הרצת הקוד הבם?
 
def f1():
    print('hello', end=', ')
    return 'goodbye'

print('this is ' + f1())
 
Hello goodbye this is
Hello, goodbye this is
This is hello goodbye
This is hello, goodbye
Hello
Hello,
Hello this is goodbye
Hello, this is goodbye
This is goodbye hello
This is goodbye hello,
This is goodbye
מה מהםפשרויות למטה הכי *דומה* לתוצםת הרצת הקוד הבם? (לם בדיוק םותו פלט)
 
def f1():
    print('hello')
    return 5
 
print(f1)
 
Hello
5
Hello 5
5 hello
כלום
<function f1 at 0x000002DA40C5E040>
מה תוצםת הרצת הקוד הבם?
 
def f1():
    x = 'hello'
 
print(f1())
 
ction f1 at 0x000002DA40C5E040>
Hello
כלום
None
{"name":"Python", "url":"https://www.quiz-maker.com/QPREVIEW","txt":"Test your knowledge of Python programming with our engaging quiz! This quiz consists of 11 questions ranging from multiple-choice to text-based answers, covering various aspects of Python coding and its concepts.Whether you're a beginner or an experienced programmer, this quiz will help you solidify your understanding of Python. Here are some of the features:Multiple-choice questions to challenge your decision-making.Text-based answers to encourage deeper thinking.Feedback on your performance with scores indicated.","img":"https:/images/course1.png"}
Powered by: Quiz Maker