Sunteți pe pagina 1din 17

<P STYLE="text-transform:uppercase; color:red"> is an example of:

A) internal style

B) external style

C) local style

D) none of the above

2. Which of these tags could you use to achieve the same effect as SPAN.largered
{color:red; font-size:20pt}?

A) <STYLE>

B) <FONT>

C) <FONT-COLOR>

D) <TEXT>

3. Which of these is a block-level container?

A) <SPAN>

B) <DIV>

C) <B>

D) b and c

4. In order to use the styles contained in this external style sheet (the .css document), we
add which of the following tag to the <HEAD> container of an HTML source document?

A) <LINK>

B) <CSS>

C) <ESS>
D) <EXT>

5. Which of the following represent numbers in the hexadecimal system?

A) F

B) A

C) P

D) a and b

6.Which attribute you’ll use with TD tag to merge two cells horizontally?
a. merge=colspan2
b. rowspan=2
c. colspan=2
d. merge=row2

7. A webpage displays a picture. What tag was used to display that picture?
a. picture
b. mage
c. img
d. src
8. <b> tag makes the enclosed text bold. What is other tag to make text bold?
a. <strong>
b. <dar>
c. <black>
d. <emp>
9. Tags and test that are not directly displayed on the page are written in _____
section.
a. <html>
b. <head>
c. <title>
d. <body>
10. Which tag inserts a line horizontally on your web page?
a. <hr>
b. <line>
c. <line direction=”horizontal”>
d. <tr>
11. What should be the first tag in any HTML document?
a. <head>
b. <title>
c. <html>
d. <document>
12. Which tag allows you to add a row in a table?
a. <td> and </td>
b. <cr> and </cr>
c. <th> and </th>
d. <tr> and </tr>
13. How can you make a bulleted list?
a. <list>
b. <nl>
c. <ul>
d. <ol>
14. How can you make a numbered list?
a. <dl>
b. <ol>
c. <list>
d. <ul>
15. How can you make an e-mail link?
a. <a href=”xxx@yyy”>
b. <mail href=”xxx@yyy”>
c. <mail>xxx@yyy</mail>
d. <a href=”mailto:xxx@yyy”>
16. “Yahoo”, “Infoseek” and “Lycos” are _________?
a. Search Engines
b. Browsers
c. News groups
d. None of the above
17. What does the .com domain represents?
a. Education domain
b. Commercial domain
c. Network
d. None of the above
18. In Satellite based communication, VSAT stands for?
a. Very Small Aperture Terminal
b. Varying Size Aperture Terminal
c. Very Small Analog Terminal
d. None of the above
19. Outlook Express is a _________
a. E-Mail Client
b. Browser
c. Search Engine
d. None of the above
20. <TITLE> … </TITLE> tag must be within ________
a. Title
b. Form
c. Header
d. Body
21. Text within <EM> … </EM> tag is displayed as ________
a. bold
b. italic
c. list
d. indented
22. Text within <STRONG> … </STRONG> tag is displayed as ________
a. bold
b. italic
c. list
d. indented
23. <UL> … </UL> tag is used to ________
a. display the numbered list
b. underline the text
c. display the bulleted list
d. bold the text
24. Output of XML document can be viewed in a
a. Word Processor
b. Web browser
c. Notepad
d. None of the above

25. Inside which HTML element do we put the JavaScript? Client-side


A) <javascript>
B) <scripting>
C) <script>
D) <js>
26. What is the correct JavaScript syntax to write "Hello World"?
A) ("Hello World")
B) response.write("Hello World")
C) document.write("Hello World")
D) "Hello World"

27. Where is the correct place to insert a JavaScript?


A) The <head> section
B) The <body> section
C) Both the <head> section and the <body> section are correct
D) None of this

28. What is the correct syntax for referring to an external script called "xxx.js"?
A) <script type="text/javascript" name="xxx.js">
B) <script type="text/javascript" href="xxx.js">
C) <script type="text/javascript" src="xxx.js">

29. The external JavaScript file must contain the <script> tag
A) True
B) False

30. How do you write "Hello World" in an alert box?


A) alert("Hello World")
B) alertBox="Hello World"
C) msgBox("Hello World")
D) alertBox("Hello World")

