
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}
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
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
63 questions
ACT - 2G CHAPTER 1 - LESSON 2 & 3 - QUIZ
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
