Co to jest 'switch' w kontekście programowania?

Zrozumienie instrukcji 'switch' w programowaniu

Interactive Video
•
Computers, Instructional Technology
•
1st - 3rd Grade
•
Hard

Ethan Morris
FREE Resource
Read more
5 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Rodzaj pętli
Instrukcja warunkowa
Typ danych
Funkcja matematyczna
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Które z poniższych jest przykładem użycia 'switch'?
while (x < 10) { }
for (int i = 0; i < 10; i++) { }
if (x > 1) { }
switch (x) { case 1: break; }
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Jakie są zalety używania 'switch' zamiast 'if-else'?
Nie ma żadnych zalet
Jest szybszy w każdej sytuacji
Zajmuje mniej pamięci
Jest bardziej czytelny dla wielu warunków
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Które z poniższych stwierdzeń jest prawdziwe o 'switch'?
Może być używany z dowolnym typem danych
Może być używany tylko z typami liczbowymi
Może być używany z typami znakowymi i liczbowymi
Może być używany tylko z typami znakowymi
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Jakie są potencjalne pułapki przy używaniu 'switch'?
Brak domyślnego przypadku
Zbyt długie przypadki
Zbyt wiele przypadków
Zbyt mało przypadków
Similar Resources on Wayground
2 questions
Queen Elizabeth II and Prince Philip Visit Commonwealth Games Sites

Interactive video
•
1st - 2nd Grade
6 questions
Protesters storm Muslim Brotherhood headquarters; interiors

Interactive video
•
1st - 2nd Grade
2 questions
UK: SureScreen Diagnostics Ltd Factory in Derby making COVID-19 Antigen Rapid Test Cassette self-tests.

Interactive video
•
1st - 2nd Grade
2 questions
Nick Lachey and Azaliah Farkas at Nick Lachey Photo Shoot for Toys 'R' Us Toy Guide for Differently-abled Kids

Interactive video
•
1st - 3rd Grade
2 questions
CLEAN : Russia closing borders to foreigners and limiting flights to fight spread of virus

Interactive video
•
1st - 2nd Grade
6 questions
CLEAN : Russian special forces arrest protesters on Moscow outskirts

Interactive video
•
1st - 3rd Grade
2 questions
Search for migrants in freezing Channel after four confirmed dead

Interactive video
•
1st - 2nd Grade
2 questions
Aerials of Liverpool Docks and ships

Interactive video
•
1st - 2nd Grade
Popular Resources on Wayground
25 questions
Equations of Circles

Quiz
•
10th - 11th Grade
30 questions
Week 5 Memory Builder 1 (Multiplication and Division Facts)

Quiz
•
9th Grade
33 questions
Unit 3 Summative - Summer School: Immune System

Quiz
•
10th Grade
10 questions
Writing and Identifying Ratios Practice

Quiz
•
5th - 6th Grade
36 questions
Prime and Composite Numbers

Quiz
•
5th Grade
14 questions
Exterior and Interior angles of Polygons

Quiz
•
8th Grade
37 questions
Camp Re-cap Week 1 (no regression)

Quiz
•
9th - 12th Grade
46 questions
Biology Semester 1 Review

Quiz
•
10th Grade