31. How do you create a function?


A) function:myFunction()
B) function myFunction()
C) function=myFunction()
D) None of this

32. How do you call a function named "myFunction" in javascript?


A) call function myFunction
B) call function()
C) call myFunction()
D) myFunction()
33. What do I need to get onto the Internet?
A) Computer
B) Modem
C) Browser
D) All of the above
34. What is an ISP?
A) nternet System Protocol
B) nternal System Program
C) Internet Service Provider
D) None of the above
35. Which of the following is valid IP address?
A) 984.12.787.76
B) 192.168.321.10
C) 1.888.234.3456
D) 192.168.56.115
36. Which is not a domain name extension
A) mil
B) org
C).int
D).com
37. What is a FTP program used for?
A) Transfer files to and from an Internet Server
B) Designing a website
C) Connecting to the internet
D) None of the above
38. Which of the following are commonly found on web pages?
A) nternet
B) hyperlinks
C) intranet
D) all of the above
39. What is the correct syntax in HTML for creating a link on a webpage?
A) <LINK SRC= “mcqsets.html”>
B) <BODY LINK = “mcqsets.html”>
C) <A SRC = “mcqsets.html” >
D) < A HREF = “mcqsets.html”>
40. Which of the following is an attribute of <Table> tag?
A) SRC
B) LINK
C) CELLPADDING
D) BOLD

1) What does PHP stand for?


a. PHP: Hypertext Preprocessor
b. Private Home Page
c. Personal Hypertext Processor
d. All of the above

2) PHP server scripts are surrounded by delimiters, which?


a. <?php...?>
b. <&>...</&>
c. <?php>...</?>
d. <script>...</script>

3) How do you write "Hello World" in PHP


a. Document.Write("Hello World");
b. "Hello World";
c. echo "Hello World";
d. None of the above
4) All variables in PHP start with which symbol?
a. $
b. %
c. &
d. @

5) What is the correct way to end a PHP statement?


a. New line
b. ;
c. :

d. </php>

6) The PHP syntax is most similar to:


a. Javascript
b. Perl and C
c. VBScript
d. Python

7) What is the correct way to create a function in PHP?


a. create myFunction()
b. function myFunction()
c. new_function myFunction()
d. All of the above
8) Which superglobal variable holds information about headers, paths, and script
locations?
a. $_GET
b. $_GLOBALS
c. $_SERVER
d. $_SESSION

9) What is the correct way to add 1 to the $count variable?


a. count++;
b. $count++;
c. $count =+1
d. ++count

10) What is a correct way to add a comment in PHP?


a. <comment>...</comment>
b. *\...\*
c. /*...*/
d. <!--...-->

11) Which one of these variables has an illegal name?


a. $my_Var
b. $my-Var
c. $myVar
d. $var

12) How do you create a cookie in PHP?


a. createcookie
b. setcookie()
c. makecookie()
d. cookie()
13) How do you create an array in PHP?
a. $cars = array("Volvo", "BMW", "Toyota");
b. $cars = "Volvo", "BMW", "Toyota";
c. $cars = array["Volvo", "BMW", "Toyota"];
d. All of the above

14) Which operator is used to check if two values are equal and of same data type?
a. !=
b. ===
c. ==
d. =

15) Following can be used for php


a. ZEND
b. WAMPP
c. XAMPP
d. All of the above

16) Inside which HTML element do we put the JavaScript?


a. <script>
b. <javascript>
c. <scripting>
d. <js>

17) How do you write "Hello World" in an alert box?


a. alert("Hello World")
b. alertBox="Hello World"
c. msgBox("Hello World")
d. alertBox("Hello World")

18) Where is the correct place to insert a JavaScript?


a. The <head> section
b. The <body> section
c. Both body and head
d. None

19) <P STYLE="text-transform:uppercase; color:red"> is an example of:


a. Internal style
b. External style
c. Local style
d. None
20) Which of these tags could you use to achieve the same effect as SPAN.largered
{color:red; font-size:20pt}
a. <STYLE>
b. <FONT>
c. <FONT-COLOR>
d. <TEXT>

21) The _____________ attribute specifies an inline style associated with an element, which
determines the rendering of the affected element.
a. dir
b. class
c. style
d. None

