
Tut 04 : CSS, JS functions
Quiz
•
Computers
•
University
•
Hard
SNET Teaching
Used 5+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
Welche Option setzt Wert von b standardmäßig auf 1, wenn kein anderer Wert für b angegeben ist?
b = b || 1
function multiply( a, b=1 )
b = (typeof b !== 'undefined') ? b : 1 ;
function multiply( a, b => 1 )
Answer explanation
b=b||b
The logical OR (||) (logical disjunction) operator for a set of operands is true if and only if one or more of its operands is true. It is typically used with boolean (logical) values. When it is, it returns a Boolean value. However, the || operator actually returns the value of one of the specified operands , so if this operator is used with non-Boolean values, it will return a non-Boolean value.
b = (typeof b !== 'undefined') ? b : 1 ;
equal to if typeof b not undefined then return b else return 1
function multiply( a, b=1 )
default value for b in a function if no second argument passed
2.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
Welche Option erstellt eine gültige Funktion myFunc?
var myFunc = function() { }
function myFunc() { }
function : myFunc() { }
var myFunc = () => {};
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Man kann eine Funktion auf zwei Arten deklarieren: als eine Funktionsanweisung und als ein Funktionsausdruck. Auf welche Art ist die folgende Funktion deklariert?
function doSomething (n) {console.log(n)}
Funktionsanweisung
Funktionsausdruck
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
was wird ausgegeben?
In beiden Fällen wird das Ergebnis 25 ausgegeben.
Im Fall 1 wird das Ergebnis 25 ausgegeben, während im Fall 2 tritt Error auf.
Im Fall 2 wird das Ergebnis 25 ausgegeben, während im Fall 1 tritt Error auf.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Hoisting (Heben) : der Interpreter verschiebt intern alle Funktionsdeklarationen vor der Ausführung eines Scopes an seinen Beginn. Hoisting funktioniert nicht für Funktionsausdrücke.
wahr
falsch
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Let und const haben einen Function-scope, während var hat einen Block-scope.
ja
nein
Answer explanation
var: global scope
let: block scope
alle Variablen Typen: function scope
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In dem Box-Model gibt es padding und margin. Was von den beiden bestimmt den Innenabstand?
margin
padding
kein davon, man arbeitet mit Attributen top, left etc.
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
15 questions
Grundlagen Computer
Quiz
•
6th Grade - University
12 questions
Swift Fundamentals
Quiz
•
University
6 questions
Lab S5
Quiz
•
University
10 questions
Listen in Python
Quiz
•
University
6 questions
BPMN: Gateways
Quiz
•
University - Professi...
10 questions
TIU Quiz-14
Quiz
•
University
12 questions
Machine Learning
Quiz
•
University
14 questions
JavaScrip - DSI
Quiz
•
1st Grade - University
Popular Resources on Wayground
20 questions
Halloween Trivia
Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Order of Operations
Quiz
•
5th Grade
20 questions
Halloween
Quiz
•
5th Grade
16 questions
Halloween
Quiz
•
3rd Grade
12 questions
It's The Great Pumpkin Charlie Brown
Quiz
•
1st - 5th Grade
20 questions
Possessive Nouns
Quiz
•
5th Grade
10 questions
Halloween Traditions and Origins
Interactive video
•
5th - 10th Grade
Discover more resources for Computers
10 questions
Halloween Movies Trivia
Quiz
•
5th Grade - University
12 questions
Halloween
Quiz
•
3rd Grade - University
5 questions
Using Context Clues
Interactive video
•
4th Grade - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
14 questions
Eat Healthy,Be Healty
Quiz
•
4th Grade - University
7 questions
History of Halloween: Pagan or Christian?
Interactive video
•
11th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
