Quiz-4: Function & Array

Quiz
•
Other
•
University
•
Medium
Vikash Sawan
Used 1+ times
FREE Resource
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
Similar Resources on Wayground
10 questions
Internet of Things (IoT) with XDK110 Sensors

Quiz
•
University
20 questions
Soal Dasar Pemrograman Dan Algoritma

Quiz
•
10th Grade - University
10 questions
Soal Algoritma dan pemrograman

Quiz
•
University
20 questions
Konsep dasar Struktur Data

Quiz
•
University
18 questions
Perception Theories Quiz

Quiz
•
9th Grade - University
20 questions
Web Technology

Quiz
•
University
15 questions
Exploring C: Strings, Arrays, Functions

Quiz
•
University
10 questions
แบบทดสอบ เรื่องการใช้แหล่งข้อมูลห้องสมุด เพื่อการวิจัยด้านวิศวกร

Quiz
•
University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Other
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University