HTML QUIZ

Descrição

EECS 1012- Quiz sobre HTML QUIZ, criado por Junaid Khan em 21-10-2017.
Junaid Khan
Quiz por Junaid Khan, atualizado more than 1 year ago
Junaid Khan
Criado por Junaid Khan mais de 6 anos atrás
217
2

Resumo de Recurso

Questão 1

Questão
Are the Internet and WWW the same thing?
Responda
  • No
  • Yes

Questão 2

Questão
Which server is used to help determine the IP address of yorku.ca?
Responda
  • Domain Name Server
  • Apache Web Server
  • Google Server
  • Microsoft Internet Information Server (IIS)

Questão 3

Questão
Which of the following is correct HTML5 for displaying an image?
Responda
  • <img src="image.gif">
  • <img src="image.gif" alt="an image">
  • <image alt="image.gif">
  • <image src="image.gif" alt="an image">
  • <img file="image gif" alt="an image">

Questão 4

Questão
Which is not a valid IP address format?
Responda
  • 56.0.267.34
  • 200.43.33.34
  • 128.0.44.1
  • 1.21.44.129

Questão 5

Questão
How could you output the following text in HTML?: <p> This is an example of a paragraph tag </p> in HTML
Responda
  • <p> \<p\> his is an example of a paragraph tag \</p\>" in HTML </p>
  • <p> <<p>> his is an example of a paragraph tag <<\p>> in HTML </p>
  • <p> &lt;p&gt; This is an example of an paragraph tag &lt;/p&gt; in HTML </p>
  • <p> "<p> This is an example of a paragraph tag </p> in HTML" </p>

Questão 6

Questão
Which protocol provides multiplex?
Responda
  • Data Layer Protocol
  • Hypertext Transport Protocol
  • Internet Protocol
  • Transmission Control Protocol

Questão 7

Questão
In HTML, paragraphs start with ... and end with ....
Responda
  • start with <br> and end with </br>
  • start with <p> and end with </p>
  • start with <p> and end with <li>
  • start with <center> and end with </p>
  • start with <p> and end with <ol>

Questão 8

Questão
Which of the following is true about block and inline elements in HTML?
Responda
  • Block elements represent blocks of text. All other entries are in-line elements.
  • Block elements, nested elements, and inline elements must all be contained within meta elements.
  • Block elements generally represent a relatively large portion of a page and may contain other tags within it. Inline elements generally represent smaller portions of a page and are contained within a block element.
  • . Block elements generally represent a relatively large poriton of a page, but cannot contain other elements wihtin them. Inline elements generally represent smaller portions of a page and are contained within nesting elements.
  • Block elements are the building blocks of html documents and must be contained within inline elements.

Questão 9

Questão
The syntax template for a basic html page will ...
Responda
  • Surround the page with <head> ... </head> tags.
  • Use <head> ... </head> tags to identify the author of the page.
  • Surround the page with <html> ... </html> tags.
  • Properly indent material within the page so that it is readable.
  • Begin with <html> and end with </body>

Questão 10

Questão
meta tags in the header section of a web page
Responda
  • support global name search and replace.
  • enable the server to transmit your page more efficiently
  • enable the browser to render your page more efficiently.
  • supports caching that otherwise would not be possible.
  • provide valuable information to search engines and browsers about the structure and content of your document.

Questão 11

Questão
Which group is in charge of deciding top-level domain names?
Responda
  • Google
  • W3C
  • ICANN
  • IETF

Questão 12

Questão
What is the correct HTML element for inserting a line break?
Responda
  • <break>
  • <paragraph>
  • <p>
  • <h1>
  • <br>

Questão 13

Questão
Which tag is not associated with tables in HTML?
Responda
  • <row>
  • <tr>
  • <table>
  • <th>
  • <td>

Questão 14

Questão
In HTML comments start with ... and end with ...
Responda
  • they start with /* and end with */
  • they start with /** and end with **/
  • they start with <!-- and end with -->
  • they start with <comment> and end with </comment>
  • they start with // and end with a carriage return

Questão 15

Questão
Which of the following is not an HTML element?
Responda
  • DOCTYPE
  • body
  • html
  • table
  • img

Questão 16

Questão
It is important that your web pages follow web standards so that
Responda
  • they will render properly over a range of different browsers and devices.
  • they will be approved by Google.
  • they will be more efficient to compress and transfer across the web.

Questão 17

Questão
Which of the following HTML tags are classified as empty or void tags? Choose the most complete answer
Responda
  • <hr>, <br> and <p>
  • <hr>, <br> and <img>
  • <hr>
  • No HTML tags are allowed to be empty or void.
  • <br> and <p>

Questão 18

