Download as pdf or txt
Download as pdf or txt
You are on page 1of 11

GHANA COMMUNICATION TECHNOLOGY UNIVERSITY

INFORMATION TECHNOLOGY DEPARTMENT

NAME: BUDUUG JOSHUA YIN-NOGBA


INDEX NO. : 1701771381
PROGRAMME: BSc INFORMATION TECHNOLOGY (TOP-UP)
LEVEL: 300
COURSE : INTERNET TECHNOLOGIES AND WEB DESIGN

ASSIGNMENT 1
Objective Questions for Introduction to CSS

1. What is the default value of the position property?


a. relative
b. absolute
c. fixed
d. static

ans. d. static
2. Which CSS property controls the text size?
a. text-size
b. font-style
c. font-size
d. text-style

ans. c. font-size

3. Which HTML attribute is used to define inline styles?


a. class
b. style
c. style line
d. font

b. style

4. What does CSS stand for?


a. Computer Style Sheets
b. Cascading Style Scripts
c. Cascading Style Sheets
d. Colorful Style Sheets

a. Computer Style Sheets

5. What is the purpose of the align-content property in CSS?


a. It modifies the behaviour of the flex-wrap property, aligning flex lines
b. It Indicates direction of animation
c. It specifies the default alignment for items inside a flexible container
d. It indicates the speed curve of an animation

a. It modifies the behaviour of the flex-wrap property, aligning flex lines


6. Which CSS property is used to change the space between
characters?
a. character-spacing
b. letter-spacing
c. text-spacing
d. font-spacing

b. letter-spacing

7. Which CSS property is used to change the text color of an


element?
a. text-color
b. font-color
c. color
d. text-style

c. color

8. How do you add a background color in CSS?


a. background
b. background-color
c. bg-color
d. color

b. background-color

9. Which of the following codes allow you to insert a comment in a CSS file?
a. // comment
b. /* comment*/
c. -- comment –
d. # comment*

b. /* comment*/

10. A rule set in CSS involves a selector and a declaration block.


a. True
b. False
a. True
Objective Questions for HTML
1. Which HTML tag defines an image?
a. <img>
b. <picture>
c. <graphic>
d. <photo>

a. <img>

2.What does HTML stand for?


a. HyperText Markup Language
b. HyperText Makeup Language
c. HyperTech Markup Language
d. HyperTrack Markup Language
a. HyperText Markup Language

3. You do not need to close the title tag in HTML. <title> alone
works.
a. True
b. False

b. False

4. To create an ordered list in HTML, use ___ tag.


a.<ul>
b.<ol>
c.\<li>
d.<dl>

b.<ol>

5. What does the <b> tag do in HTML?


a. It breaks the line
b. It makes text bold
c. It inserts a background

d. It begins a new paragraph


6. The <ul> tag represents __ in HTML?
Ordered list
Organized list
\Unordered list
Scrambled list

c. Unordered list

7. You do not need to close the title tag in HTML. <title> alone
works.
a. True
b. False

d. False

8. Which HTML tag is used to define an image?


a. <img>
b. <image>
c. <pic>
d. <photo>

b.<image>

9. hyperlink in HTML?
a. <link>
b. <a>
c. <href>
d. <url>

c.<href>

10. The purpose of the <title> tag in HTML is to ____


create a large heading
define the title of the document
add a comment in the code
insert an image
define the title of the document

Objective Questions for JavaScript


1. Which of the following is a JavaScript data type?
a. integer
b. character
c. number
d. float

e. number

2. Is JavaScript the same as Java?


a. True
b. False

False

3. JavaScript uses the ____ character set.


a. Java
b. JavaScript
c. Unicode
d. Programming

c. Unicode

4. JavaScript can be added to a webpage by putting it into separate


<script> elements in the HTML code.
a. True
b. False
a. True

5. How do you create a function in JavaScript?


a. function myFunction()
b. function = myFunction()
c. function:myFunction()
d.function::myFunction()

a. function myFunction()

6. JavaScript can be added to a webpage by including it within an


individual HTML event attribute
a. True
b. False

a. True

7. The document.write method is used in JavaScript to write content


directly to the web page
a. True
b. False

a. True

8. How do you write an IF statement in JavaScript?


a. if i = 5 then
b. if i == 5 then
c. if (i == 5)
d. if i = 5

c. if (i == 5)

9. What is the function of the “break” statement in JavaScript?


a. It exits a switch or loop
b. It declares a constant
c. It declares a function
d. It stops execution of a function and returns a value from that
function

a. It exits a switch or loop

10. How do you write a comment in JavaScript? a. <!-- this is


a comment -->
b. # this is a comment
c. // this is a comment
d. /* this is a comment */

a. <!-- this is a comment -->

Objective Questions for Introduction to The internet


1. What is the primary purpose of the Internet?
a. Entertainment
b. Communication
c. Education
d. None of the above

b. Communication

2. Which protocol is used to transfer web pages on the Internet?


a. FTP
b. HTTP
c. SMTP
d. TCP

b. HTTP

3. What is an IP address?
a. A type of Internet service provider
b. A unique identifier for a computer on a network
c. A protocol for email communication
d. None of the above

b. A unique identifier for a computer on a network

4. Who is credited with inventing the World Wide Web?


a. Bill Gates
b. Steve Jobs
c. Tim Berners-Lee
d. Larry Page

c. Tim Berners-Lee

5. What does URL stand for? a. Universal Resource Locator


b. Uniform Resource Locator
c. Uniform Retrieval Locator
d. Universal Retrieval Locator

b. Uniform Resource Locator

6. A URL is divided into _ parts.


a. 4
b. 2
c. 3
d. 6

a. 4

7. Internet Protocol is a method by which data is sent from one


computer to another over the ___
a. Mailing Lists
b. File Transfer Protocol
c. \Server name
d. Network

d. Network
8. The parts of a URL include all the following except
a. Directory path
b. Server protocol
c. Transfer protocol
d. File name

b. Server protocol

9. The World Wide Web is a series of clients that are


interconnected through hypertext.
a. True
b. False

b. False

10. The World Wide Web is a series of __ that are interconnected


through _____
a. editors, hypertext
b. information mesh, networks
c. hypertext, networks
d. servers, hypertext

d. servers, hypertext

You might also like