UGRD-IT6314 Web Application Development 1 Midterm Lecture
UGRD-IT6314 Web Application Development 1 Midterm Lecture
UGRD-IT6314 Web Application Development 1 Midterm Lecture
1. Home
2. My courses
3. UGRD-IT6314-2323T
4. MIDTERM EXAMINATION
5. MIDTERM EXAMINATION
Flag question
Question text
It is a block of code that can be executed whenever we need it.
a.
array
b.
function
c.
foreach statement
d.
statement
Feedback
Your answer is correct.
Question 2
Incorrect
Mark 0.00 out of 1.00
Flag question
Question text
where is the function's code located?
a.
between the curly braces
b.
none of the above
c.
between the comment
d.
between the brackets
Question 3
Correct
Mark 1.00 out of 1.00
Flag question
Question text
An ____________ stores multiple values in one single variable.
a.
array
b.
argument
c.
function
d.
default
Feedback
Your answer is correct.
Question 4
Incorrect
Mark 0.00 out of 1.00
Flag question
Question text
_____________ is one of the most popular applications for MySQL databases
management.
a.
mysql
b.
phpmyadmin
c.
database
d.
php
Feedback
Your answer is incorrect.
Question 5
Incorrect
Mark 0.00 out of 1.00
Flag question
Question text
PhpMyAdmin features are as follows. except:
a.
Searching locally in a database or a subset of it.
b.
Export data to various formats: CSV, SQL, XML, PDF, ISO/IEC 26300 -
OpenDocument Text and Spreadsheet, Word, Excel, LATEX and others;
c.
User-friendly web interface.
d.
Import data from CSV and SQL files.
Question 6
Incorrect
Mark 0.00 out of 1.00
Flag question
Question text
The _____ variable is used to collect values from a form with method= get
a.
none of the above
b.
$_post
c.
$_get
d.
$_cookie
Feedback
Your answer is incorrect.
Question 7
Correct
Mark 1.00 out of 1.00
Flag question
Question text
Arrays containing one or more arrays.
a.
none of the above
b.
multidimensional arrays
c.
indexed arrays
d.
associative arrays
Feedback
Your answer is correct.
Question 8
Correct
Mark 1.00 out of 1.00
Flag question
Question text
_____________ are specified after the function name, inside the parentheses.
a.
array
b.
default
c.
function
d.
argument
Feedback
Your answer is correct.
Question 9
Incorrect
Mark 0.00 out of 1.00
Flag question
Question text
what are operators used for?
a.
used to operate on values.
b.
none of the above
c.
used to operate on variables.
d.
to operate on output.
Question 10
Incorrect
Mark 0.00 out of 1.00
Flag question
Question text
A _________ is just like a variable.
a.
functions
b.
variable
c.
parameters
d.
none of the above
Feedback
Your answer is incorrect.
Question 11
Incorrect
Mark 0.00 out of 1.00
Flag question
Question text
The index can be assigned automatically (index always starts at 0), like this:
except?
a.
$cars = ("Volvo", "BMW", "Toyota");
b.
$cars = array("Volvo", "BMW", "Toyota");
c.
all of the above
d.
$array= cars("Volvo", "BMW", "Toyota");
Question 12
Correct
Mark 1.00 out of 1.00
Flag question
Question text
If you want to select one of many blocks of code to be executed which
statement should be used?
a.
array
b.
if-else
c.
switch
d.
arithmetic
Feedback
Your answer is correct.
Question 13
Correct
Mark 1.00 out of 1.00
Flag question
Question text
In PHP code is a line that is not read/executed as part of the program.
a.
variable
b.
concatenation
c.
comment
d.
echo
Feedback
Your answer is correct.
Question 14
Correct
Mark 1.00 out of 1.00
Flag question
Question text
Initialize the loop counter value.
a.
init counter
b.
none of the above
c.
increment counter
d.
test counter
Feedback
Your answer is correct.
Question 15
Incorrect
Mark 0.00 out of 1.00
Flag question
Question text
Where does the real power in PHP come from?
a.
From over 500 functions
b.
From over 1000 functions
c.
from over 100 functions
d.
from over 700 functions
Question 16
Incorrect
Mark 0.00 out of 1.00
Flag question
Question text
__________ makes it possible to process XML documents in PHP
a.
exclude parser
b.
pat parser
c.
none of the above
d.
expat parser
Feedback
Your answer is incorrect.
Question 17
Correct
Mark 1.00 out of 1.00
Flag question
Question text
A __________ is a collection of related data, and it consists of columns and rows.
a.
table
b.
queries
c.
mysql
d.
database
Feedback
Your answer is correct.
Question 18
Incorrect
Mark 0.00 out of 1.00
Flag question
Question text
PHP divides the operators into the following groups. except:
a.
string operators/logical operators
b.
increment/decrement operators
c.
scripting operator
d.
arithmetic operators
Feedback
Your answer is incorrect.
Question 19
Incorrect
Mark 0.00 out of 1.00
Flag question
Question text
What is a string variable used for?
a.
none of the above
b.
is used to store all variables.
c.
is used to store and manipulate a piece of text.
d.
is used to store and manipulate a piece of numbers.
Feedback
Your answer is incorrect.
Question 20
Correct
Mark 1.00 out of 1.00
Flag question
Question text
loops through a block of code a specified number of times?
a.
none of the above
b.
for statement
c.
looping statements
d.
while statement
Feedback
Your answer is correct.
Question 21
Correct
Mark 1.00 out of 1.00
Flag question
Question text
Increases the loop counter value.
a.
test counter
b.
init counter
c.
none of the above
d.
increment counter
Feedback
Your answer is correct.
Question 22
Incorrect
Mark 0.00 out of 1.00
Flag question
Question text
when should the if-else statement be used?
a.
if you want to execute a set of code when a condition is true and another if the
condition is not true.
b.
none of the above
c.
if you want to execute a set of code when a condition is true and another if the
condition is true
d.
if you want to execute a set of code when a condition is false and another if the
condition is false.
Feedback
Your answer is incorrect.
Question 23
Correct
Mark 1.00 out of 1.00
Flag question
Question text
A ________ is a question or a request.
a.
database
b.
queries
c.
mysql
d.
table
Feedback
Your answer is correct.
Question 24
Correct
Mark 1.00 out of 1.00
Flag question
Question text
The _______ function is used to close an open file.
a.
fopen()
b.
none of the above
c.
fstart
d.
fclose()
Feedback
Your answer is correct.
Question 25
Correct
Mark 1.00 out of 1.00
Flag question
Question text
__________ can store one or more values in a single variable name.
a.
arithmetic
b.
array
c.
switch
d.
if-else
Feedback
Your answer is correct.
Question 26
Correct
Mark 1.00 out of 1.00
Flag question
Question text
____________ is named after co-founder Monty Widenius's daughter.
a.
mysql
b.
database
c.
queries
d.
table
Feedback
Your answer is correct.
Question 27
Correct
Mark 1.00 out of 1.00
Flag question
Question text
index array always starts at _______.
a.
0
b.
none of the above
c.
1
d.
10
Feedback
Your answer is correct.
Question 28
Correct
Mark 1.00 out of 1.00
Flag question
Question text
What is the only string operator in php?
a.
semicolon;
b.
concatenation operator (.)
c.
ampersand (&)
d.
one of the above
Feedback
Your answer is correct.
Question 29
Correct
Mark 1.00 out of 1.00
Flag question
Question text
PHP ________ execute a block of code while the specified condition is true.
a.
do-while loop
b.
for each loops
c.
none of the above
d.
while loops
Feedback
Your answer is correct.
Question 30
Correct
Mark 1.00 out of 1.00
Flag question
Question text
_________ are used to create functions, headers, footers, or elements that will be
reused on multiple pages.
a.
none of the above
b.
server-side elements
c.
server-side function
d.
server-side includes
Feedback
Your answer is correct.
Question 31
Correct
Mark 1.00 out of 1.00
Flag question
Question text
______________ compiles on a number of platforms.
a.
phpmyadmin
b.
php
c.
mysql
d.
database
Feedback
Your answer is correct.
Question 32
Correct
Mark 1.00 out of 1.00
Flag question
Question text
Arrays with named keys.
a.
none of the above
b.
indexed arrays
c.
multidimensional arrays
d.
associative arrays
Feedback
Your answer is correct.
Question 33
Correct
Mark 1.00 out of 1.00
Flag question
Question text
The ___________ variable is used to collect values from a form with method=
post.
a.
$_post
b.
none of the above
c.
$_cookie
d.
$_get
Feedback
Your answer is correct.
Question 34
Correct
Mark 1.00 out of 1.00
Flag question
Question text
Are used to execute the same block of code a specified number of times?
a.
nested if
b.
looping statement
c.
none of the above
d.
switch statement
Feedback
Your answer is correct.
Question 35
Incorrect
Mark 0.00 out of 1.00
Flag question
Question text
What will be the output
a.
Each array in the functions has its own ID so that it can be easily accessed.
b.
none of the above
c.
Each array in the element has its own ID so that it can be easily accessed.
d.
Each element in the array has its own ID so that it can be easily accessed.
Feedback
Your answer is incorrect.
Question 36
Incorrect
Mark 0.00 out of 1.00
Flag question
Question text
What does the foreach statement do?
a.
none of the above
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
Feedback
Your answer is incorrect.
Question 37
Correct
Mark 1.00 out of 1.00
Flag question
Question text
The _______ function opens a file or URL.
a.
fclose()
b.
none of the above
c.
fstart
d.
fopen()
Feedback
Your answer is correct.
Question 38
Correct
Mark 1.00 out of 1.00
Flag question
Question text
In a __________ each element in the main array can also be an array. And each
element in the sub-array can be an array, and so on.
a.
none of the above
b.
multidimensional array
c.
associative arrays
d.
numeric array
Feedback
Your answer is correct.
Question 39
Incorrect
Mark 0.00 out of 1.00
Flag question
Question text
Associative arrays are arrays that use named keys that you assign to them.
There are two ways to create an associative array: except?
a.
variables do not need to be defined before they can be used
b.
$age = array("Peter"=>"35", "Ben"=>"37", "Joe"=>"43");
c.
none of the above
d.
$age['Peter'] = "35"; $age['Ben'] = "37"; $age['Joe'] = "43";
Feedback
Your answer is incorrect.
Question 40
Correct
Mark 1.00 out of 1.00
Flag question
Question text
What is the switch statement used for in PHP?
a.
to perform some actions based on one of several same conditions.
b.
to perform one of several different actions based on one of several different
conditions.
c.
none of the above
d.
to perform one of several different actions based on one of the same conditions.
Feedback
Your answer is correct.
Question 41
Incorrect
Mark 0.00 out of 1.00
Flag question
Question text
________allow inserting of the content of a file into a PHP file before the server
executes it.
a.
include() or server side() function
b.
include() or time() function
c.
include() or require() function
d.
none of the above
Feedback
Your answer is incorrect.
Question 42
Incorrect
Mark 0.00 out of 1.00
Flag question
Question text
different operators. except:
a.
all of the above
b.
comparison
c.
assignment
d.
arithmetic and logical
Feedback
Your answer is incorrect.
Question 43
Correct
Mark 1.00 out of 1.00
Flag question
Question text
The PHP _________ function is used to format a time or a date.
a.
date() function
b.
none of the above
c.
time() function
d.
data() function
Feedback
Your answer is correct.
Question 44
Incorrect
Mark 0.00 out of 1.00
Flag question
Question text
What is another way functions can be used?
a.
none of the above
b.
to loop values
c.
to return values
d.
to increment values
Feedback
Your answer is incorrect.
Question 45
Incorrect
Mark 0.00 out of 1.00
Flag question
Question text
Evaluated for each loop iteration. If it evaluates to TRUE, the loop continues. If it
evaluates to FALSE, the loop ends.
a.
increment counter
b.
test counter
c.
none of the above
d.
init counter
Feedback
Your answer is incorrect.
Question 46
Correct
Mark 1.00 out of 1.00
Flag question
Question text
Arrays with a numeric index.
a.
none of the above
b.
associative arrays
c.
multidimensional arrays
d.
indexed arrays
Feedback
Your answer is correct.
Question 47
Correct
Mark 1.00 out of 1.00
Flag question
Question text
A ________________ is a block of statements that can be used repeatedly in a
program.
a.
function
b.
argument
c.
default
d.
array
Feedback
Your answer is correct.
Question 48
Incorrect
Mark 0.00 out of 1.00
Flag question
Question text
how do you add more functionality to functions?
a.
none of the above
b.
by adding variables
c.
by adding parameters
d.
by adding values
Feedback
Your answer is incorrect.
Question 49
Correct
Mark 1.00 out of 1.00
Flag question
Question text
___________variables are used to retrieve information from forms, like user input.
a.
$_var and $_value
b.
none of the above
c.
$_get and $_post
d.
$_var and $_name
Feedback
Your answer is correct.
Question 50
Correct
Mark 1.00 out of 1.00
Flag question
Question text
The basic assignment operator in PHP is ________. It means that the left operand
gets set to the value of the assignment expression on the right.
a.
none of the above
b.
" %"
c.
"+"
d.
"="
Feedback
Your answer is correct.