Questão
Which HTML element will not ignore spaces in text content
Responda
  • <p>
  • <a>
  • <code>
  • <h1>
  • <pre>

Questão 19

Questão
In HTML the following heading tags are permitted
Responda
  • <heading>, <subheading>, <subsubheading>
  • <h1> through <h6>
  • <h1> through <h9>
  • <head>, <subhead>, <subsubhead>
  • <head>

Questão 20

Questão
If some text is preceded by <p><em> then it must be proceeded by:
Responda
  • </p></em>.
  • any of the above.
  • </em /p>
  • </p em>
  • </em></p>.

Questão 21

Questão
Which of the following tags starts a bulleted list?
Responda
  • <list>
  • <ul>
  • <list type="bulleted">
  • <ol>
  • <bulleted>

Questão 22

Questão
Every HTML element has a parent element except:
Responda
  • <meta>
  • <br />
  • <body>
  • <head>
  • <html>

Questão 23

Questão
Which of the following tags creates a definition list?
Responda
  • <li>
  • <nl>
  • <dl>
  • <ol>
  • <ul>

Questão 24

Questão
The 'C' in W3C stands for:
Responda
  • Consortium
  • Central
  • Corporation
  • Committee
  • Control

Questão 25

Questão
Which is not a valid URL format?
Responda
  • a. http://130.63.236.137/index.html
  • b. http://yorku.ca:80
  • 1Wh8RzcQZr4
  • d. http://www.youtube.com/watch?v
  • e. http://yorku.ca/
  • f. http://www.textpad.com/download/index.html

Questão 26

Questão
Which of the following will cause you to open the link in a new tab or browser window?
Responda
  • a. <a href="http:www.cse.yorku.ca" target="_top">
  • b. <a href="http:www.cse.yorku.ca" target="/">
  • c. <a href="http:www.cse.yorku.ca" target="new">
  • d. <a href="http:www.cse.yorku.ca" target="_blank">
  • e. <a href="http:www.cse.yorku.ca" target="_new">

Questão 27

Questão
Which of the following characters is used to indicate the end of a tag?
Responda
  • a. *
  • b. ^
  • c. #
  • d. >

Questão 28

Questão
HTML is intended to ...
Responda
  • provide structure and content to a document but not specify its appearance
  • provide neither appearance nor structure to a document.
  • provide an efficient represntation to download material from the web.
  • provide the appearance of a document but not specify its structure.
  • provide both appearance and structure to a document.

Questão 29

Questão
Which of the following HTML elements defines the title of a document?
Responda
  • <title text="This is a title">
  • <title>This is a title</title>
  • <meta>This is a title</meta>
  • <html>This is a title</html>
  • <head>This is a title</head>

Questão 30

Questão
Which of the following correctly creates a hyperlink?
Responda
  • a. <a "http:www.yorku.ca">EECS</a>
  • <a name="http:www.yorku.ca">EECS</a>
  • <a link="http:www.yorku.ca">EECS</a>
  • <a url="http:www.yorku.ca">EECS</a>
  • <a href="http:www.yorku.ca">EECS</a>

Questão 31

Questão
Tags that are not directly displayed on the page are written in the _____ section.
Responda
  • <html>
  • <body>
  • <head>
  • <title>

Questão 32

Questão
The WWW is attributed to which person?
Responda
  • a. Tim Cerf
  • b. Bill Gates
  • c. Tim Berners-Lee
  • d. Vincent Cerf

Questão 33

Questão
Which of the following tags starts a numbered list?
Responda
  • a. <list>
  • b. <numbered>
  • c. <ol>
  • d. <ul>

Questão 34

Questão
The syntax of HTML requires that the name and value of an element's attribute be separated by:
Responda
  • a. a semicolon.
  • b. one or more spaces.
  • c. a comma
  • d. a tab.
  • e. an equal sign

Questão 35

Questão
How would you insert a copyright symbol into a web page?
Responda
  • a. &copy;
  • b. <copyright />
  • c. <copyright>
  • d. <sym tag="copyright" />
  • e. <symbol tag="copyright" />

Questão 36

Questão
Text that is be emphasized should be surrounded with
Responda
  • a. <emphasize> and </emphasize>
  • b. <i> and </i>
  • c. <b> and </b>
  • d. <font size="large"> and </font>
  • e. <em> and </em>

Questão 37

Questão
The tag <!-- DOCTYPE html --> is interpreted by your browser as ....
Responda
  • a. this page is written using HTML syntax.
  • b. this is a comment, the browser ignores it.
  • c. this page has an associated CSS.
  • d. this page was intentionally left blank.
  • e. this page is written using a word processor.

Questão 38

Questão
Which protocol provides multiplex?
Responda
  • a. Transmission Control Protocol
  • b. Hypertext Transport Protocol
  • c. Internet Protocol
  • d. Data Layer Protocol

Questão 39

Questão
In PHP, what is the output of the following code $a = 2 + 3 * 5 + 10; print $a;
Responda
  • a. 35
  • b. 27
  • c. 23510
  • d. 20

Questão 40

Questão
In CSS which property is used to control the background color?
Responda
  • a. bgcolor
  • b. colour
  • c. color
  • d. color-background
  • e. background-color

Questão 41

Questão
In CSS, which property would be used to allow an image to be positioned on the right?
Responda
  • a. float: right
  • b. align: righ
  • c. overflow: hidden
  • d. clear: right

Questão 42

Questão
The difference between serif and sans-serif fonts is that
Responda
  • a. serif fonts have small lines at the end of some characters while sans-serif do not
  • b. serif fonts are monospaced while sans-serif have variable width
  • c. sans-serif fonts are monospaced while serif have variable width
  • d. sans-serif fonts can be used without paying a royalty, while a royalty must be paid for serif fonts
  • e. sans-serif fonts have small lines at the end of some characters while serif do not

Questão 43

Questão
In PHP what is the data type of the variable $c? $a = 10; $b = 1.238; $c = $a * $b;
Responda
  • a. boolean
  • b. float
  • c. array
  • d. integer
  • e. string

Questão 44

Questão
In CSS the selector p matches
Responda
  • a. all <p> elements whose class is p
  • b. all <p> elements whose id is p
  • c. all elements whose class is p
  • d. all <p> elements
  • e. all elements whose id is p

Questão 45

Questão
In CSS a rule has the syntax a { b : c ; }. In this rule the symbol a is known as a
Responda
  • a. value
  • b. parameter
  • c. property
  • d. comment
  • e. selector

Questão 46

Questão
CSS enables links to be styled differently depending on what state they are in. To set the hover colour for a link to be white, one would code a CSS rule
Responda
  • a. a { hover-color : white ;}
  • b. a { color : white ; hover-dwell : true ;}
  • c. a { color : white ; hover : true ;}
  • d. a:hover { color : white ; }
  • e. a:link { color : white ; }

Questão 47

Questão
In PHP what is the data type of the variable $c? $a = "10"; $b = "20"; $c = $a * $b;
Responda
  • a. float
  • b. string
  • c. integer
  • d. boolean
  • e. array

Questão 48

Questão
In CSS to apply color: red to h1 and h2 you could use the rule(s)
Responda
  • a. h1.h2 { color : red; }
  • b. h1:h2 { color : red; }
  • c. h1 { red : color; } h2 { red : color; }
  • d. h1 { color : red; } h2 { color : blue; }
  • e. h1, h2 { color : red; }

Questão 49

Questão
Which of the following is a valid CSS selector ?
Responda
  • a. p.color { red; }
  • b. p { color red }
  • c. p color: red;
  • d. p { color: red; }
  • e. p color red

Questão 50

Questão
It is possible to define CSS in
Responda
  • a. only in internal style sheets
  • b. external style sheets, internal style sheets, and inline
  • c. only in external style sheets
  • d. only inline
  • e. only in external style sheets and internal style sheets

Questão 51

Questão
In PHP what is the value of $a $s = "Hello World"; $a = $s[7]
Responda
  • a. "o"
  • b. "W"
  • c. 7
  • d. you will get an error
  • e. "Hello"

Questão 52

Questão
What does CSS stand for?
Responda
  • a. CSS does not stand for anything
  • b. Computer Symbol Sheets
  • c. Cascading Style Sheets
  • d. Computer Style Sheets
  • e. Cascading Symbols and Symptoms

Questão 53

Questão
In PHP, what would be the output of the following? $a = 10; $b = 5; print '$a*$b'; Select one:
Responda
  • a. $a*$b
  • b. 50
  • c. you will get an error
  • d. 10*5

Questão 54

Questão
In CSS the selector #p matches
Responda
  • a. all <p> elements
  • b. all <p> elements whose id is p
  • c. all elements whose id is p
  • d. all elements whose class is p
  • e. all <p> elements whose class is p

Questão 55

Questão
In CSS the selector .par matches
Responda
  • a. all <p> elements whose id is par
  • b. all <p> elements whose class is par
  • c. all elements whose class is par
  • d. all elements whose id is par
  • e. all <p> elements

Questão 56

Questão
The following PHP code has an error. What line is this error on? 0: $a = 10 + 1; 1: $b = "10" 2: if ($a <> $b) 3: { 4: print "Not equal"; 5: } 6: else 7: { 8: $b++; 9: }
Responda
  • a. 1
  • b. 8
  • c. 4
  • d. 0

