Abortion Clinic Pretoria ](+27832195400*)[ Abortion Clinic Near Me ● Abortion...
Avaliação ad1 de php e mysql
1. Turma: 1° Ano Técnico em Informática
Curso: Programação I – PHP e MySql
AD 1/2
data: ____/_____/2014 - Prof.: Helder Ricardo Silva
Aluno:
Nota: cada questão vale: 0,77
Página 1
Total de Acertos: ____ Total de Erros: ___
1. What does PHP stand for?
Private Home Page
PHP: Hypertext Preprocessor
Personal Hypertext Processor
2. PHP server scripts are surrounded by delimiters, which?
<&>...</&>
<script>...</script>
<?php>...</?>
<?php ?>
3. How do you write "Hello World" in PHP
"Hello World";
Document.Write("Hello World");
echo "Hello World";
4. All variables in PHP start with which symbol?
!
&
$
5. The PHP syntax is most similar to:
VBScript
Perl and C
JavaScript
6. How do you get information from a form that is submitted using the "get" method?
Request.QueryString;
$_GET[];
Request.Form;
2. Turma: 1° Ano Técnico em Informática
Curso: Programação I – PHP e MySql
AD 1/2
data: ____/_____/2014 - Prof.: Helder Ricardo Silva
Aluno:
Nota: cada questão vale: 0,77
Página 2
Total de Acertos: ____ Total de Erros: ___
7.
When using the POST method, variables are displayed in the URL:
True
False
8. In PHP you can use both single quotes ( ' ' ) and double quotes ( " " ) for strings:
True
False
9. Include files must have the file extension ".inc"
False
True
10. What is the correct way to include the file "time.inc" ?
<?php include "time.inc"; ?>
<!-- include file="time.inc" -->
<?php include:"time.inc"; ?>
<?php include file="time.inc"; ?>
11. What is the correct way to create a function in PHP?
new_function myFunction()
function myFunction()
create myFunction()
12. PHP allows you to send emails directly from a script
False
True
13. What is the correct way to connect to a MySQL database?
mysqli_open(host,username,password,dbname);
mysqli_connect(host,username,password,dbname);
mysqli_db(host,username,password,dbname);