
PHP Arrays Quiz
Quiz
•
Computers
•
University
•
Practice Problem
•
Hard
Daniel Bajulaiye
Used 1+ times
FREE Resource
Enhance your content in a minute
59 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What do arrays in PHP combine the characteristics of?
Lists and objects
Regular arrays and hashes
Strings and integers
Functions and variables
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can elements in a PHP array be indexed?
By functions only
Numerically only
By strings only
Both numerically and by strings
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Are elements in a PHP array maintained in any particular order?
Yes, always in ascending order
Yes, always in descending order
No, they are not maintained in any particular order
Only when indexed by strings
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Conceptually, what are the elements of an array in PHP?
Key/value pairs
Value/value pairs
Key/key pairs
Index/index pairs
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a way to create an array in PHP?
By using the 'list' function
By assigning a value to an element of an array
By declaring a variable without initializing it
By using the 'object' keyword
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What PHP function is used to create an array as shown in the learning material?
create()
new_array()
array()
collect()
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How is a numerically indexed array created in PHP as per the example in the learning material?
$mixed = array('23', 'xiv', 'bob', '777')
$mixed = array(23, 'xiv', 'bob', 777)
$mixed = [23, 'xiv', 'bob', 777]
$mixed = {23, 'xiv', 'bob', 777}
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
Already have an account?
Similar Resources on Wayground
63 questions
ACT - 2G CHAPTER 1 - LESSON 2 & 3 - QUIZ
Quiz
•
University
55 questions
UJI KOMPETENSI KELAS XI TKJ
Quiz
•
11th Grade - University
56 questions
ICT_Full_Base_2
Quiz
•
University
60 questions
Doors
Quiz
•
1st Grade - Professio...
62 questions
ÔN TẬP Giữa Kỳ Môn Tin Học 8
Quiz
•
7th Grade - University
60 questions
HARDWARE MAINTENANCE TROUBLESHOOTING QUIZ
Quiz
•
University
62 questions
Building and Securing a Small Network
Quiz
•
University
60 questions
Quiz 2 Latihan Soal UAS Manajemen Keamanan Sistem Informasi
Quiz
•
1st Grade - University
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...
20 questions
christmas songs
Quiz
•
KG - University
20 questions
Holiday Trivia
Quiz
•
9th Grade - University
15 questions
Holiday Movies
Quiz
•
University
14 questions
Christmas Trivia
Quiz
•
3rd Grade - University
20 questions
Christmas Trivia
Quiz
•
University
8 questions
5th, Unit 4, Lesson 8
Lesson
•
KG - Professional Dev...
20 questions
Disney Trivia
Quiz
•
University
