0% found this document useful (0 votes)
14 views

HTML Javascript1

The document contains questions about HTML, JavaScript, and PHP topics. It tests knowledge of tags, events, methods, and properties related to these languages. There are multiple choice questions with a single correct answer for each.

Uploaded by

Samiksha
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views

HTML Javascript1

The document contains questions about HTML, JavaScript, and PHP topics. It tests knowledge of tags, events, methods, and properties related to these languages. There are multiple choice questions with a single correct answer for each.

Uploaded by

Samiksha
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

HTMLs

1. The ____________ layer is pure hardware in any network infrastructure.

A: Physical B: Network C: Transport D: Application

2. When any client wishes to communicate with an IS using browser software, the client
sends out a broadcast using the Server’s _________________ as the identifier.

A: IP address B: Domain Name

C: IP address & Domain name D: None of the above

3. _____________ is not a type of lists.

A: unordered B: ordered C: numeric D:definition

4. ________ sets the font to the specified font name.

A: Font B: Size C: Face D: Color

5. ____________ tag simply jumps to the next line.

A:<br> B:<br/> C: </br> D:<break>

6. The ____________ layer is pure hardware in any network infrastructure.

A: Physical B: Network C: Transport D: Application

7. When any client wishes to communicate with an IS using browser software, the client
sends out a broadcast using the Server’s _________________ as the identifier.

A: IP address B: Domain Name

C: IP address & Domain name D: None of the above

8. _____________ is not a type of lists.

A: unordered B: ordered C: numeric D:definition

9. _________________ sets the font to the specified font name.

A: Font B: Size C: Face D: Color

10.________________ tag simply jumps to the next line.

A:<br> B:<br/> C: </br> D:<break>

Javascript

11. __ event handler will be called when textfield and textarea is modified and loses the
current input focus.

A: onChange B: onFocus C: onError D: onClick

12) Which best explains getSelection()?

A: Returns the VALUE of a selected OPTION.


B: Returns document.URL of the window in focus.

C: Returns the value of cursor-selected text

D: Returns the VALUE of a checked radio input.

13. In Javascript, which of the following method is used to find out the character at a position
in a string?

A: charAt() B: CharacterAt() C: CharPos() D: characAt()

14) Math. round(-20.51) = ?

A:20 B: -21 C: 19 D: None

15. _____________ property of the Radiobutton in a form indicates the default status of the
element.

A: Default Checked B: Checked

C: Default Value D: Default Selected

16. Which is not an attribute of the cookie property?

A:Path B: Host C: Secure D: Domain

17. What does isNaN function do in JavaScript?


A: Return true if the argument is not a number.
B: Return false if the argument is not a number.
C: Return true if the argument is a number.
D: None of the above

18. When a form submits data via the GET method, the CGI program receives information
through the ____________________ environment variable.

A: SCRIPT_NAME B: PATH_INFO

C: QUERY_STRING D: CONTENT_TYPE

19. What is the output of following JavaScript code?


<script type="text/javascript">
x=4+"4";
document.write(x);
</script>

A: 44 B: 8 C: 4 D: Error output
20. What is the output of following JavaScript code?
<script type="text/javascript">
x=4+"4";
document.write(x);
</script>
A: 44 B: 8 C: 4 D: Error output
21. __ event handler will be called when textfield and textarea is modified and loses the current
input focus.

A: onChange B: onFocus C: onError D: onClick

22) Which best explains getSelection()?

A: Returns the VALUE of a selected OPTION.

B: Returns document.URL of the window in focus.

C: Returns the value of cursor-selected text

D: Returns the VALUE of a checked radio input.

23. In Javascript, which of the following method is used to find out the character at a
position in a string?

A: charAt() B: CharacterAt() C: CharPos() D: characAt()

24) Math. round(-20.51) = ?


A:20 B: -21 C: 19 D: None
25. _____________ property of the Radiobutton in a form indicates the default status of the
element.

A: Default Checked B: Checked

C: Default Value D: Default Selected

26. Which is not an attribute of the cookie property?


A:Path B: Host C: Secure D: Domain

27. What PHP stands for?


A: Hypertext Preprocessor B: Pre Hypertext Processor
C: Pre Hyper Processor D: Pre Hypertext Process
28. Which of the following tags is not a valid way to begin and end a PHP code block?
A: <% %> B: <? ?> C: <?php ?> D: <?= ?>

You might also like