Δομή Επιλογής στην Python

Δομή Επιλογής στην Python

12th Grade

5 Qs

quiz-placeholder

Similar activities

Basics of Network and Internet Safety

Basics of Network and Internet Safety

10th Grade - University

10 Qs

Quiz | Distance meter code arduino

Quiz | Distance meter code arduino

12th Grade

10 Qs

Strategi Sandaran dan Urus Versi

Strategi Sandaran dan Urus Versi

2nd Grade - University

10 Qs

GMH **BrainSpark - 3**

GMH **BrainSpark - 3**

12th Grade

10 Qs

“Elektron pochtada ishlashni boshlash” (5-sinf))

“Elektron pochtada ishlashni boshlash” (5-sinf))

5th Grade - University

10 Qs

PDS - 3DS  - entrada do usuário com Python

PDS - 3DS - entrada do usuário com Python

12th Grade

10 Qs

Fun with AI

Fun with AI

2nd Grade - University

10 Qs

Pemahaman Konsep Koding

Pemahaman Konsep Koding

7th Grade - University

10 Qs

Δομή Επιλογής στην Python

Δομή Επιλογής στην Python

Assessment

Quiz

Information Technology (IT)

12th Grade

Practice Problem

Hard

Created by

Christos Georgiou

Used 2+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?