
Python (Verzweigung, Schleifen)
Quiz
•
Computers
•
Professional Development
•
Hard

jana rollwagen
Used 2+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Gegeben ist:
a = 125
Wie lautet der Befehl, mit dem der Typ der Variable a von einem integer zu einem string verändert wird?
int(a)
str(int)
str(a)
type(a) = str
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
y = "Anna"
x,y,z = "Peter",23,1.25
Welcher Wert steckt nun in der Variable y?
"Anna"
"Peter"
23
Kein Wert
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Der Aufruf eines Programms liefert folgenden Output:
>>Bitte geben Sie eine Zahl ein:
Wie sieht die entsprechende Programmzeile hierzu aus?
print(">>Bitte geben Sie eine Zahl ein"
zahl = ">>Bitte geben Sie eine Zahl ein"
print(zahl)
input(zahl)
input(">>Bitte geben Sie eine Zahl ein:")
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Listen sind zusammengesetzte Datentypen, das bedeutet:
Sie sind immer durch eckige Klammern [ ] markiert.
In ihnen können Daten verschiedenen Typs gleichzeitig enthalten sein.
Über sie kann iteriert werden.
Sie können mit anderen Listen kombiniert werden.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Wie greifen Sie auf den String "haus" in der folgenden Liste zu?
liste = ["1", 23.4, "haus", "maus", 123]
liste [0]
liste [1]
liste [3]
liste [2]
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Gegeben ist folgende Liste:
liste = [1, 2, 3, 4]
Warum erzeugt der Listenzugriff "liste[4]"
einen Fehler?
Weil der Listenindex 4 nicht existiert.
Weil der Listenzugriff falsch geschrieben wurde.
Weil der Listenindex 0 mit dem Wert "1" belegt ist.
Weil an anderer Stelle im Programm ein Fehler steckt.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
liste = ["Apfel", "Banane", "Erdbeere"]
Wie sieht eine Schleife aus, die jedes Listenelement einzeln auf die Konsole ausdruckt?
for wort in liste:
print(wort)
for wort in liste:
print("Apfel")
for wort in liste:
print(liste[wort])
for wort in liste:
print(liste[0],liste[1],liste[2])
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
10 questions
03 Git & Terminal
Quiz
•
Professional Development
10 questions
Quiz Speichermedien
Quiz
•
Professional Development
14 questions
Quiz 28.01.22
Quiz
•
Professional Development
10 questions
ITIL FOU Block II Elias
Quiz
•
Professional Development
13 questions
Schreibregeln - Quiz - N1
Quiz
•
Professional Development
20 questions
PM Teil 3
Quiz
•
Professional Development
10 questions
Agile Leadership, Quiz 5
Quiz
•
Professional Development
10 questions
91-100 iso
Quiz
•
Professional Development
Popular Resources on Wayground
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
20 questions
ELA Advisory Review
Quiz
•
7th Grade
15 questions
Subtracting Integers
Quiz
•
7th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns
Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials
Interactive video
•
6th - 10th Grade