Quiz
ITKG Quiz
This quiz has question types that open in the usual player.
Questions in this quiz (55)
12. In regards to the CSS box model, where is the margin property located? (2%)
- AA. Inside the box
- BB. Outside the box
- CC. inside or outside depending on where you put it in your code
- DD. None of the above
23. Which built-in HTML5 object is used to draw on the canvas? (2%)
- AA. getContext
- BB. getContent
- CC. getGraphics
- DD. getCanvas
34. While working on a JavaScript project, which function would you use to send messages to users
requesting for text input? (2%)- AA. Display()
- BB. Prompt()
- CC. Alert()
- DD. GetInput()
- EE. Confirm()
45. In HTML tables, the number of columns is determined by (2%)
- AA. how many <td> elements are inserted within each row
- BB. the width attribute of the <tr> element
- CC. the <col> element
- DD. none of the above
5. If you'd like visited links to be green, unvisited links to be blue, and links that the mouse is over to
be red, which CSS rules will you use? (2%)- AA. a:visited { color: green }
a:unvisited { color: blue }
a:mouseover { color: red } - BB. a:link { color: blue }
a:visited { color: green }
a:hover { color: red } - CC. a:hover { color: red }
a:visited { color: green }
a:link { color: blue } - DD. a:active { color: green }
a:link { color: blue }
a:hover { color: red }
- AA. a:visited { color: green }
67. Which HTML attribute specifies an alternate text for an image, if the image cannot be displayed?
(2%)- AA. src
- BB. title
- CC. alt
- DD. longdesc
7State an image file format best suited to presenting photographic images on the Web
(2%)- AJPEG
- BPNG
- CGIF
- DPDF
8State an image file format best suited to presenting non-photographic images on the Web
(2%).- AJPG
- BPNG
- CPDF
9This a "well formed" XML document:
<?xml version="1.0" encoding="UTF-8"?>
<book1><isbn>1234567890</isbn><name>XML Master Basic >2006<</name></book1>- ATrue
- BFalse
10 In a hierarchical structure, each page is linked with the pages that follow and precede it in an
ordered chain- ATrue
- BFalse
11In HTML5 <video> element you don’t need to supply values for all attributes, eg. control, loop;
these attributes are on when they are there and off in case they don’t- ATrue
- BFalse
12Pseudo-class selects an element based on a state the element is in
- ATrue
- BFalse
13E. POST requests are never cached
- ATrue
- BFalse
14F. GET requests cannot be bookmarked
- ATrue
- BFalse
15What is the correct HTML for making a text input field?
- A<input type="textfield">
- B<textfield>
- C<input type="text">
- D<textinput type="text">
16How do you display hyperlinks without an underline? (2%)
- Aa {decoration:no-underline;}
- Ba {text-decoration:none;}
- Ca {underline:none;}
- Da {text-decoration:no-underline;}
17How do you display a border like this: (2%)
The top border = 10 pixels
The bottom border = 5 pixels
The left border = 20 pixels
The right border = 1pixel?- Aborder-width:10px 1px 5px 20px;
- Bborder-width:5px 20px 10px 1px;
- Cborder-width:10px 20px 5px 1px;
- Dborder-width:10px 5px 20px 1px;
18What is the correct JavaScript syntax to change the content of the HTML element below?
<p id="demo">This is a demonstration.</p>- Adocument.getElementById("demo").innerHTML = "Hello World!"
- B#demo.innerHTML = "Hello World!";
- Cdocument.getElement("p").innerHTML = "Hello World!";
- Ddocument.getElementByName("p").innerHTML = "Hello World!";
19If you wanted to round the corners of a block element, which style property would you
apply?- Aborder:
- Bborder-arc:
- Cborder-deg:
- Dborder-radius:
20Consider the table shown below. Which line of code would create the last row of the table?
- A<tr><td></td><td rowspan=”2”></td></tr>
- B<tr><td colspan=”2”></td><td rowspan=”2”></td></tr>
- C<tr><td rowspan=”2”></td></tr>
- D<tr><td colspan=”2”></td></tr>
21How many alert boxes will the following loop produce?
for ( var Index = 0; Index <= 2; ++Index )
alert( Index );- A0
- B1
- C2
- D3
22Which of the following is the code for accessing the contents of an input box named userData
on a form?- Adocument.forms[0].userData
- Bdocument.forms[0].userData.value
- Cdocument.forms[0].userData.contents
- Ddocument.forms[0].userData.data
23Given a file structure in the figure below, if you are working on the source code of
index.html, which of the following is the correct relative URL for lecture1.html?
/images/user.jpeg
folder /lectures/lecture
/index.html- Alecture1.html
- Blectures/lecture1.html
- C../lectures/lecture1.html
- D./lecture1.html
24The syntax for adding a textfield of 3 rows, each of width 40 is:
- A<textfield rowspan=”3” colspan=”40”>blah blah</textfield>
- B<textfield rows=”3” width=”40”>blah blah</text>
- C<text row=”3” width=”40”>blah blah</text>
- D<textarea rows=”3” cols=”40”>blah blah</textarea>
25This is a valid JSON.
{
"id": 1,
"name": "A green door",
"price": 12.50,
"tags": ["home", "green"]
}- ATrue
- BFalse
26 In an HTML form, the method attribute is used to specify the script file that processes the
form data- ATrue
- BFalse
27Domain Name Servers map symbolic computer names to their host names
- ATrue
- BFalse
28XML elements cannot be empty
- ATrue
- BFalse
29What is the output when you run the following programs: . . .(0.5% each – 4%)
var i = 25;
var j = “25”;
var k = 2 + “5”;
var l = “2” + “5”;
(a) document.write (i == j);- ATrue
- BFalse
30What is the output when you run the following programs: . . .(0.5% each – 4%)
var i = 25;
var j = “25”;
var k = 2 + “5”;
var l = “2” + “5”;
document.write (i === j);- ATrue
- BFalse
31What is the output when you run the following programs: . . .(0.5% each – 4%)
var i = 25;
var j = “25”;
var k = 2 + “5”;
var l = “2” + “5”;
document.write (j == k);- ATrue
- BFalse
32What is the output when you run the following programs: . . .(0.5% each – 4%)
var i = 25;
var j = “25”;
var k = 2 + “5”;
var l = “2” + “5”;
(d) document.write (j === k);- ATrue
- BFalse
33What is the output when you run the following programs: . . .(0.5% each – 4%)
var i = 25;
var j = “25”;
var k = 2 + “5”;
var l = “2” + “5”;
document.write (i == k);- ATrue
- BFalse
34What is the output when you run the following programs: . . .(0.5% each – 4%)
var i = 25;
var j = “25”;
var k = 2 + “5”;
var l = “2” + “5”;
document.write (i === k);- ATrue
- BFalse
35What is the output when you run the following programs: . . .(0.5% each – 4%)
var i = 25;
var j = “25”;
var k = 2 + “5”;
var l = “2” + “5”;
document.write (k == l);- ATrue
- BFalse
36What is the output when you run the following programs: . . .(0.5% each – 4%)
var i = 25;
var j = “25”;
var k = 2 + “5”;
var l = “2” + “5”;
document.write (k === l);- ATrue
- BFalse
37The purpose of [blank_start]Transport Layer TCP[blank_end] is to ensure the integrity of network
communication.- ATransport Layer TCP
38[blank_start]Dynamic[blank_end] routing is a technique to select the best route according to the
network conditions at the time of transmission- ADynamic
39What is the required attribute of the <video> element in HTML5, when the video is in a
single format? [blank_start]src[blank_end]- Asrc
40Consider the following JavaScript statement:
var myLinks =getElementsByTagName (“a”);
What is the data type of the result? [blank_start]an array[blank_end]- Aan array
41f you want to control which element sits on the top (when elements overlap) you use the [blank_start]z-index[blank_end] property
- Az-index
42The [blank_start]content[blank_end] part of the box (box model), is where text and images appear.
- Acontent
43Select all valid XML tag names
- A<_Element1>
- B<1Tag>
- C<My.Element>
- D<#Elem&ent>
- E<My-Element_Name]
- F<XmL>
44Gif
- Alossy
- Blossless
- CTransparent
- DAnimation
- EColors: millions
- FCollors: hundreds
45JPEG
- ALossy
- Blossless
- CTransparency
- DAnimation
- EColors: hundreds
- FColors: millions
46PNG
- ALossy
- BLossless
- CTransparency
- DAnimation
- EColors: millions
- FColors: hundreds
47Write the appropriate position property value for each of the following description:
This is the default setting – no special positioning- Astatic
- Babsolute
- Crelative
- Dfixed
48Write the appropriate position property value for each of the following description:
The box is taken out of normal flow and no longer affects the position of
the other elements.- Astatic
- Babsolute
- Crelative
- Dfixed
49Write the appropriate position property value for each of the following description:
This property value moves an element in relation to where it would have
been in normal flow.- Astatic
- Babsolute
- Crelative
- Dfixed
50Write the appropriate position property value for each of the following description:
Configures the location of an element within the browser viewpoint – i.e.
the element doesn’t change position if scrolling content- Afixed
- Brelative
- Cabsolute
- Dstatic
51Briefly state TWO advantages of vector images over bitmapped images for displaying
images on the Web- ANot scalalable
- BEditable
- CNot editable
- DScalable
52very briefly state the purpose of this css rule: Selector

- Aidentifies the HTML tag to be styled
- Bencapsulates Properties/values pairs
- Cidentifies the style attribute to be styled
- Dspecifies the value to set the Property to
53very briefly state the purpose of this css rule: Declaration

- Aidentifies the HTML tag to be styled
- Bencapsulates Properties/values pairs
- Cidentifies the style attribute to be styled
- Dspecifies the value to set the Property to
54very briefly state the purpose of this css rule: Property

- Aidentifies the HTML tag to be styled
- Bencapsulates Properties/values pairs
- Cidentifies the style attribute to be styled
- Dspecifies the value to set the Property to
55very briefly state the purpose of this css rule: Value

- Aspecifies the value to set the Property to
- Bidentifies the style attribute to be styled
- Cencapsulates Properties/values pairs
- Didentifies the HTML tag to be styled
Information
- Description
- Information Technology Quiz on ITKG Quiz, created by Kjetil Odden on 06/12/2021.
- Author
- Kjetil Odden
- Language
- English
- Views
- 5
- History
- Created on 6 Dec 2021 · updated on 13 Dec 2021
- Tags
- Rating
- No ratings yet Rate this quiz