
function and array &conditionalstatements

Quiz
•
Computers
•
12th Grade
•
Medium

sheela xavier
Used 7+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
1. Which one of the following is the right way of defining a function in PHP?
function { function body }
data type functionName(parameters) { function body }
functionName(parameters) { function body }
function functionName(parameters) { function body }
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A function in PHP starts with __.
function
__ def
def
__ function
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
PHP’s indexed array begins with position ___________
1
2
0
-1
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Identify the parameter in the function.
< ?php function abc ($x) {$y=10;} abc (5); ?>
$x
$y
10
5
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
______ stores more than one value of same data type in single array variable.
Array
Function
Indexed array
Multidimensional array
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Associative arrays are a ____ pair data structure.
single value
key value
double value
string value
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In parameterized, the parameters are like___
variables
constants
string
Null value
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
JavaScript Knowledge & Skills

Quiz
•
9th - 12th Grade
22 questions
CodeHS AP CSP Unit 3 Review

Quiz
•
11th - 12th Grade
15 questions
AP CSP Unit 4

Quiz
•
10th - 12th Grade
15 questions
Python Basics

Quiz
•
KG - University
16 questions
Python Basics

Quiz
•
KG - University
21 questions
Unit 4 Review (AP CSP)

Quiz
•
9th - 12th Grade
20 questions
PTS PWPB

Quiz
•
12th Grade
20 questions
QUIZ 1 ABRAHAM SEM-II SMA KRISTEN BASIC BATAM

Quiz
•
12th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

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

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade