PREPARATÓRIO CERTIFICAÇÃO PHP5

Slides:



Advertisements
Apresentações semelhantes
Presenter’s Notes Some Background on the Barber Paradox
Advertisements

MANUAL EBSCONET.
Chapter Six Pipelining
Chapter Five The Processor: Datapath and Control (Parte B: multiciclo)
1998 Morgan Kaufmann Publishers Mario Côrtes - MO401 - IC/Unicamp- 2004s2 Ch5A-1 Chapter Five The Processor: Datapath and Control.
Copyright no direito americano: o caso Leslie Kelly v. Arriba Soft Corp. 1.
RELATIVE CLAUSE / RELATIVE PRONOUNS
Ciência Robert Sheaffer: Prepared Talk for the Smithsonian UFO Symposium, Sept. 6, 1980.
ANÁLISE DA PRODUÇÃO EM PERIÓDICOS ( ) SEGUNDO NOVOS ESTRATOS VITÓRIA, ES – OUTUBRO 2008 Kenneth Camargo – IMS/UERJ Cláudia Medina – IESC/UFRJ.
Towards a Requirement Analysis Approach for Dependable Law-Governed Systems Maíra Gatti, Gustavo Carvalho May 2nd 2006.
Java RMI Alcides Calsavara. Objetivos Permitir que um método de uma classe Java em execução em uma máquina virtual JVM chame um método de um objeto (instância.
DIRETORIA ACADÊMICA NÚCLEO DE CIÊNCIAS HUMANAS E ENGENHARIAS DISCIPLINA: INGLÊS FUNDAMENTAL - NOITE PROFESSOR: JOSÉ GERMANO DOS SANTOS PERÍODO LETIVO
DIRETORIA ACADÊMICA NÚCLEO DE CIÊNCIAS HUMANAS E ENGENHARIAS DISCIPLINA: INGLÊS FUNDAMENTAL - NOITE PROFESSOR: JOSÉ GERMANO DOS SANTOS PERÍODO LETIVO
A.4. Trabalhando com elementos de biblioteca STL – Standard Template Libraby Disponibiliza um conjunto de classes templates, provendo algoritmos eficientes.
Uniform Resource Identifier (URI). Uniform Resource Identifiers Uniform Resource Identifiers (URI) ou Identificador de Recursos Uniforme provê um meio.
Protocolo HTTP.
SECEX SECRETARIA DE COMÉRCIO EXTERIOR MINISTÉRIO DO DESENVOLVIMENTO, INDUSTRIA E COMÉRCIO EXTERIOR BRAZILIAN EXPORTS STATISTICAL DEPURATION SYSTEM Presentation.
Em português correspondem às conjunções, locuções, advérbios, etc.
Que Buscas? What do You Search For?. A inteligência nos faz crer que somente buscamos o bem, pois todos se agradam das coisas boas. No entanto, para buscar.
Em Torno da Felicidad e Amongst Happiness Em de felicidade convém não esquecer que nos transformamos sempre naquilo que amamos. Em matéria de felicidade.
Acção de Formação A Biblioteca Escolar: Leitura e Literacia no 2º e 3º ciclos do Ensino Básico e Secundário Centro de Formação Júlio Brandão
Indirect Object Pronouns - Pronomes Pessoais Complemento Indirecto
NO I CAN'T FORGET THIS EVENING Não, não posso esquecer essa noite OR YOUR FACE AS YOU WERE LEAVING Ou seu rosto enquanto você partia BUT I GUESS THAT'S.
Imagine there's no heaven Imagine não existir paraíso It's easy if you try É fácil se você tentar No hell below us Nenhum inferno abaixo de nós Above.
OER LIFE CYCLE Andrew Moore and Tessa Welch.
Tópicos Especiais em Aprendizagem Reinaldo Bianchi Centro Universitário da FEI 2012.
Fazendo e Brincando: Confecção de Materiais para as Aulas de Inglês
Webots Pedro Pinheiro 12 de Novembro de Webots Pedro Pinheiro 12 de Novembro de 2004 Prepared by: Pedro Pinheiro.
Definição do MoC Subjacente a Aplicação Prof. Dr. César Augusto Missio Marcon Parcialmente extraído de trabalhos de Axel Jantch, Edward Lee e Alberto Sangiovanni-Vincentelli.
Universidade de Brasília Laboratório de Processamento de Sinais em Arranjos 1 Adaptive & Array Signal Processing AASP Prof. Dr.-Ing. João Paulo C. Lustosa.
Knowledge Extraction from the Web (ISEWO)
Teacher Andréia Deluca English Class
Introdução à Criptografia Moderna – 2ª Lista de Exercícios
Metodologia de Desenvolvimento de Software Hermano Moura Alexandre Vasconcelos, André Santos, Augusto Sampaio, Hermano Moura, Paulo.
Where English is Fun!!!... Onde o Inglês é divertido!!! Escola Internacional de Linguas BRAVOwww.bravoecole.com.br Brasilia - DF THE FUN CLUB.
Imagine Imagine que não exista nenhum paraíso,
Boy Meets Girl Waiting for a star to fall I hear your name whispered on the Wind Eu ouço o seu nome sussurrado no vento It’s a sound that makes me.
Aceitacao Acceptance. Aceita a vida que Deus te deu. Accept the life God gave you.
Instituto de Engenharia de Sistemas e Computadores Investigação e Desenvolvimento em Lisboa Understanding Epidemic Quorum Systems INESC-ID Lisbon/Technical.
Socio-technical approaches for Safety STAMP/STPA
10/ Daily Goal Sheet & Daily Checklist for Teachers Folha do Objetivo Diário & Checklist diário para os Professores By Por David Batty PSNC #7.
Imagine there’s no heaven, it’s easy if you try, Imagina que não há céu, é fácil se tentares,
RELATÓRIO CEMEC 06 COMPARAÇÕES INTERNACIONAIS Novembro 2013.
Microprocessadores 8051 – Aula 3 Interrupção
© 2012 Autodesk Autodesk Revit para projetos executivos de arquitetura Módulo 2: Otimizando a modelagem para documentação Tiago Marçal Ricotta Gerente.
Unit l Verb to be.
Unit 22 Relative Clauses and Pronouns.
Smile Nat King Cole Rolagem automática.
VOCÊ JÁ FALA INGLÊS FLUENTEMENTE?
Importância da Meditação para Promover Qualidade de Vida
Clicar para rolar Click to run Caminha de 10 a 30 minutos todos os dias.... Sorri enquanto caminhas. Walk 10 to 30 minutes every day… Smile while you’re.
Faculdade de Ciências Económicas e Empresariais Universidade Católica Portuguesa 17/12/2014Ricardo F Reis 2 nd session: Principal –
O que são os alertas do Google?
Limit Equlibrium Method. Limit Equilibrium Method Failure mechanisms are often complex and cannot be modelled by single wedges with plane surfaces. Analysis.
Abril 2016 Gabriel Mormilho Faculdade de Economia, Administração e Contabilidade da Universidade de São Paulo Departamento de Administração EAD5853 Análise.
Pesquisa Operacional aplicada à Gestão de Produção e Logística Prof. Eng. Junior Buzatto Case 3.
Learning english with comics …………….. Aprendendo inglês com quadrinhos.
Visão geral do Aprendizado de máquina
Teste e Qualidade de Software
-A partir do 2º Slide a passagem é automática!
Sunday School Adolescents Theme: Evangelism.
Sunday Bible School Theme: Evangelism Children & Intermediates
Wondershare software On the [View] menu, point to [Master], and then click [Slide Master] or [Notes Master].
Workshop Pesquisa Acadêmica
Adição e Multiplicação
Developing a Hypothesis
Introduction to Machine learning
Simple Present Tense. . In English the Simple Present is used to express actions that are made with a certain frequency, like go to school, work, study…
Introduction to density estimation Modelação EcoLÓGICA
Pesquisadores envolvidos Recomenda-se Arial 20 ou Times New Roman 21.
Transcrição da apresentação:

PREPARATÓRIO CERTIFICAÇÃO PHP5 40 Horas Instrutor: Antonio Itamar Júnior

Strings and Regular Expressions - Declaração de classe - Nomenclatura - Instanciar classe - Utilizar atributos e métodos de classe

Strings and Regular Expressions STRINGS ARE THE SWISS-ARMY knife of PHP, particularly if you consider the fact that most PHP scripts are used to serve web pages—which are, for the most part, nothing more than large strings. Knowing how to use this particular facility is, therefore, one of the most fundamental skills of the PHP developer, since you’ll be working with them day in and day out. Luckily, its essential role in the life of a PHP script has resulted in string manipulation being made exceptionally easy by the PHP development team. Therefore, once you get past the first few hurdles, handling strings becomes easy, quick and—to some extent—even fun. However, this particular aspect of PHP programming is far from being free of pitfalls. This portion of the exam tests your understanding of strings as well as your knowledge of the body of functions that are used to manipulate them. Additionally, you’ll find yourself faced with the basics of that most voodoo art of writing regular expressions, which, despite being a hugely useful tool, is too often neglected by most developers.

QUESTÃO 1 Consider the following script. What line of code should be inserted in the marked location in order to display the string php when this script is executed? “Considere o seguinte script. Qual linha de código deve ser inserida no local marcado para exibir a string php quando esse script for executado?” A. echo chr($val); B. echo asc($val); C. echo substr($alpha, $val, 2); D. echo $alpha{$val}; E. echo $alpha{$val+1} <?php $alpha = 'abcdefghijklmnopqrstuvwxyz'; $letters = array( 15 , 7 , 15 ); foreach( $letters as $val ) { /* What should be here */ } ?>

QUESTÃO 2 Which of the following will not combine strings $s1 and $s2 into a single string? “Qual das seguintes variáveis não irá combinar strings $s1 e $s2 em uma única string?” A. $s1 + $s2 B. "{$s1}{$s2}" C. $s1.$s2 D. implode('', array($s1,$s2)) E. All of the above combine the strings Explicação Com exceção da resposta A, todas as repostas produzirão o resultado desejado de concatenação das strings $s1 com $s2. No PHP, o operador mais (+) não combina duas strings juntas, como acontece em outras línguas, tais como Java e Javascript.

QUESTÃO 3 Given a variable $email containing the string user@example.com, which of the following statements would extract the string example.com? “Dada uma variável $ email contendo a string user@example.com, qual das seguintes declarações seria extrair a seqüência example.com?” A. substr($email, strpos($email, "@")); B. strstr($email, "@"); C. strchr($email, "@"); D. substr($email, strpos($email, "@")+1); E. strrpos($email, "@"); Explicação A funçao substr é usada para retornar uma parte de um texto, enquanto a função strpos é usada para encontrar uma determinada substring dentro de uma string. Utilizado em conjunto, podemos extrair a informação exigida. É importante perceber que é ex-zero-indexados, enquanto o último não é, 1 exigindo uma compensação a ser adicionado. É por isso que a resposta D é correto.

- Manipulação de Arquivos - 20 questões Manipulating Files - Manipulação de Arquivos - 20 questões

Manipulating Files THOUGH YOU MAY NEVER think of file manipulation as one PHP’s strengths, it is actually a very useful tool for the developer. Even if you only develop websites, being able to read from and write to a file can turn out to be a very handy capability. After all, remember that, thanks to its stream wrappers (covered in more detail in Chapter 10), PHP makes it possible to open a remote file and read from it—useful, for example, for including content from a third-party site. On a more basic level, however, file input/output can be used for a multitude of tasks. For example, it’s handy for reading and interpreting the contents of a preformatted file, such as you could receive from a third-party provider sending you syndicated content, or for opening up and outputting binary files to the browser through your scripts so that you can more tightly control access to them. Whatever the end use, you will be tested not only on the basics of opening, closing and accessing a file’s contents, but also on fundamental aspects of file manipulation that are relevant in a multi-process environment, such as file locking.

QUESTÃO 1 The _______ function is used to read a single line from a file and is used when dealing with text files. For reading binary data or other specific segments of a file, you should use the _______ function instead. “_______ A função é usada para ler uma única linha de um arquivo e é usado quando se lida com arquivos de texto. Para leitura de dados binários ou outros segmentos específicos de um arquivo, você deve usar o _______ Função vez.” A. fgets(), fseek() B. fread(), fgets() C. fputs(), fgets() D. fgets(), fread() E. fread(), fseek()

QUESTÃO 2 Although file resources will automatically be closed at the end of a request in PHP, you can close them explicitly by calling the _______ function. Your Answer: ____________________________

QUESTÇÃO 3 Consider the following PHP script, which reads a file, line-by-line, from a text file. Which function call should be inserted in place of the question marks in order for the script to function correctly?

QUESTÃO 4 Which of the following techniques will guarantee a lock safe from any race condition?

REFERÊNCIA BIBLIOGRÁFICAS PHP http://www.php.net Zend.PHP.5.Certification.Study.Guide.2006 The_Zend_PHP_Certification_Practice_Test_Book MySQL http://www.mysql.com [acessado em 1 de maio de 2009 as 21Hrs] http://dev.mysql.com [acessado em 1 de maio de 2009 as 20Hrs] http://www.w3schools.com/sql [acessado em 1 de maio de 2009 as 21Hrs]