
Test z tworzenia funkcji w JavaScript
Authored by Agnieszka Łypka
Other
8th Grade
Used 4+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Co to jest funkcja w JavaScript?
Funkcja w JavaScript to blok kodu, który może być wielokrotnie wywoływany, może przyjmować argumenty i zwracać wartość.
Funkcja w JavaScript to obiekt graficzny
Funkcja w JavaScript to pętla nieskończona
Funkcja w JavaScript to zmienna globalna
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Jak można zdefiniować funkcję w JavaScript?
functionName(parameters) { // logic here }
functionName(parameters) { // code here }
functionName(parameters) { // function body }
function functionName(parameters) { // function body }
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Jakie są zalety korzystania z funkcji w JavaScript?
Debugowanie jest utrudnione przy użyciu funkcji w JavaScript
Zalety korzystania z funkcji w JavaScript to modularyzacja kodu, zwiększona czytelność, ułatwione debugowanie oraz możliwość wielokrotnego wykorzystania.
Korzystanie z funkcji w JavaScript nie wpływa na czytelność kodu
Zalety funkcji w JavaScript to zwiększona złożoność kodu
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Co to jest parametr funkcji?
Wynik zwracany przez funkcję
Nazwa funkcji
Zmienna przekazywana do funkcji jako argument
Typ danych przekazywany do funkcji
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Jak przekazywać argumenty do funkcji w JavaScript?
functionName(argument1, argument2)
functionName(argument1, argument2, ...)
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Co to jest zasięg zmiennych w funkcji?
Zasięg zmiennych w funkcji określa ilość argumentów przekazywanych do funkcji.
Zasięg zmiennych w funkcji określa, że zmienne mogą być używane tylko raz.
Zasięg zmiennych w funkcji określa obszar, w którym dana zmienna jest dostępna i może być używana.
Zasięg zmiennych w funkcji oznacza, że zmienne są dostępne tylko wewnątrz funkcji.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Jakie są różnice między function declaration a function expression?
Function declaration is hoisted, function expression is not.
Function declaration is used for asynchronous functions, function expression is not.
Function declaration is an arrow function, function expression is not.
Function declaration is not valid in JavaScript, function expression is.
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
Sumatif Harian Warta
Quiz
•
8th Grade - University
10 questions
Malta
Quiz
•
1st - 12th Grade
13 questions
Ekipa Friza
Quiz
•
KG - Professional Dev...
10 questions
Fortnite rozdział 2 sezon 2
Quiz
•
1st Grade - Professio...
14 questions
mikołajki
Quiz
•
1st - 12th Grade
16 questions
Minecraft 1.17 Quiz
Quiz
•
6th Grade - Professio...
11 questions
Powstanie Warszawskie
Quiz
•
KG - Professional Dev...
18 questions
Jan Kochanowski - życie i twórczość.
Quiz
•
8th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
10 questions
Probability Practice
Quiz
•
4th Grade
15 questions
Probability on Number LIne
Quiz
•
4th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
6 questions
Appropriate Chromebook Usage
Lesson
•
7th Grade
10 questions
Greek Bases tele and phon
Quiz
•
6th - 8th Grade
Discover more resources for Other
10 questions
Greek Bases tele and phon
Quiz
•
6th - 8th Grade
15 questions
Making Inferences
Quiz
•
7th - 12th Grade
15 questions
Graphing Inequalities
Quiz
•
7th - 9th Grade
10 questions
Cell Organelles and Their Functions
Interactive video
•
6th - 10th Grade
20 questions
Graphing Inequalities on a Number Line
Quiz
•
6th - 9th Grade
10 questions
SOL REVIEW 4: Organizational Patterns
Quiz
•
6th - 8th Grade
12 questions
Final Figurative Language Review
Lesson
•
6th - 8th Grade
8 questions
8th U5L20 Volume of Sphere
Quiz
•
8th Grade