Frage 1
Frage
Are the Internet and WWW the same thing?
Frage 2
Frage
Which server is used to help determine the IP address of yorku.ca?
Frage 3
Frage
Which of the following is correct HTML5 for displaying an image?
Antworten
-
<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">
Frage 4
Frage
Which is not a valid IP address format?
Antworten
-
56.0.267.34
-
200.43.33.34
-
128.0.44.1
-
1.21.44.129
Frage 5
Frage
How could you output the following text in HTML?: <p> This is an example of a paragraph tag </p> in HTML
Antworten
-
<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> <p> This is an example of an paragraph tag </p> in HTML </p>
-
<p> "<p> This is an example of a paragraph tag </p> in HTML" </p>
Frage 6
Frage
Which protocol provides multiplex?
Frage 7
Frage
In HTML, paragraphs start with ... and end with ....
Antworten
-
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>
Frage 8
Frage
Which of the following is true about block and inline elements in HTML?
Antworten
-
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.
Frage 9
Frage
The syntax template for a basic html page will ...
Antworten
-
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>
Frage 10
Frage
meta tags in the header section of a web page
Antworten
-
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.
Frage 11
Frage
Which group is in charge of deciding top-level domain names?
Frage 12
Frage
What is the correct HTML element for inserting a line break?
Antworten
-
<break>
-
<paragraph>
-
<p>
-
<h1>
-
<br>
Frage 13
Frage
Which tag is not associated with tables in HTML?
Antworten
-
<row>
-
<tr>
-
<table>
-
<th>
-
<td>
Frage 14
Frage
In HTML comments start with ... and end with ...
Antworten
-
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
Frage 15
Frage
Which of the following is not an HTML element?
Antworten
-
DOCTYPE
-
body
-
html
-
table
-
img
Frage 16
Frage
It is important that your web pages follow web standards so that
Antworten
-
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.
Frage 17
Frage
Which of the following HTML tags are classified as empty or void tags? Choose the most complete answer
Frage 18
Frage
Which HTML element will not ignore spaces in text content
Antworten
-
<p>
-
<a>
-
<code>
-
<h1>
-
<pre>
Frage 19
Frage
In HTML the following heading tags are permitted
Antworten
-
<heading>, <subheading>, <subsubheading>
-
<h1> through <h6>
-
<h1> through <h9>
-
<head>, <subhead>, <subsubhead>
-
<head>
Frage 20
Frage
If some text is preceded by <p><em> then it must be proceeded by:
Antworten
-
</p></em>.
-
any of the above.
-
</em /p>
-
</p em>
-
</em></p>.
Frage 21
Frage
Which of the following tags starts a bulleted list?
Antworten
-
<list>
-
<ul>
-
<list type="bulleted">
-
<ol>
-
<bulleted>
Frage 22
Frage
Every HTML element has a parent element except:
Antworten
-
<meta>
-
<br />
-
<body>
-
<head>
-
<html>
Frage 23
Frage
Which of the following tags creates a definition list?
Frage 24
Frage
The 'C' in W3C stands for:
Antworten
-
Consortium
-
Central
-
Corporation
-
Committee
-
Control
Frage 25
Frage
Which is not a valid URL format?
Antworten
-
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
Frage 26
Frage
Which of the following will cause you to open the link in a new tab or browser window?
Antworten
-
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">
Frage 27
Frage
Which of the following characters is used to indicate the end of a tag?
Frage 28
Frage
HTML is intended to ...
Antworten
-
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.
Frage 29
Frage
Which of the following HTML elements defines the title of a document?
Antworten
-
<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>
Frage 30
Frage
Which of the following correctly creates a hyperlink?
Antworten
-
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>
Frage 31
Frage
Tags that are not directly displayed on the page are written
in the _____ section.
Antworten
-
<html>
-
<body>
-
<head>
-
<title>
Frage 32
Frage
The WWW is attributed to which person?
Antworten
-
a. Tim Cerf
-
b. Bill Gates
-
c. Tim Berners-Lee
-
d. Vincent Cerf
Frage 33
Frage
Which of the following tags starts a numbered list?
Antworten
-
a. <list>
-
b. <numbered>
-
c. <ol>
-
d. <ul>
Frage 34
Frage
The syntax of HTML requires that the name and value of an element's attribute be separated by:
Antworten
-
a. a semicolon.
-
b. one or more spaces.
-
c. a comma
-
d. a tab.
-
e. an equal sign
Frage 35
Frage
How would you insert a copyright symbol into a web page?
Frage 36
Frage
Text that is be emphasized should be surrounded with
Frage 37
Frage
The tag <!-- DOCTYPE html --> is interpreted by your browser as ....
Antworten
-
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.
Frage 38
Frage
Which protocol provides multiplex?
Frage 39
Frage
In PHP, what is the output of the following code
$a = 2 + 3 * 5 + 10;
print $a;
Antworten
-
a. 35
-
b. 27
-
c. 23510
-
d. 20
Frage 40
Frage
In CSS which property is used to control the background
color?
Antworten
-
a. bgcolor
-
b. colour
-
c. color
-
d. color-background
-
e. background-color
Frage 41
Frage
In CSS, which property would be used to allow an image to be positioned on the right?
Antworten
-
a. float: right
-
b. align: righ
-
c. overflow: hidden
-
d. clear: right
Frage 42
Frage
The difference between serif and sans-serif fonts is that
Antworten
-
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
Frage 43
Frage
In PHP what is the data type of the variable $c?
$a = 10;
$b = 1.238;
$c = $a * $b;
Antworten
-
a. boolean
-
b. float
-
c. array
-
d. integer
-
e. string
Frage 44
Frage
In CSS the selector p matches
Antworten
-
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
Frage 45
Frage
In CSS a rule has the syntax a { b : c ; }. In this
rule the symbol a is known as a
Antworten
-
a. value
-
b. parameter
-
c. property
-
d. comment
-
e. selector
Frage 46
Frage
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
Antworten
-
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 ; }
Frage 47
Frage
In PHP what is the data type of the variable $c?
$a = "10";
$b = "20";
$c = $a * $b;
Antworten
-
a. float
-
b. string
-
c. integer
-
d. boolean
-
e. array
Frage 48
Frage
In CSS to apply color: red to
h1 and h2 you could use the rule(s)
Antworten
-
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; }
Frage 49
Frage
Which of the following is a valid CSS selector ?
Antworten
-
a. p.color { red; }
-
b. p { color red }
-
c. p color: red;
-
d. p { color: red; }
-
e. p color red
Frage 50
Frage
It is possible to define CSS in
Antworten
-
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
Frage 51
Frage
In PHP what is the value of $a
$s = "Hello World";
$a = $s[7]
Antworten
-
a. "o"
-
b. "W"
-
c. 7
-
d. you will get an error
-
e. "Hello"
Frage 52
Frage
What does CSS stand for?
Antworten
-
a. CSS does not stand for anything
-
b. Computer Symbol Sheets
-
c. Cascading Style Sheets
-
d. Computer Style Sheets
-
e. Cascading Symbols and Symptoms
Frage 53
Frage
In PHP, what would be the output of the following?
$a = 10;
$b = 5;
print '$a*$b';
Select one:
Antworten
-
a. $a*$b
-
b. 50
-
c. you will get an error
-
d. 10*5
Frage 54
Frage
In CSS the selector #p matches
Antworten
-
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
Frage 55
Frage
In CSS the selector .par matches
Antworten
-
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
Frage 56
Frage
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: }
Frage 57
Frage
In PHP, what is the output of the following code
$a = 2;
$a = $a + 2;
$a++;
print $a;
Frage 58
Frage
In CSS which property is used to control the
horizontal alignment of text in an element?
Antworten
-
a. alignment
-
b. align
-
c. center
-
d. center-align
-
e. text-align
Frage 59
Frage
In PHP, what would be the output of the following?
$a = "hello world";
print $a[0];
Antworten
-
a. l
-
b. you will get an error
-
c. h
-
d. hello
Frage 60
Frage
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";
}
Frage 61
Frage
Which line of the following PHP code has an error?
0: $c = rand(1,10);
1: if ( c == 5 )
2: {
3: print " $color ";
4: }
Frage 62
Frage
In PHP, what is the value of the variable $c?
$a = array("red", "green", "yellow");
$b = "hello";
$c = $b . " " . strtoupper($a[1]);
Frage 63
Frage
What variable in PHP is used to access data passed via the URL?
Antworten
-
a. $GET
-
b. $_POST
-
c. $POST
-
d. $_DATA
-
e. $_GET
Frage 64
Frage
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:
Antworten
-
a. Abdo
-
b. Yaoyao
-
c. Bob
-
d. Mike
Frage 65
Frage
In PHP, what is the output of the following code?
$a = "a|b|c|d|e|f|g";
$c = explode("|", $a);
print $c[1];
Antworten
-
a. |
-
b. b
-
c. d
-
e. a|b|c|d|e|f|g
Frage 66
Frage
In PHP file I/O what does the function file_get_contents() do?
Select one:
Antworten
-
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
Frage 67
Frage
What variable in PHP is used to access data passed via the post method in HTML forms?
Antworten
-
$_POST
-
. $_DATA
-
$POST
-
d. $GET
-
e. $_GET
Frage 68
Frage
What are the results of the following boolean expressions?
1) 5 < 4
2) 10 > 5
3) 5 == 20
Select one:
Antworten
-
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
Frage 69
Frage
What is the output of the following PHP code?
$a = "string";
$a = strtoupper($a);
print $a[4];
Antworten
-
a. I
-
b. N
-
c. i
-
d. n
-
e. STRING
Frage 70
Frage
Which file I/O function writes a data to a file in PHP?
Antworten
-
a. file_put_contents()
-
b. file()
-
c. file_write_contents()
-
d. file_get_contents()
-
e. printfile()
Frage 71
Frage
In PHP, what would be the value of the variable $c?
$a = array("red", "green", "blue", "yellow");
$c = count($a);
Select one:
Frage 72
Frage
In PHP file I/O, file() does what?
Select one:
Antworten
-
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