
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
12 questions
skuteczna komunikacja
Quiz
•
7th - 9th Grade
11 questions
Parent Functions & their Key Features
Quiz
•
8th - 12th Grade
10 questions
Znaki drogowe
Quiz
•
7th Grade - University
20 questions
Quo vadis
Quiz
•
KG - University
17 questions
Media Review!!
Quiz
•
KG - University
16 questions
PF 6.02, 6.03, 6.04
Quiz
•
KG - University
10 questions
Stary człowiek i morze
Quiz
•
1st - 8th Grade
10 questions
Zobacz, jak dobrze znasz świat anime!
Quiz
•
1st - 10th Grade
Popular Resources on Wayground
8 questions
Spartan Way - Classroom Responsible
Quiz
•
9th - 12th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
14 questions
Boundaries & Healthy Relationships
Lesson
•
6th - 8th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
3 questions
Integrity and Your Health
Lesson
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
9 questions
FOREST Perception
Lesson
•
KG
20 questions
Main Idea and Details
Quiz
•
5th Grade
Discover more resources for Other
14 questions
Boundaries & Healthy Relationships
Lesson
•
6th - 8th Grade
3 questions
Integrity and Your Health
Lesson
•
6th - 8th Grade
7 questions
SMS Playground Expectations Quiz
Quiz
•
6th - 8th Grade
16 questions
Mario Trivia Challenge
Quiz
•
6th - 8th Grade
14 questions
SMS Car & Bus Expectations Quiz
Quiz
•
6th - 8th Grade
20 questions
Scatter Plots and Line of Best Fit
Quiz
•
8th Grade
12 questions
8th U6 L4 - Fitting a Line to Data
Quiz
•
8th Grade
22 questions
Phases of the moon
Quiz
•
8th Grade