HTML QUIZ

Descripción

EECS 1012- Test sobre HTML QUIZ, creado por Junaid Khan el 21/10/2017.
Junaid Khan
Test por Junaid Khan, actualizado hace más de 1 año
Junaid Khan
Creado por Junaid Khan hace más de 6 años
217
2

Resumen del Recurso

Pregunta 1

Pregunta
Are the Internet and WWW the same thing?
Respuesta
  • No
  • Yes

Pregunta 2

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

Pregunta 3

Pregunta
Which of the following is correct HTML5 for displaying an image?
Respuesta
  • <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">

Pregunta 4

Pregunta
Which is not a valid IP address format?
Respuesta
  • 56.0.267.34
  • 200.43.33.34
  • 128.0.44.1
  • 1.21.44.129

Pregunta 5

Pregunta
How could you output the following text in HTML?: <p> This is an example of a paragraph tag </p> in HTML
Respuesta
  • <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>

Pregunta 6

Pregunta
Which protocol provides multiplex?
Respuesta
  • Data Layer Protocol
  • Hypertext Transport Protocol
  • Internet Protocol
  • Transmission Control Protocol

Pregunta 7

Pregunta
In HTML, paragraphs start with ... and end with ....
Respuesta
  • 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>

Pregunta 8

Pregunta
Which of the following is true about block and inline elements in HTML?
Respuesta
  • 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.

Pregunta 9

Pregunta
The syntax template for a basic html page will ...
Respuesta
  • 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>

Pregunta 10

Pregunta
meta tags in the header section of a web page
Respuesta
  • 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.

Pregunta 11

Pregunta
Which group is in charge of deciding top-level domain names?
Respuesta
  • Google
  • W3C
  • ICANN
  • IETF

Pregunta 12

Pregunta
What is the correct HTML element for inserting a line break?
Respuesta
  • <break>
  • <paragraph>
  • <p>
  • <h1>
  • <br>

Pregunta 13

Pregunta
Which tag is not associated with tables in HTML?
Respuesta
  • <row>
  • <tr>
  • <table>
  • <th>
  • <td>

Pregunta 14

Pregunta
In HTML comments start with ... and end with ...
Respuesta
  • 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

Pregunta 15

Pregunta
Which of the following is not an HTML element?
Respuesta
  • DOCTYPE
  • body
  • html
  • table
  • img

Pregunta 16

Pregunta
It is important that your web pages follow web standards so that
Respuesta
  • 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.

Pregunta 17

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

Pregunta 18

Pregunta
Which HTML element will not ignore spaces in text content
Respuesta
  • <p>
  • <a>
  • <code>
  • <h1>
  • <pre>

Pregunta 19

Pregunta
In HTML the following heading tags are permitted
Respuesta
  • <heading>, <subheading>, <subsubheading>
  • <h1> through <h6>
  • <h1> through <h9>
  • <head>, <subhead>, <subsubhead>
  • <head>

Pregunta 20

Pregunta
If some text is preceded by <p><em> then it must be proceeded by:
Respuesta
  • </p></em>.
  • any of the above.
  • </em /p>
  • </p em>
  • </em></p>.

Pregunta 21

Pregunta
Which of the following tags starts a bulleted list?
Respuesta
  • <list>
  • <ul>
  • <list type="bulleted">
  • <ol>
  • <bulleted>

Pregunta 22

Pregunta
Every HTML element has a parent element except:
Respuesta
  • <meta>
  • <br />
  • <body>
  • <head>
  • <html>

Pregunta 23

Pregunta
Which of the following tags creates a definition list?
Respuesta
  • <li>
  • <nl>
  • <dl>
  • <ol>
  • <ul>

Pregunta 24

Pregunta
The 'C' in W3C stands for:
Respuesta
  • Consortium
  • Central
  • Corporation
  • Committee
  • Control

Pregunta 25

Pregunta
Which is not a valid URL format?
Respuesta
  • 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

Pregunta 26

Pregunta
Which of the following will cause you to open the link in a new tab or browser window?
Respuesta
  • 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">

Pregunta 27

Pregunta
Which of the following characters is used to indicate the end of a tag?
Respuesta
  • a. *
  • b. ^
  • c. #
  • d. >

Pregunta 28

Pregunta
HTML is intended to ...
Respuesta
  • 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.

Pregunta 29

Pregunta
Which of the following HTML elements defines the title of a document?
Respuesta
  • <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>

Pregunta 30

