Αληθές ή Ψευδές (Βάλτε Α ή Ψ) Η δομή if χρησιμοποιείται για να εκτελέσει έναν κώδικα μόνο αν μια συνθήκη είναι αληθής.

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

Quiz
•
Information Technology (IT)
•
12th Grade
•
Hard
Christos Georgiou
Used 1+ times
FREE Resource
5 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Αληθές
Ψευδές
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
Similar Resources on Quizizz
10 questions
Δομή Επιλογής

Quiz
•
12th Grade
7 questions
Κύκλος Ανάπτυξης Εφαρμογής

Quiz
•
9th - 12th Grade
10 questions
高二資訊課補考題目

Quiz
•
11th Grade - University
10 questions
Quizzi bài 29 Tin học 10

Quiz
•
10th Grade - University
6 questions
Λειτουργία Διαδικτύου

Quiz
•
9th - 12th Grade
10 questions
Menuliskan Rancangan Pseudocode

Quiz
•
12th Grade
10 questions
PDS - 3DS - entrada do usuário com Python

Quiz
•
12th Grade
9 questions
G12- Python Strings Quiz

Quiz
•
12th Grade - University
Popular Resources on Quizizz
10 questions
Chains by Laurie Halse Anderson Chapters 1-3 Quiz

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
15 questions
Character Analysis

Quiz
•
4th Grade
12 questions
Multiplying Fractions

Quiz
•
6th Grade
30 questions
Biology Regents Review #1

Quiz
•
9th Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
50 questions
Biology Regents Review: Structure & Function

Quiz
•
9th - 12th Grade
Discover more resources for Information Technology (IT)
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
50 questions
Biology Regents Review: Structure & Function

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
14 questions
Attributes of Linear Functions

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University
50 questions
Biology Regents Review 2: Ecology

Quiz
•
9th - 12th Grade
20 questions
Investing

Quiz
•
9th - 12th Grade