
Python (Verzweigung, Schleifen)
Quiz
•
Computers
•
Professional Development
•
Hard
jana rollwagen
Used 2+ times
FREE Resource
Enhance your content in a minute
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])
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?
Similar Resources on Wayground
15 questions
Initiation à Wordpress : Premiers pas
Quiz
•
Professional Development
10 questions
Quiz Speichermedien
Quiz
•
Professional Development
10 questions
Dimensionen der IT-Services
Quiz
•
Professional Development
17 questions
M129 Part 2
Quiz
•
Professional Development
13 questions
Schreibregeln - Quiz - N1
Quiz
•
Professional Development
11 questions
M241-245 Innovationen Tag 2
Quiz
•
Professional Development
14 questions
Wiederholung IBN 2
Quiz
•
Professional Development
10 questions
03 Git & Terminal
Quiz
•
Professional Development
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
Discover more resources for Computers
20 questions
Black History Month Trivia Game #1
Quiz
•
Professional Development
100 questions
Screening Test Customer Service
Quiz
•
Professional Development
20 questions
90s Cartoons
Quiz
•
Professional Development
10 questions
Reading a ruler in Inches
Quiz
•
4th Grade - Professio...
16 questions
Parallel, Perpendicular, and Intersecting Lines
Quiz
•
KG - Professional Dev...
12 questions
Valentines Day Trivia
Quiz
•
Professional Development
