Deck 1: Getting Started With Php
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/83
Play
Full screen (f)
Deck 1: Getting Started With Php
1
In PHP, you can declare a variable without assigning a value to it.
False
2
When you pass a variable name to the echo statement, you must enclose the variable name in double quotation marks.
False
3
When using the
False
4
In PHP, you are limited to ten (10) code blocks in a single page.
Unlock Deck
Unlock for access to all 83 flashcards in this deck.
Unlock Deck
k this deck
5
When you assign a NULL value to a variable, you ensure that the variable does not contain any data.
Unlock Deck
Unlock for access to all 83 flashcards in this deck.
Unlock Deck
k this deck
6
In PHP, each statement must be placed on a separate line.
Unlock Deck
Unlock for access to all 83 flashcards in this deck.
Unlock Deck
k this deck
7
All Web pages containing PHP code must have an extension of .php.
Unlock Deck
Unlock for access to all 83 flashcards in this deck.
Unlock Deck
k this deck
8
Using the standard method of writing PHP blocks, the are used to begin and end a code block.
Unlock Deck
Unlock for access to all 83 flashcards in this deck.
Unlock Deck
k this deck
9
Constant names, like variable names, must begin with a $.
Unlock Deck
Unlock for access to all 83 flashcards in this deck.
Unlock Deck
k this deck
10
$_ABC1 is a valid variable identifier.
Unlock Deck
Unlock for access to all 83 flashcards in this deck.
Unlock Deck
k this deck
11
Both the echo and print statements return a value of 1 if successful and 0 if not successful.
Unlock Deck
Unlock for access to all 83 flashcards in this deck.
Unlock Deck
k this deck
12
It is a good practice to name all Web files with a .php extension even if they contain no PHP code.
Unlock Deck
Unlock for access to all 83 flashcards in this deck.
Unlock Deck
k this deck
13
The source code for PHP can be viewed in the client browser.
Unlock Deck
Unlock for access to all 83 flashcards in this deck.
Unlock Deck
k this deck
14
When using multiple arguments in a function, you must separate the arguments with a comma.
Unlock Deck
Unlock for access to all 83 flashcards in this deck.
Unlock Deck
k this deck
15
Constant names are always case sensitive.
Unlock Deck
Unlock for access to all 83 flashcards in this deck.
Unlock Deck
k this deck
16
A line comment must be placed at the end of the line to which the comment refers.
Unlock Deck
Unlock for access to all 83 flashcards in this deck.
Unlock Deck
k this deck
17
The primary purpose of a semicolon in PHP is to identify the end of a line.
Unlock Deck
Unlock for access to all 83 flashcards in this deck.
Unlock Deck
k this deck
18
A text string can be contained in either double or single quotation marks.
Unlock Deck
Unlock for access to all 83 flashcards in this deck.
Unlock Deck
k this deck
19
If you use a variable name in a text string enclosed by single quotation marks, the name of the variable will display.
Unlock Deck
Unlock for access to all 83 flashcards in this deck.
Unlock Deck
k this deck
20
Data types that can be assigned only a single value are called primitive types.
Unlock Deck
Unlock for access to all 83 flashcards in this deck.
Unlock Deck
k this deck
21
Type casting, changes the data type of a variable from one data type to another.
Unlock Deck
Unlock for access to all 83 flashcards in this deck.
Unlock Deck
k this deck
22
A unary operator requires an operand before or after the operator.
Unlock Deck
Unlock for access to all 83 flashcards in this deck.
Unlock Deck
k this deck
23
The numbering of elements within an array starts with an index number of one (1).
Unlock Deck
Unlock for access to all 83 flashcards in this deck.
Unlock Deck
k this deck
24
A(n) ____ is an element's numeric position within an array.
A) location
B) index
C) indicator
A) location
B) index
C) indicator
Unlock Deck
Unlock for access to all 83 flashcards in this deck.
Unlock Deck
k this deck
25
In PHP programming, you can only use TRUE or FALSE to indicate Boolean values.
Unlock Deck
Unlock for access to all 83 flashcards in this deck.
Unlock Deck
k this deck
26
____ are positive and negative numbers and 0 with no decimal places.
A) Integers
B) Numbers
C) Digits
A) Integers
B) Numbers
C) Digits
Unlock Deck
Unlock for access to all 83 flashcards in this deck.
Unlock Deck
k this deck
27
The values assigned to different array elements of the same array can be of different data types.
Unlock Deck
Unlock for access to all 83 flashcards in this deck.
Unlock Deck
k this deck
28
In a ____ programming language the data type for a variable will not change after it has been declared.
A) loosely typed
B) strongly typed
C) constantly typed
A) loosely typed
B) strongly typed
C) constantly typed
Unlock Deck
Unlock for access to all 83 flashcards in this deck.
Unlock Deck
k this deck
29
Arrays and objects are examples of the primitive data type.
Unlock Deck
Unlock for access to all 83 flashcards in this deck.
Unlock Deck
k this deck
30
____ are lines you place in your code that do not get executed but provide helpful information such as the name of the script, your name and the date your created the program.
A) Pointers
B) Instructions
C) Comments
A) Pointers
B) Instructions
C) Comments
Unlock Deck
Unlock for access to all 83 flashcards in this deck.
Unlock Deck
k this deck
31
____ a variable is the processing of assigning a first value to a variable.
A) Initializing
B) Declaring
C) Finalizing
A) Initializing
B) Declaring
C) Finalizing
Unlock Deck
Unlock for access to all 83 flashcards in this deck.
Unlock Deck
k this deck
32
Data types that can be assigned only a single value are called ____ types.
A) individual
B) mono
C) primitive
A) individual
B) mono
C) primitive
Unlock Deck
Unlock for access to all 83 flashcards in this deck.
Unlock Deck
k this deck
33
Exponential ____ is a shortened format for writing very large numbers with any decimal places.
A) numbering
B) notation
C) registering
A) numbering
B) notation
C) registering
Unlock Deck
Unlock for access to all 83 flashcards in this deck.
Unlock Deck
k this deck
34
The modulus operator returns the remainder left from the division of two integers.
Unlock Deck
Unlock for access to all 83 flashcards in this deck.
Unlock Deck
k this deck
35
The ____ type is the specific category of information that a variable contains.
A) variable
B) data
C) content
A) variable
B) data
C) content
Unlock Deck
Unlock for access to all 83 flashcards in this deck.
Unlock Deck
k this deck
36
You can use parentheses with expressions to change the associativity in which individual operations in an expression are evaluated.
Unlock Deck
Unlock for access to all 83 flashcards in this deck.
Unlock Deck
k this deck
37
The PHP Group recommends you use the standard ____ script delimiters to write PHP code declaration blocks.
A)
B)
C)
A)
B)
C)
Unlock Deck
Unlock for access to all 83 flashcards in this deck.
Unlock Deck
k this deck
38
Array names are often referred to with the array operators [ and ] at the end of the name to clearly define them as arrays.
Unlock Deck
Unlock for access to all 83 flashcards in this deck.
Unlock Deck
k this deck
39
The ____ function is used to create a constant.
A) create()
B) define()
C) describe()
A) create()
B) define()
C) describe()
Unlock Deck
Unlock for access to all 83 flashcards in this deck.
Unlock Deck
k this deck
40
A comparison operator returns a Boolean value of TRUE or FALSE after two operands have been compared.
Unlock Deck
Unlock for access to all 83 flashcards in this deck.
Unlock Deck
k this deck
41
____ assignment operators perform mathematical calculations on variables and literal values in an expression and then assign a new value to the left operand.
A) Compound
B) Complex
C) Binary
A) Compound
B) Complex
C) Binary
Unlock Deck
Unlock for access to all 83 flashcards in this deck.
Unlock Deck
k this deck
42
You use the ____ function to find the total number of elements in an array.
A) sum()
B) counta()
C) count()
A) sum()
B) counta()
C) count()
Unlock Deck
Unlock for access to all 83 flashcards in this deck.
Unlock Deck
k this deck
43
A(n) ____ is a literal value or variable that can be evaluated by the PHP scripting engine to produce a result.
A) expression
B) condition
C) clause
A) expression
B) condition
C) clause
Unlock Deck
Unlock for access to all 83 flashcards in this deck.
Unlock Deck
k this deck
44
The ____ operator executes one of two expressions based on the results of a conditional expression.
A) conditional
B) expressional
C) comparison
A) conditional
B) expressional
C) comparison
Unlock Deck
Unlock for access to all 83 flashcards in this deck.
Unlock Deck
k this deck
45
A Web document containing PHP code must have an extension of ____________________.
Unlock Deck
Unlock for access to all 83 flashcards in this deck.
Unlock Deck
k this deck
46
The ____ operation uses the === (triple equal sign) to compare two operands for equality and data type.
A) equal
B) strict equal
C) comparison
A) equal
B) strict equal
C) comparison
Unlock Deck
Unlock for access to all 83 flashcards in this deck.
Unlock Deck
k this deck
47
One way to ensure that a variable is of the correct data type is through type ____.
A) naming
B) identifying
C) casting
A) naming
B) identifying
C) casting
Unlock Deck
Unlock for access to all 83 flashcards in this deck.
Unlock Deck
k this deck
48
The ____ operator uses the % symbol to find the remainder of integer division.
A) division
B) modulus
C) arithmetic
A) division
B) modulus
C) arithmetic
Unlock Deck
Unlock for access to all 83 flashcards in this deck.
Unlock Deck
k this deck
49
The individual lines of code that make up a PHP script are called ____________________.
Unlock Deck
Unlock for access to all 83 flashcards in this deck.
Unlock Deck
k this deck
50
A(n) ____________________ is a character or sequence of characters used to mark the beginning and end of a code segment.
Unlock Deck
Unlock for access to all 83 flashcards in this deck.
Unlock Deck
k this deck
51
Logical operators are used for comparing two ____ operands for equality.
A) numeric
B) Boolean
C) string
A) numeric
B) Boolean
C) string
Unlock Deck
Unlock for access to all 83 flashcards in this deck.
Unlock Deck
k this deck
52
The ____ function tests whether a variable contains a numeric data type.
A) is_number()
B) is_digit()
C) is_numeric()
A) is_number()
B) is_digit()
C) is_numeric()
Unlock Deck
Unlock for access to all 83 flashcards in this deck.
Unlock Deck
k this deck
53
____ are symbols, such as the (+) symbol that are used in expressions to manipulate operands.
A) Literals
B) Operators
C) Expressions
A) Literals
B) Operators
C) Expressions
Unlock Deck
Unlock for access to all 83 flashcards in this deck.
Unlock Deck
k this deck
54
Assignment operators are used to assign a ____ to a variable.
A) name
B) value
C) data type
A) name
B) value
C) data type
Unlock Deck
Unlock for access to all 83 flashcards in this deck.
Unlock Deck
k this deck
55
A(n) ____ operator is used in PHP to perform mathematical calculations.
A) math
B) arithmetic
C) calculation
A) math
B) arithmetic
C) calculation
Unlock Deck
Unlock for access to all 83 flashcards in this deck.
Unlock Deck
k this deck
56
The PHP Group officially recommends that you use the ____________________ PHP script delimiters to write PHP code declaration blocks.
Unlock Deck
Unlock for access to all 83 flashcards in this deck.
Unlock Deck
k this deck
57
The ____________________ attribute is used with the
Unlock Deck
Unlock for access to all 83 flashcards in this deck.
Unlock Deck
k this deck
58
The print_r(), var_export(), and var_dump()functions are used with ____ to display the index and value of each element.
A) variables
B) functions
C) arrays
A) variables
B) functions
C) arrays
Unlock Deck
Unlock for access to all 83 flashcards in this deck.
Unlock Deck
k this deck
59
A(n) ____ operator requires a single operand either before or after the operator.
A) unary
B) single
C) binary
A) unary
B) single
C) binary
Unlock Deck
Unlock for access to all 83 flashcards in this deck.
Unlock Deck
k this deck
60
The ____ symbol is used to suppress any errors that might be generated by an expression to which it is prepended.
A) #
B) =>
C) @
A) #
B) =>
C) @
Unlock Deck
Unlock for access to all 83 flashcards in this deck.
Unlock Deck
k this deck
61
A(n) ____________________ contains information that does not change during the course of program execution.
Unlock Deck
Unlock for access to all 83 flashcards in this deck.
Unlock Deck
k this deck
62
A(n) ____________________ is a static value such as a string or a number.
Unlock Deck
Unlock for access to all 83 flashcards in this deck.
Unlock Deck
k this deck
63
The term ____________________ refers to a subroutine that performs a specific task.
Unlock Deck
Unlock for access to all 83 flashcards in this deck.
Unlock Deck
k this deck
64
The name you assign to a variable is called a(n) ____________________.
Unlock Deck
Unlock for access to all 83 flashcards in this deck.
Unlock Deck
k this deck
65
Assigning the value ____________________ to a variable indicates that the variable does not contain a usable value.
Unlock Deck
Unlock for access to all 83 flashcards in this deck.
Unlock Deck
k this deck
66
A(n) ____________________ is a set of data represented by a single variable name.
Unlock Deck
Unlock for access to all 83 flashcards in this deck.
Unlock Deck
k this deck
67
The ____________________ PHP script delimiters omit the word PHP from the opening delimiter.
Unlock Deck
Unlock for access to all 83 flashcards in this deck.
Unlock Deck
k this deck
68
The ____________________ function is used to find the total number of elements in an array.
Unlock Deck
Unlock for access to all 83 flashcards in this deck.
Unlock Deck
k this deck
69
A(n) ____________________ string is text that is contained within double or single quotation marks.
Unlock Deck
Unlock for access to all 83 flashcards in this deck.
Unlock Deck
k this deck
70
____________________ comments allow multiple lines of text to be added.
Unlock Deck
Unlock for access to all 83 flashcards in this deck.
Unlock Deck
k this deck
71
The echo() and print()____________________ are used to display text that is returned as a response to a client.
Unlock Deck
Unlock for access to all 83 flashcards in this deck.
Unlock Deck
k this deck
72
____________________ operands are limited to the values TRUE or FALSE.
Unlock Deck
Unlock for access to all 83 flashcards in this deck.
Unlock Deck
k this deck
73
____________________ operators are used to determine how one operand compares to another.
Unlock Deck
Unlock for access to all 83 flashcards in this deck.
Unlock Deck
k this deck
74
The process of specifying and creating a variable name is called ____________________ the variable.
Unlock Deck
Unlock for access to all 83 flashcards in this deck.
Unlock Deck
k this deck
75
To execute a function, you must use a function ____________________.
Unlock Deck
Unlock for access to all 83 flashcards in this deck.
Unlock Deck
k this deck
76
Sending data to a called function is called ____________________ arguments.
Unlock Deck
Unlock for access to all 83 flashcards in this deck.
Unlock Deck
k this deck
77
Reference or ____________________ data types can contain multiple values or complex types of information.
Unlock Deck
Unlock for access to all 83 flashcards in this deck.
Unlock Deck
k this deck
78
The equal sign (=)is an example of a(n) ____________________ operator.
Unlock Deck
Unlock for access to all 83 flashcards in this deck.
Unlock Deck
k this deck
79
A postfix operator is placed ____________________ a variable.
Unlock Deck
Unlock for access to all 83 flashcards in this deck.
Unlock Deck
k this deck
80
____________________ are lines you place in your code that do not get executed but provide information.
Unlock Deck
Unlock for access to all 83 flashcards in this deck.
Unlock Deck
k this deck