Pregunta
Which of the following correctly creates a hyperlink?
Respuesta
  • 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>

Pregunta 31

Pregunta
Tags that are not directly displayed on the page are written in the _____ section.
Respuesta
  • <html>
  • <body>
  • <head>
  • <title>

Pregunta 32

Pregunta
The WWW is attributed to which person?
Respuesta
  • a. Tim Cerf
  • b. Bill Gates
  • c. Tim Berners-Lee
  • d. Vincent Cerf

Pregunta 33

Pregunta
Which of the following tags starts a numbered list?
Respuesta
  • a. <list>
  • b. <numbered>
  • c. <ol>
  • d. <ul>

Pregunta 34

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

Pregunta 35

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

Pregunta 36

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

Pregunta 37

Pregunta
The tag <!-- DOCTYPE html --> is interpreted by your browser as ....
Respuesta
  • 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.

Pregunta 38

Pregunta
Which protocol provides multiplex?
Respuesta
  • a. Transmission Control Protocol
  • b. Hypertext Transport Protocol
  • c. Internet Protocol
  • d. Data Layer Protocol

Pregunta 39

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

Pregunta 40

Pregunta
In CSS which property is used to control the background color?
Respuesta
  • a. bgcolor
  • b. colour
  • c. color
  • d. color-background
  • e. background-color

Pregunta 41

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

Pregunta 42

Pregunta
The difference between serif and sans-serif fonts is that
Respuesta
  • 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

Pregunta 43

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

Pregunta 44

Pregunta
In CSS the selector p matches
Respuesta
  • 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

Pregunta 45

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

Pregunta 46

Pregunta
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
Respuesta
  • 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 ; }

Pregunta 47

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

Pregunta 48

Pregunta
In CSS to apply color: red to h1 and h2 you could use the rule(s)
Respuesta
  • 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; }

Pregunta 49

Pregunta
Which of the following is a valid CSS selector ?
Respuesta
  • a. p.color { red; }
  • b. p { color red }
  • c. p color: red;
  • d. p { color: red; }
  • e. p color red

Pregunta 50

Pregunta
It is possible to define CSS in
Respuesta
  • 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

Pregunta 51

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

Pregunta 52

Pregunta
What does CSS stand for?
Respuesta
  • a. CSS does not stand for anything
  • b. Computer Symbol Sheets
  • c. Cascading Style Sheets
  • d. Computer Style Sheets
  • e. Cascading Symbols and Symptoms

Pregunta 53

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

Pregunta 54

Pregunta
In CSS the selector #p matches
Respuesta
  • 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

Pregunta 55

Pregunta
In CSS the selector .par matches
Respuesta
  • 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

Pregunta 56

Pregunta
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: }
Respuesta
  • a. 1
  • b. 8
  • c. 4
  • d. 0

Pregunta 57

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

Pregunta 58

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

Pregunta 59

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

Pregunta 60

Pregunta
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"; }
Respuesta
  • a. found
  • b. not found
  • c. no output
  • d. this will cause an error

Pregunta 61

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

Pregunta 62

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

Pregunta 63

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

Pregunta 64

Pregunta
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:
Respuesta
  • a. Abdo
  • b. Yaoyao
  • c. Bob
  • d. Mike

Pregunta 65

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

Pregunta 66

Pregunta
In PHP file I/O what does the function file_get_contents() do? Select one:
Respuesta
  • 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

Pregunta 67

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

Pregunta 68

Pregunta
What are the results of the following boolean expressions? 1) 5 < 4 2) 10 > 5 3) 5 == 20 Select one:
Respuesta
  • 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

Pregunta 69

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

Pregunta 70

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

Pregunta 71

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

Pregunta 72

Pregunta
In PHP file I/O, file() does what? Select one:
Respuesta
  • 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
Mostrar resumen completo Ocultar resumen completo

Similar

HTML and CSS
Dimitri Herr
HTML and CSS
Samad Raza
Guerra Fría
Eliu Elizondo
ANATOMÍA Y FISIOLOGÍA DE PLACENTA
cinthia_ps25
MAPA DE IDEAS
fumbapirane
Comentario De Texto 1ºBachillerato
Karo Poghosyan
Segunda guerra mundial
Betshy
MAPAS CONCEPTUALES
mario castro
BELLAS ARTES
Benjamin Martinez
Historia del Consejo de Normas Internaciones de Contabilidad
Karime Toledo Estudillo
Relación del sistema nervioso y reproductivo
Anna Sánchez