
PHP Functions Quiz
Quiz
•
Information Technology (IT)
•
Professional Development
•
Practice Problem
•
Hard
Cecilio Salonoy
Used 2+ times
FREE Resource
Enhance your content in a minute
40 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What keyword is used to define a user-defined function in PHP?
def
function
define
func
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a valid reason to use functions in PHP?
To increase the number of lines of code
To minimize the number of source-code
To make the code more difficult to read
To prevent the use of variables
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the main purpose of the return statement in a function?
To stop the PHP script entirely
To output a value directly to the browser
To send a value back to the calling code
To declare a new variable
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which pre-defined function is used to include a file and produce a fatal error if the file is not found?
include()
insert()
require()
attach()
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The date() function is used to:
Calculate the difference between two dates
Create and format a date and/or time
Convert a date into a timestamp only
Set the server's default timezone
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which function is used to start a PHP session?
session_begin()
start_session()
session_start()
$_SESSION()
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which function is used to calculate the square root of a number?
pow()
sqrt()
exp()
hypot()
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
40 questions
Penilaian Selesai Magang
Quiz
•
Professional Development
40 questions
Python_ponavljanje
Quiz
•
Professional Development
40 questions
Quiz reinforcement
Quiz
•
Professional Development
38 questions
tối ưu hóa
Quiz
•
Professional Development
38 questions
CONSTRUYE E IMPLEMENTA APLICACIONES WEB-NERI
Quiz
•
Professional Development
35 questions
Simulado SAA-C03 - 35 QUESTÕES
Quiz
•
Professional Development
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 Information Technology (IT)
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
25 questions
Christmas Movies
Quiz
•
Professional Development
20 questions
Christmas Trivia
Quiz
•
Professional Development
15 questions
Fun Holiday Trivia
Quiz
•
Professional Development
25 questions
Name That Tune - Christmas
Quiz
•
Professional Development
29 questions
Christmas Song Emoji Pictionary
Quiz
•
Professional Development
9 questions
Holiday Movie Trivia
Lesson
•
Professional Development
34 questions
Winter Trivia
Quiz
•
Professional Development