Questão 57

Questão
In PHP, what is the output of the following code $a = 2; $a = $a + 2; $a++; print $a;
Responda
  • a. 8
  • b. 5
  • c. 4
  • d. 2
  • e. 6

Questão 58

Questão
In CSS which property is used to control the horizontal alignment of text in an element?
Responda
  • a. alignment
  • b. align
  • c. center
  • d. center-align
  • e. text-align

Questão 59

Questão
In PHP, what would be the output of the following? $a = "hello world"; print $a[0];
Responda
  • a. l
  • b. you will get an error
  • c. h
  • d. hello

Questão 60

Questão
In PHP, what is the output of the following code? $a = array("Abdel", "Didi", "Justin", "Trump"); if (in_array("Ford", $a)) { print "found"; } else { print "not found"; }
Responda
  • a. found
  • b. not found
  • c. no output
  • d. this will cause an error

Questão 61

Questão
Which line of the following PHP code has an error? 0: $c = rand(1,10); 1: if ( c == 5 ) 2: { 3: print " $color "; 4: }
Responda
  • a. 1
  • b. 2
  • c. 4
  • d. 0
  • e. 3

Questão 62

Questão
In PHP, what is the value of the variable $c? $a = array("red", "green", "yellow"); $b = "hello"; $c = $b . " " . strtoupper($a[1]);
Responda
  • a. hello RED
  • b. hello RED GREEN YELLOW
  • c. HELLO RED
  • d. hello GREEN
  • e. HELLO GREEN

Questão 63

Questão
What variable in PHP is used to access data passed via the URL?
Responda
  • a. $GET
  • b. $_POST
  • c. $POST
  • d. $_DATA
  • e. $_GET

Questão 64

Questão
In PHP, what would be the output of the following? $nickname = array("Robert" => "Bob", "Michael" => "Mike", "Abdelraham" => "Abdo", "Yaoling" => "Yaoyoa"); print $nickname["Robert"]; Select one:
Responda
  • a. Abdo
  • b. Yaoyao
  • c. Bob
  • d. Mike

Questão 65

Questão
In PHP, what is the output of the following code? $a = "a|b|c|d|e|f|g"; $c = explode("|", $a); print $c[1];
Responda
  • a. |
  • b. b
  • c. d
  • e. a|b|c|d|e|f|g

Questão 66

Questão
In PHP file I/O what does the function file_get_contents() do? Select one:
Responda
  • a. returns a single string with the entire contents of the file
  • b. writes data to a file
  • c. checks to see if a file exists
  • d. returns an array of strings where each string is a line in the file

Questão 67

Questão
What variable in PHP is used to access data passed via the post method in HTML forms?
Responda
  • $_POST
  • . $_DATA
  • $POST
  • d. $GET
  • e. $_GET

Questão 68

Questão
What are the results of the following boolean expressions? 1) 5 < 4 2) 10 > 5 3) 5 == 20 Select one:
Responda
  • a. 1) false, 2) true, 3) false
  • b. 1) true , 2) true, 3) true
  • c. 1) true, 2) false, 3) false
  • d. 1) false, 2) false, 3) false

Questão 69

Questão
What is the output of the following PHP code? $a = "string"; $a = strtoupper($a); print $a[4];
Responda
  • a. I
  • b. N
  • c. i
  • d. n
  • e. STRING

Questão 70

Questão
Which file I/O function writes a data to a file in PHP?
Responda
  • a. file_put_contents()
  • b. file()
  • c. file_write_contents()
  • d. file_get_contents()
  • e. printfile()

Questão 71

Questão
In PHP, what would be the value of the variable $c? $a = array("red", "green", "blue", "yellow"); $c = count($a); Select one:
Responda
  • a. 5
  • b. 4
  • c. yellow
  • d. 3

Questão 72

Questão
In PHP file I/O, file() does what? Select one:
Responda
  • a. returns an array of strings where each string is a line in the file
  • b. returns a single string with the entire contents of the file
  • c. writes data to a file
  • d. checks to see if a file exists

Semelhante

HTML and CSS
Dimitri Herr
HTML and CSS
Samad Raza
Artigo Científico elaboração
Candido Gabriel
Abordagens Psicológicas
Alda Bezerra
Matemática Básica
Alessandra S.
Interpretação de Texto
Renata Luana
Função Polinomial do 1º Grau
KauanM
Química Orgânica (Part. I)
lorena dorea
Comunicação Social para Concurseiros
Ricardo Olimpio
Quinhentismo
Isadora Borges
PLANEJAMENTO DE LÍNGUA PORTUGUESA 2017 - 1ª ETAPA
Adriana Marcia Couto Poletti