Web programming MCQs for placement and interview - Set 7

Web programming MCQs for placement and interview - Set 7


1.) What would be the colours of the RGB where the hexadecimal values are #FF0000, #00FF00 and #0000FF respectively?
a.) Blue, Green, Red
b.) Green, Blue, Red
c.) Red, Blue, Green
d.) Red, Green, Blue
View Answer / Hide Answer

ANSWER: d.) Red, Green, Blue




2.) Identify the most accurate statement about the application of XML:
a.) XML must be used to produce XML and HTML output
b.) XML cannot specify or contain presentation information
c.) XML is used to describe hierarchically organized information
d.) XML performs the conversion of information between different e-business applications
View Answer / Hide Answer

ANSWER: c.) XML is used to describe hierarchically organized information




3.) The elements <DIV> and <SPAN> have the following characteristics
a.) Element <DIV> inherits properties defined for <SPAN> in a stylesheet
b.) Elements <SPAN> and <DIV> define content to be inline or block-level
c.) <DIV> and <SPAN> are used as alternatives for the element <P>
d.) <DIV> is used inside element <P>.
View Answer / Hide Answer

ANSWER: b.) Elements <SPAN> and <DIV> define content to be inline or block-level




4.) Which of the following statement is not true regarding JavaScript?
a.) JavaScript is an object-based language
b.) JavaScript is event driven
c.) JavaScript is a loosely typed language
d.) A JavaScript embedded in an HTML document is compiled and executed by the client browser
View Answer / Hide Answer

ANSWER: d.) A JavaScript embedded in an HTML document is compiled and executed by the client browser




5.) The following is a web-page:

<html>
<head> <title>JavaScript </head>
<body bgcolor=""#0000ff"">
<script language=""JavaScript"">
<!-- document.write(""<h1> hello world </h1>""); //-->
</script>
</body>
</html>

When the above web page is loaded into a browser, what will happen?

a.) The body of the web page will not contain any text
b.) The body of the web page will contain the text "hello world" as an H1 heading
c.) The background color of the web page will be green
d.) document.write("<h1> hello world </h1 >"); is a comment.
View Answer / Hide Answer

ANSWER: a.) The body of the web page will not contain any text




6.) While working on a JavaScript project, in your JavaScript application, which function would you use to send messages to users requesting for text input?
a.) Display() 
b.) Prompt()
c.) Alert() 
d.) Confirm()
View Answer / Hide Answer

ANSWER: b.) Prompt()




7.) Which property does one use to align text to the right side of a block-level element in Cascading Style Sheets?
a.) horizontal-align 
b.) align 
c.) block-align 
d.) text-align
View Answer / Hide Answer

ANSWER: d.) text-align




8.) A ________ object is a reference to one of the classes in a Java package, such as netscape.javascript .
a.) JavaArray
b.) JavaClass
c.) JavaObject
d.) JavaPackage
View Answer / Hide Answer

ANSWER: b.) JavaClass




9.) The JavaScript exception is available to the Java code as an instance of __________
a.) netscape.javascript.JSObject
b.) netscape.javascript.JSException
c.) netscape.plugin.JSException
d.) None of the above
View Answer / Hide Answer

ANSWER: b.) netscape.javascript.JSException




10.) Which of the following statements is false about event handlers in JavaScript?
a.) They can be included with input tags
b.) They can be associated with end of file processing for a database application
c.) They can be included with the form tag
d.) They are generally used to call functions when triggered
View Answer / Hide Answer

ANSWER: b.) They can be associated with end of file processing for a database application



Post your comment