Php With SQL
Tests knowledge of PHP programming with SQL databases, covering MySQLi and SQLite extensions, PHP file handling, session management, and core language constructs.
Questions
Which of the following extensions is an embedded structured query language library that does not require any SQL server?
- SimpleXML extension
- SQLite extension
- New MySqli extension
- Oracle server
- Oracle instance
Which of the following techniques enables you to embed large piece of text in your script which may include lots of double quotes without having to constantly escape them?
- Here-docs
- String offset
- MySqli_connect
- MySql_opt_connect_timeout
- MySqli_multi_query()
Which of the following constants represents that the size of the uploaded files exceeded the value of the special form field MAX_FILE_SIZE?
- UPLOAD_ERR_PARTIAL
- UPLOAD_ERR_FORM_SIZE
- UPLOAD_ERR_NO_FILE
- UPLOAD_ERR_OK
- $_POST[]
Which of the following functions is used to send a query to the database and return a result object?
- MySqli_multi_query()
- MySqli_fetch_object()
- MySqli_connect()
- next()
- MySqli_query()
Which of the following functions is used to execute a query and return the first column of the first returned record?
- Sqlite_query()
- Sqlite_exec()
- Upload_err_no_file
- Sqlite_single_query()
- $_GET[]
Which of the following functions is used to fetch all the results from the most recent query on the connection and stores them in memory?
- MySqli_fetch_assoc()
- MySqli_fetch_object()
- MySqli_query()
- Sqlite_fetch_array()
- MySqli_connect()
Which of the following allows an application to store information for the current session which can be defined as one user being logged into your application?
- EnableSession
- PHP session
- Session memory
- SQL injection
- MySqli_connect
Which of the following functions is used to send a query to the database and buffers the result?
- MySqli_query()
- MySqli_fetch_object()
- MySqli_fetch_row()
- Sqlite_fetch_array()
- MySqli_opt_connect_timeout
Which of the following extensions enables PHP developers to parse, diagnose, clean and repair hyper text markup language documents?
- New MySqli extension
- SimpleXML extension
- Perl extension
- Tidy extension
- An exact pattern to match
Which of the following extensions supports three kind of schemas for extensive markup language validation such as DTD, XML schema and RelaxNG?
- DOM extension
- SimpleXML extension
- New MySqli extension
- Perl extension
- An exact pattern match
Which of the following language constructs is used to check if a form variable has not been sent or does not contain data?
- unset()
- empty()
- NULL
- _construct()
- isset()
Which of the following language constructs is a way of assigning multiple array offsets to multiple variables in one statement?
- list()
- each()
- $_GET[]
- Array
- foreach()
Which of the following functions is used to return the whole result set as a two-dimensional array?
- Sqlite_fetch_array()
- Sqlite_fetch_all()
- Sqlite_query()
- Sqlite_exec()
- Mysqli_fetch_object()