Quiz-4: Function & Array
Quiz
•
Other
•
University
•
Medium
Vikash Sawan
Used 1+ times
FREE Resource
Enhance your content in a minute
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following is the correct way to declare an array in PHP?
array()
array[]
array{}
array<>
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the output of the following code? $fruits = array('apple', 'banana', 'orange'); echo $fruits[1];
orange
banana
apple
grape
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the output of the following code? $numbers = array(1, 2, 3, 4, 5); echo count($numbers);
3
2
5
1
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which function is used to remove the last element from an array in PHP?
array_push()
array_shift()
array_slice()
array_pop()
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which function is used to sort an array in ascending order in PHP?
sort
ksort
asort
rsort
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
How to define a function in PHP?
function {function body}
data type functionName(parameters) {function body}
functionName(parameters) {function body}
function functionName(parameters) {function body}
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Total looping techniques supported by PHP are?
1
2
3
4
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
19 questions
Interprocess communication
Quiz
•
University
19 questions
Les endroits dans la ville
Quiz
•
7th Grade - University
15 questions
UTAR Industrial Session
Quiz
•
University - Professi...
15 questions
cookies
Quiz
•
University
15 questions
Labor Relations and Negotations 1
Quiz
•
University - Professi...
12 questions
HOW TO GIVE DIRECTIONS
Quiz
•
10th Grade - Professi...
20 questions
Sals of Goods Act 1930
Quiz
•
University
20 questions
Quiz Test POL218
Quiz
•
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 Other
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
