
Δομή Επιλογής στην Python
Authored by Christos Georgiou
Information Technology (IT)
12th Grade
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
5 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Αληθές ή Ψευδές (Βάλτε Α ή Ψ) Η δομή if χρησιμοποιείται για να εκτελέσει έναν κώδικα μόνο αν μια συνθήκη είναι αληθής.
Αληθές
Ψευδές
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Συμπληρώστε τα κενά (Χρησιμοποιήστε τις λέξεις: if, elif, else)
x = int(input("Δώστε έναν αριθμό: "))
______ x > 0:
print("Θετικός αριθμός")
______ x < 0:
print("Αρνητικός αριθμός")
______:
print("Ο αριθμός είναι μηδέν")
if
else
elif
else
if
elif
if
else
if
elif
else
3.
OPEN ENDED QUESTION
3 mins • 1 pt
Γράψτε την έξοδο του παρακάτω κώδικα python
a = 5
b = 10
if a > b:
print("a είναι μεγαλύτερο")
else:
print("b είναι μεγαλύτερο ή ίσο")
Απάντηση: ______________________
Evaluate responses using AI:
OFF
4.
OPEN ENDED QUESTION
3 mins • 1 pt
Διορθώστε το σφάλμα στον παρακάτω κώδικα python:
if x = 10:
print "Ο αριθμός είναι 10"
else:
print "Ο αριθμός δεν είναι 10")
Διορθωμένος κώδικας python:
__________________
_________________
___________________________________
___________________________________
Evaluate responses using AI:
OFF
5.
OPEN ENDED QUESTION
3 mins • 1 pt
Σύντομη Ανοιχτή Ερώτηση:
Δώστε ένα πραγματικό παράδειγμα όπου θα μπορούσαμε να χρησιμοποιήσουμε τη δομή επιλογής σε ένα πρόγραμμα.
Απάντηση: ____________________________________________________________________
Evaluate responses using AI:
OFF
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?