Deck 2: HTTP, PHP, and Object-Oriented Programming in PHP

Full screen (f)
exit full mode
Question
HTTP stands for ___________.

A)Hyper text transfer protocol
B)hyper text mark protocol
C)File transfer protocol
D)none of these
Use Space or
up arrow
down arrow
to flip the card.
Question
Get and ________ are two HTTP methods that a client use to pass from data server.

A)get
B)Post
C)Server
D)Client
Question
______ tag is used for multiple selections.

A)select tag
B)text tag
C)list tag
D)none of these
Question
To upload the file ________ array is used.

A)$Files
B)$load
C)$New
D)none of these
Question
PHP was designed as a ________ scripting language.

A)Sever side
B)client slide
C)compiler
D)none of these
Question
____________is about communication between web clients and servers

A)WWW
B)HTML
C)TCP
D)FTP
Question
Communication between client computers and web servers is done by sending _________________.

A)HTTP request & HTTP Responses
B)GET & POST
C)TCP & FTP
D)none of these
Question
A ______is a small file that the server embeds on the user's computer. Each time the same computer requests a page with a browser, it will send the ________ too.

A)Cookie & cookie
B)FTP & TCP
C)GET & POST
D)HTTP request & HTTP Responses
Question
_______ statements reduce parsing time as the preparation on the query is done only once (although the statement is executed multiple times)

A)Prepared
B)fetch
C)array
D)SSL
Question
The MySQLi functions allows you to access______ database servers.

A)Mysql
B)SSL
C)Fetch
D)none of these
Question
The____ function fetches a result row as an associative array, a numeric array, or both.

A)fetch array()
B)Cookie()
C)S_Array()
D)D_array()
Question
The ssl_set()function is used to establish secure connections using _____

A)secure socket layer (SSL)
B)Mysql
C)http
D)none of these
Question
__________ function is used to change the default database for the connection.

A)fetch_array()
B)Cookie()
C)S_Array()
D)mysqli_select_db()
Question
An inherited class is defined by using the ______ keyword.

A)extends
B)constructor
C)object
D)none of these
Question
Abstract classes and methods are when the parent class has a named method, but need its child class(es) to fill out the tasks.

A)true
B)false
C)both a and b
D)none of these
Question
An abstract class is a class that contains at least one abstract method. An abstract method is a method that is declared, but not implemented in the code.

A)true
B)false
C)both a and b
D)none of these
Question
When inheriting from an abstract class, the child class method must be defined with the same name, and the same or a less restricted access modifier.

A)true
B)false
C)both a and b
D)none of these
Question
Interfaces allow you to specify what methods a class should implement.

A)true
B)false
C)both a and b
D)none of these
Question
Interfaces are declared with the ________ keyword:

A)interface
B)abstract class
C)implements
D)None of these
Question
Interface are similar to abstract classes. The difference between interfaces and abstract classes are Interfaces cannot have properties, while abstract classes can have.

A)interface
B)abstract class
C)implements
D)None of these
Question
To implement an interface, a class must use the______ keyword.

A)interface
B)abstract class
C)implements
D)None of these
Question
In PHP, there are three types of arrays one is not type of array in php which one:

A)Indexed arrays -
B)Associative arrays -
C)Multidimensional arrays -
D)polygamy array
Question
An inherited class is defined by using the extends keyword.

A)true
B)false
C)both a and b
D)none of these
Question
Classes and objects are the two main aspects of __________________

A)object oriented programming
B)constructor and destructor
C)object and array
D)none of these
Question
A constructor allows you to initialize an object's properties upon creation of the object.

A)true
B)false
C)both a and b
D)none of these
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/25
auto play flashcards
Play
simple tutorial
Full screen (f)
exit full mode
Deck 2: HTTP, PHP, and Object-Oriented Programming in PHP
1
HTTP stands for ___________.

A)Hyper text transfer protocol
B)hyper text mark protocol
C)File transfer protocol
D)none of these
Hyper text transfer protocol
2
Get and ________ are two HTTP methods that a client use to pass from data server.

A)get
B)Post
C)Server
D)Client
Post
3
______ tag is used for multiple selections.

A)select tag
B)text tag
C)list tag
D)none of these
select tag
4
To upload the file ________ array is used.

A)$Files
B)$load
C)$New
D)none of these
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
5
PHP was designed as a ________ scripting language.

A)Sever side
B)client slide
C)compiler
D)none of these
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
6
____________is about communication between web clients and servers

A)WWW
B)HTML
C)TCP
D)FTP
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
7
Communication between client computers and web servers is done by sending _________________.

A)HTTP request & HTTP Responses
B)GET & POST
C)TCP & FTP
D)none of these
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
8
A ______is a small file that the server embeds on the user's computer. Each time the same computer requests a page with a browser, it will send the ________ too.

A)Cookie & cookie
B)FTP & TCP
C)GET & POST
D)HTTP request & HTTP Responses
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
9
_______ statements reduce parsing time as the preparation on the query is done only once (although the statement is executed multiple times)

A)Prepared
B)fetch
C)array
D)SSL
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
10
The MySQLi functions allows you to access______ database servers.

A)Mysql
B)SSL
C)Fetch
D)none of these
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
11
The____ function fetches a result row as an associative array, a numeric array, or both.

A)fetch array()
B)Cookie()
C)S_Array()
D)D_array()
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
12
The ssl_set()function is used to establish secure connections using _____

A)secure socket layer (SSL)
B)Mysql
C)http
D)none of these
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
13
__________ function is used to change the default database for the connection.

A)fetch_array()
B)Cookie()
C)S_Array()
D)mysqli_select_db()
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
14
An inherited class is defined by using the ______ keyword.

A)extends
B)constructor
C)object
D)none of these
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
15
Abstract classes and methods are when the parent class has a named method, but need its child class(es) to fill out the tasks.

A)true
B)false
C)both a and b
D)none of these
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
16
An abstract class is a class that contains at least one abstract method. An abstract method is a method that is declared, but not implemented in the code.

A)true
B)false
C)both a and b
D)none of these
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
17
When inheriting from an abstract class, the child class method must be defined with the same name, and the same or a less restricted access modifier.

A)true
B)false
C)both a and b
D)none of these
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
18
Interfaces allow you to specify what methods a class should implement.

A)true
B)false
C)both a and b
D)none of these
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
19
Interfaces are declared with the ________ keyword:

A)interface
B)abstract class
C)implements
D)None of these
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
20
Interface are similar to abstract classes. The difference between interfaces and abstract classes are Interfaces cannot have properties, while abstract classes can have.

A)interface
B)abstract class
C)implements
D)None of these
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
21
To implement an interface, a class must use the______ keyword.

A)interface
B)abstract class
C)implements
D)None of these
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
22
In PHP, there are three types of arrays one is not type of array in php which one:

A)Indexed arrays -
B)Associative arrays -
C)Multidimensional arrays -
D)polygamy array
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
23
An inherited class is defined by using the extends keyword.

A)true
B)false
C)both a and b
D)none of these
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
24
Classes and objects are the two main aspects of __________________

A)object oriented programming
B)constructor and destructor
C)object and array
D)none of these
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
25
A constructor allows you to initialize an object's properties upon creation of the object.

A)true
B)false
C)both a and b
D)none of these
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
locked card icon
Unlock Deck
Unlock for access to all 25 flashcards in this deck.