
Συναρτήσεις (Functions) στην PHP
Quiz
•
Computers
•
12th Grade
•
Practice Problem
•
Medium
Jo Tr
Used 3+ times
FREE Resource
Enhance your content in a minute
16 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Ποια είναι η σωστή σύνταξη για τη δημιουργία μιας συνάρτησης στην PHP;
def myFunction() {}
function myFunction() {}
create function myFunction() {}
function: myFunction() {}
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Ποια είναι η χρήση της εντολής return σε μια συνάρτηση;
Επιστρέφει το όνομα της συνάρτησης.
Διαγράφει τη συνάρτηση από τη μνήμη.
Επιστρέφει μια τιμή από τη συνάρτηση.
Τερματίζει την εκτέλεση της PHP.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Η εντολή return είναι υποχρεωτική σε κάθε συνάρτηση.
Σωστό
Λάθος
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Η συνάρτηση add($num1, $num2) μπορεί να επιστρέψει το άθροισμα των δύο αριθμών.
Σωστό
Λάθος
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Η συνάρτηση μπορεί να κληθεί ακόμα και αν δεν έχει ορίσματα.
Σωστό
Λάθος
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Ποια από τις παρακάτω επιλογές είναι παράδειγμα συνάρτησης χωρίς ορίσματα;
function add($num1, $num2)
{
}
function convert($euros)
{
return $euros * 0.83;
}
function welcome($name)
{
}
function hello()
{
echo "Hi";
}
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Μια συνάρτηση μπορεί να επιστρέψει πολλαπλές τιμές ταυτόχρονα.
Σωστό
Λάθος
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
14 questions
Το λογισμικό του υπολογιστη
Quiz
•
9th - 12th Grade
18 questions
Δομή Ακολουθίας - Ασκήσεις θεωρίας Σωστού/Λάθους
Quiz
•
12th Grade
13 questions
Αλγοριθμοι 3
Quiz
•
7th - 12th Grade
18 questions
Κουίζ για το Εσωτερικό του Υπολογιστή
Quiz
•
8th Grade - University
20 questions
Επανάληψη στη δομή ακολουθίας και επιλογής (Β' Λυκείου)
Quiz
•
11th Grade - University
12 questions
Στοίβα και ουρά ΓΕΛ
Quiz
•
12th Grade
15 questions
Ιστοσελίδες Κοινωνικής Δικτύωσης - Facebook
Quiz
•
12th Grade
12 questions
Υλικό Υπολογιστή - Κεφ.2
Quiz
•
10th - 12th Grade
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
Discover more resources for Computers
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
15 questions
Christmas Song Emoji Pictionary
Quiz
•
7th - 12th Grade
20 questions
Christmas Movies
Quiz
•
1st - 12th Grade
55 questions
CHS Holiday Trivia
Quiz
•
12th Grade
20 questions
Christmas Movie Trivia
Quiz
•
9th - 12th Grade
29 questions
christmas facts
Lesson
•
5th - 12th Grade
20 questions
Christmas Trivia
Quiz
•
5th - 12th Grade
20 questions
Stages of Meiosis
Quiz
•
9th - 12th Grade
