
Tut06: JS hof
Authored by SNET Teaching
Computers
University
Used 6+ 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 SELECT QUESTION
45 sec • 1 pt
CSS: Was ist wahr?
Gegeben die Struktur <div id="parent">
<img scr="..." >
<p> lorem ....</p>
....
</div>
Parent ist immer mindestens so groß wie sein größtes Kind
float: left bei Img würde das Bild nach links verschieben und den Text drumwickeln
float: left bei Img führt dazu dass das parent eventuell kollabiert (wird kleiner als seine Kinder)
Erst CSS clear für ein Element, das im HTML-Code auf einen float-Block folgt, zwingt das Element unter den floatenden Block
2.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
Welche Option stellt eine Standard clearfix Lösung für kollabierende Elternelemente von float-Elementen dar?
#last-child-of-container:after{
content: "";
clear: both;
display: block;
}
#container:after{
content: "";
clear: both;
display: block;
}
#container { display: flow-root; }
#container { overflow: auto; }
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Gegeben ein array mit objekten der folgenden Attributen
name, age, job, numberOfPets
Wie kann ich die Anzahl aller Pets bei Ärzten berechnen?
array.filter(a=>a.job=="arzt").map(a=> numberOfPets)
array.filter(a=>a.job=="arzt").reduce(a=> numberOfPets)
array.filter(a=>a.job=="arzt").reduce ((a,b)=> a.numberOfPets + b.numberOfPets)
array.filter(a=>a.job=="arzt").reduce ((acc,b)=> acc + b.numberOfPets, 0)
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Wie kann man folgende pipeline kürzen, sodass das Ergebniss gleich bleibt?
array.filter(a=>a.job=="vet").size > 0
array.every(a=> a.job=="vet")
array.some(a=> a.job=="vet")
array.find(a=> a.job=="vet")
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Unterschied zwischen forEach and map Funktionen
keine Unterschiede
map hat keinen RückgabeWert, forEach schon
forEach hat keinen RückgabeWert, map schon
forEach hat 2 Input Parameter, wie reduce
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
10 questions
Introduction to NumPy (easy)
Quiz
•
University
10 questions
cp06-01-1D-Array
Quiz
•
University
10 questions
Overview of Java Web Development
Quiz
•
University
10 questions
Python Quiz Techno India
Quiz
•
University
10 questions
DS Quiz1
Quiz
•
University
10 questions
AP2 PROCESSING
Quiz
•
University
10 questions
CSS (Text-Font-Box)
Quiz
•
1st Grade - University
10 questions
Computer Programming (Theory)
Quiz
•
University
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