22) Last tag in html doc


a. <html>
b. </html>
c. </body>
d. None

23) To make a drop down list in form we use


a. <select>
b. <textarea>
c. <list>
d. <d_list>

24) Java script is a -------language.


a. clientside
b. serverside
c. both a and b
d. none

25) PHP keywords are


a. Case sensitive
b. Not case sensitive
c. Not necessary
d. None

26) To determine datatype of a value we use


a. Datatype()
b. Var_dump()
c. var_dump()
d. All
27) For floating text we use
a. <float>
b. <marquee>
c. <marquee>
d. All

28) What is the correct HTML for making a text area?


a. <textarea>
b. <input type="textbox">
c. <input type="textarea">
d. None
29) What is the correct HTML for inserting a background image?
a. <background img="background.gif">
b. <body style="background-image:url(background.gif)">
c. <background>
d. None

30) Following are type of comments used in php


a. //
b. /*------*/
c. #
d. All of the above

Which of these is not a tag for formatting text on a web page?

A) <B>

B) <I>

C) <DD>
D) <SMALL>.

2. To create an internal style sheet, we use a special <STYLE> container that is placed in the
which section of the HTML source document?

A) <HEAD>

B) <BODY>

C) <INTERN>

D) <TITLE>

3. We separate the two style definitions within a style by using which of these?

A) ;

B) :

C) #

D) =

4. Which of these is NOT one of the four possible values for the text-align property?

A) left

B) right

C) fill

D) justify
5. Which of these is the default value for the text-align property?

A) left

B) right

C) fill

D) justify

6. Which of these is a font-style value similar to italics?

A) wavy

B) oblique

C) normal

D) Sicilic

11. 7.The _____ tag indicates the start and end of a table.

a. <tr> </tr> c. <table> </table>

b. <t> </t> d. <tab> </tab>

____ 8. The _____ tags have the same attributes.

a. <tr> and <th> c. <th> and <td>

b. <td> and <tr> d. <td> and <tt>

____ 8. The _____ tag does not use the valign attribute.

a. <tr> c. <td>

b. <table> d. <th>

____ 9. The _____ tag uses the border attribute.


a. <table> c. <tr>

b. <td> d. <th>

10. 10.By default, headings are _____.

a. left-aligned c. center-aligned

b. right-aligned d. justified

____ 11. With the <font> tag, the color attribute accepts a _____ color code or color name.

a. four-digit c. six-digit

b. five-digit d. eight-digit

____ 12. With the <font> tag, the _____ attribute changes the font type.

a. Value c. face

b. Type d. point

20. 13.The ____ tag displays text above normal text.

a. <above> </above> c. <sup> </sup>

b. <up> </up> d. <on> </on>

12. 14.In order to view a Web page on any type of Web site, a computer needs to have a Web
_____ installed.

a. Browser c. manager

b. Client d. explorer

5. 15. Any computer that has the right software installed on it and is connected to the Internet
can act as a Web _____.

a. Server c. key
b. Proxy d. transfer protocol

16. What does HTML stand for?

A)Hyperlinks and Text Markup Language

B)Home Tool Markup Language

C)Hyper Text Markup Language

17. Who is making the Web standards?

A)Mozilla

B)Microsoft

C)The World Wide Web Consortium

18. Choose the correct HTML tag for the largest heading

A)<h6>

B)<heading>

C)<head>

D)<h1>

19. What is the difference between XML and HTML?

A)HTML is used for exchanging data, XML is not.

B)XML is used for exchanging data, HTML is not.

C)HTML can have user defined tags, XML cannot

20. What is the correct HTML tag for inserting a line break?

A)<br />

B)<break />

C)<lb />

21. Can a data cell contain images?

A)Yes

B)No

C)Not clear
22. How do I add floating text to my page?

A)<scroll>

B)<marquee>

C)<ciruler>

23. What is the preferred way for adding a background color in HTML?

A)<body background="yellow">

B)<background>yellow</background>

C)<body style="background-color:yellow">

24. Pick the odd one tag out?

A)<TABLE>

B)<TR>

C)<TD>

D)<FORM>

25. The first page of website is called?

A)First page

B)Main page

C)Home page

D)Design page

S-ar putea să vă placă și