TRIMESTRALEXAM 2333B (BLENDED) Jairem Cedrick Santos
UGRD-IT6314-2333T
UGRD-IT6314 Web Application Development 1
Participants
Home / My courses / UGRD-IT6314-2333T / PRELIM EXAMINATION / PRELIM LAB EXAMINATION
Badges
Competencies
Started on Monday, 20 May 2024, 6:19 PM Quiz navigation
State Finished 1 2 3 4 5 6 7 8 9
Grades
Completed on Monday, 20 May 2024, 6:24 PM
General Time taken 4 mins 42 secs 10 11 12 13 14 15 16 17 18
Marks 30.00/30.00
PRELIM Grade 100.00 out of 100.00 19 20 21 22 23 24 25 26 27
EXAMINATION
Question 1 The correct way of setting a variable in PHP:
28 29 30
MIDTERM Complete
EXAMINATION Mark 1.00 out Show one page at a time
of 1.00
a. $var_name = value; Finish review
FINAL EXAMINATION Flag
question b. none of the above
Home c. var = valuename;
d. #var_name = value;
Dashboard
Calendar
Your answer is correct.
Private files
My courses
Question 2 different operators. except:
UGRD-CYBS6101-
Complete
2333T
Mark 1.00 out a. arithmetic and logical
of 1.00
UGRD-PHYED6201- b. comparison
Flag
2333T question
c. all of the above
UGRD-IT6314-2333T d. assignment
Your answer is correct.
Question 3 What are two basic statements to output text with PHP?
Complete
Mark 1.00 out a. printf and scanf
of 1.00
Flag
b. none of the above
question
c. input and output
d. echo and print
Your answer is correct.
Question 4 PHP is ________ typed?
Complete
Mark 1.00 out a. none of the above
of 1.00
Flag
b. both a and b
question
c. loosely
d. strongly
Your answer is correct.
Question 5
What is the only string operator in php?
Complete
Mark 1.00 out a. semicolon;
of 1.00
Flag
b. ampersand (&)
question
c. concatenation operator (.)
d. none of the above
Your answer is correct.
Question 6
A variable starts with the___________ sign, followed by the name of the variable.
Complete
Mark 1.00 out a. $
of 1.00
Flag
b. #
question
c. .
d. ''
Your answer is correct.
Question 7 It is a block of code that can be executed whenever we need it.
Complete
Mark 1.00 out a. foreach statement
of 1.00
Flag
b. function
question
c. array
d. statement
Your answer is correct.
Question 8 What is another way functions can be used?
Complete
Mark 1.00 out
of 1.00
a. to return values
Flag
question b. to loop values
c. none of the above
d. to increment values
Your answer is correct.
Question 9 ________ can create, open, read, write, delete, and close files on the server.
Complete
Mark 1.00 out
of 1.00
a. scripting language
Flag
question b. database
c. css
d. php
Your answer is correct.
Question 10 What is the switch statement used for in PHP?
Complete
Mark 1.00 out
of 1.00
a. none of the above
Flag
question b. to perform one of several different actions based on one of several different conditions.
c. to perform one of several different actions based on one of the same conditions.
d. to perform some actions based on one of several same conditions.
Your answer is correct.
Question 11 A _________ is just like a variable.
Complete
Mark 1.00 out
of 1.00
a. parameters
Flag
question b. functions
c. variable
d. none of the above
Your answer is correct.
Question 12
What does the foreach statement do?
Complete
Mark 1.00 out
of 1.00
a. none of the above
Flag
question
b. loops through a block of code for each element in an array
c. loops through each element in an array
d. loops through each switch and element in an array
Your answer is correct.
Question 13 where can a php script be placed in the document?
Complete
Mark 1.00 out
of 1.00
a. body
Flag
question b. anywhere
c. none of the above
d. head
Your answer is correct.
Question 14 Are used to execute the same block of code a specified number of times?
Complete
Mark 1.00 out a. none of the above
of 1.00
Flag
b. switch statement
question
c. nested if
d. looping statement
Your answer is correct.
Question 15 what is the purpose of the semicolon?
Complete
Mark 1.00 out a. none of the above
of 1.00
Flag
b. used for concatenation
question
c. it is a connector
d. it is a separator and used to distinguish one set of instructions from another
Your answer is correct.
Question 16 In php does a variable need to be declared (created) before being set?
Complete
Mark 1.00 out a. yes, php needs to create the variable and sets it to the correct type.
of 1.00
Flag
b. both a and b
question
c. none of the above
d. no, php automatically creates the variable and sets it to the correct type.
Your answer is correct.
Question 17 How must each php code line end?
Complete
Mark 1.00 out a. with backlash
of 1.00
Flag
b. none of the above
question
c. with semicolon
d. with dot
Your answer is correct.
Question 18
How are php files returned to the browser?
Complete
Mark 1.00 out a. php files are returned to the browser as blank page
of 1.00
Flag
b. php files are returned to the browser as plain html
question
c. as a programming language
d. php files are returned to the browser as server
Your answer is correct.
Question 19
Are used for storing values, such as numbers, strings, or function results, so that they can be used many times in a script?
Complete
Mark 1.00 out a. arrays
of 1.00
Flag
b. echo
question
c. value
d. variables
Your answer is correct.
Question 20
Should a variable name contain spaces in php?
Complete
Mark 1.00 out
of 1.00
a. yes
Flag
question
b. none of the above
c. no
d. both a and b
Your answer is correct.
Question 21 Where does the real power in PHP come from?
Complete
Mark 1.00 out a. From over 1000 functions
of 1.00
Flag
b. from over 100 functions
question
c. From over 500 functions
d. from over 700 functions
Your answer is correct.
Question 22 how is a single line comment made in php?
Complete
Mark 1.00 out a. with **
of 1.00
Flag
b. with /*
question
c. With //
d. none of the above
Your answer is correct.
Question 23 What is a string variable used for?
Complete
Mark 1.00 out a. is used to store all variables.
of 1.00
Flag
b. is used to store and manipulate a piece of numbers.
question
c. none of the above
d. is used to store and manipulate a piece of text.
Your answer is correct.
Question 24 __________ can store one or more values in a single variable name.
Complete
Mark 1.00 out a. arithmetic
of 1.00
Flag
b. switch
question
c. if-else
d. array
Your answer is correct.
Question 25 If you want to select one of many blocks of code to be executed which statement should be used?
Complete
Mark 1.00 out a. arithmetic
of 1.00
Flag
b. switch
question
c. if-else
d. array
Your answer is correct.
Question 26 What happens if the php file has an html extension instead of PHP?
Complete
Mark 1.00 out a. the php code will be executed
of 1.00
Flag
b. sga
question
c. none of the above
d. the php code will not be executed
Your answer is correct.
Question 27 what are operators used for?
Complete
Mark 1.00 out
of 1.00
a. used to operate on variables.
Flag
question b. none of the above
c. used to operate on values.
d. to operate on output.
Your answer is correct.
Question 28
One of the best features of ____________ is its ability to work in various platform.
Complete
Mark 1.00 out a. wamp
of 1.00
Flag
b. php
question
c. xampp
d. java
Your answer is correct.
Question 29 when should the if-else statement be used?
Complete
Mark 1.00 out a. if you want to execute a set of code when a condition is false and another if the condition is false.
of 1.00
Flag
b. if you want to execute a set of code when a condition is true and another if the condition is not true.
question
c. if you want to execute a set of code when a condition is true and another if the condition is true
d. none of the above
Your answer is correct.
Question 30 In php how must a variable name start?
Complete
Mark 1.00 out a. variable name must start with an underscore _
of 1.00
Flag
b. both a and c
question
c. variable name must start with a digits
d. variable name must start with a letter
Your answer is correct.
Finish review
◄ PRELIM EXAMINATION Jump to...
You are logged in as Jairem Cedrick Santos (Log out)
UGRD-IT6314-2333T
Data retention summary
Get the mobile app