Web Technology mcq with answers

Top 60 Web Technology mcq questions for sppu, mu, anna university and the other university examinations are added. These WT (mcq) multiple choice questions are also helpful for the coding interviews. We are planning to provide Web technology mcq pdf download for free. WT mcq pdf will be available shortly. Until then you can keep studying the Web Technology mcq given below.
Q.no 1. What are cookies?
A : Cookies are text files stored on the client computer and they are kept for various
information tracking purpose.
B : Cookies are binary files stored on the server computer and they are kept for various
information tracking purpose.
C : Cookies are binary files stored on the client computer and they are kept for data
storage purpose.
D : Cookies are implicit object in JSP
Cookies are text files stored on the client computer and they are kept for various information tracking purpose.
Q.no 2. What are variables used for in JavaScript Programs?
A : Storing numbers, dates, or other values
B : Varying randomly
C : Causing high-school algebra flashbacks
D : None of the above
Storing numbers, dates, or other values
Q.no 3. AngularJS bootstraps itself during config phase.
A : yes
B : no
C : always
D : never
yes
Q.no 4. The correct signature of jspInit() method of HttpJspPage class is :
A : void jspInit(HTTPRequest request, HTTPResponse response)
B : void jspInit(HTTPRequest request, HTTPResponse response) throws
ServletException, IOException
C : void jspInit() throws ServletException, IOException
D : void jspInit()
void jspInit()
Q.no 5. Which of the following is not a valid JavaScript variable name?
A : 2names
B : _first_and_last_names
C : FirstAndLast
D : None of the above
2names
Q.no 6. _____ JavaScript is also called client-side JavaScript.
A : Microsoft
B : Navigator
C : LiveWire
D : Native
Navigator
Q.no 7. Which of the following is a web server?
A : Eclipse
B : Apache tomcat
C : Netbeans
D : All of the above
Apache tomcat
Q.no 8. If we don’t want to allow a floating div to the left side of an element, which
css property will we use ?
A : margin
B : clear
C : float
D : padding
clear
Q.no 9. Which module is used to serve static resources in Node.js?
A : node-static
B : http
C : node-resource
D : static
node-static
Q.no 10. What sever support AJAX ?
A : WWW
B : SMTP
C : HTTP
D : SNMP
HTTP
Q.no 11. A PHP script should start with ___ and end with ___:
A : < php >
B : < ? php ?>
C : < ? ? >
D : < ?php ? >
< ?php ? >
Q.no 12. What does validate() method of ActionForm returns?
A : ActionErrors
B : ActionForward
C : ActionMapping
D : ActionError
ActionForward
Q.no 13. How can we create instance of http module?
A : var http = require(“http”)
B : var http = new require(“http”)
C : var http = new http()
D : new mod()
var http = require(“http”)
Q.no 14. Statement in Javascript ends with
A : comma
B : semicolon
C : Question mark
D : Dollar sign
semicolon
Q.no 15. In PHP Language variables are case sensitive
A : true
B : Flase
C : Depends on website
D : Depends on server
true
Q.no 16. What HTTP stands for?
A : Hyperlink Text Transfer Protocol
B : Hyper Text Transfer Protocol
C : Hyper Transfer Text Protocol
D : Hyper Time Transfer Protocol
Hyper Text Transfer Protocol
Q.no 17. Which of the following layer in Web Service Protocol Stack is responsible
for encoding messages in a common XML format so that messages can be
understood at either end?
A : Service Transport
B : XML Messaging
C : Service Description
D : Service Discovery
XML Messaging
Q.no 18. Which of the following is not the scope of Variable in PHP?
A : local
B : global
C : static
D : extern
extern
Q.no 19. What scripting language is jQuery written in?
A : VBScript
B : C++
C : JavaScript
D : C#
JavaScript
Q.no 20. What WSDL stands for?
A : Web Services Description Language
B : Web Services Direction Language
C : Wired Services Description Language
D : Web Services Dialect Language
Web Services Description Language
Q.no 21. Which JSP Action tags is used to include the content of another resource,
like jsp, html or servlet?
A : jsp:plugin
B : jsp:include
C : jsp:forward
D : jsp:useBean
jsp:include
Q.no 22. AJAX made popular by
A : Microsoft
B : IBM
C : Google
D : SunMicrosystem
Q.no 23. Which of the following best describes JavaScript?
A : a low-level programming language.
B : a scripting language precompiled in the browser.
C : a compiled scripting language.
D : an object-oriented scripting language.
an object-oriented scripting language.
Q.no 24. In XML which internet languages are markup languages for handheld
devices?
A : WAP
B : WML
C : RSS
D : Both A & B
Both A & B
Q.no 25. Why so JavaScript and Java have similar name?
A : JavaScript is a stripped-down version of Java
B : JavaScript’s syntax is loosely based on Java’s
C : They both originated on the island of Java
D : None of the above
JavaScript’s syntax is loosely based on Java’s
Q.no 26. _____ JavaScript statements embedded in an HTML page can respond to
user events such as mouse-clicks, form input, and page navigation.
A : Client-side
B : Server-side
C : Local
D : Native
Client-side
Q.no 27. which of the following is not a JSP Action Tag
A : jsp:forward
B : jsp:include
C : jsp:useBean
D : Jsp:import
Jsp:import
Q.no 28. All variables in PHP start with which symbol?
A : $
B : &
C : !
D : *
$
Q.no 29. PHP is an example of ___________ scripting language.
A : Server-side
B : Client-side
C : Browser-side
D : In-side
Server-side
Q.no 30. Inside which HTML element do we put the JavaScript?
A :
B :
C :
angular.bootstrap
Q.no 32. Which of the following code is used to get names of the attributes in
servlet
A : response.getAttributeNames()
B : request.getAttributeNames()
C : Header.getAttributeNames()
D : None of the above.
request.getAttributeNames()
Q.no 33. What is the property textContent?
A : Sets the textual content of a node
B : Returns the textual content of a node
C : Both a and b
D : None of the mentioned
Both a and b
Q.no 34. What is the work of the form control elements in the HTML DOM?
A : User Interface elements
B : All the possible elements
C : Debugging elements
D : Collecting elements
User Interface elements
Q.no 35. Which of the following type of variables have only two possible values
either true or false?
A : Integers
B : Doubles
C : booleans
D : Strings
booleans
Q.no 36. AngularJS applications are a mix of . . . . . .
A : HTML and PHP
B : HTML and CrossScript
C : HTML and AngularScript
D : HTML and JavaScript
HTML and JavaScript
Q.no 37. What type of selector is used in this case?
p {line-height: 150%;}
A : class Selectors
B : element Selectors
C : id Selectors
D : none of the mentioned
element Selectors
Q.no 38. What should appear at the very end of your JavaScript?
The
B : The
The
Q.no 39. By applying an ___________ a style can be applied to just a single tag.
A : class rule
B : element rule
C : id rule
D : none of the mentioned
id rule
Q.no 40. Correct way to declare object in JS
A : var x = {firstName:”John”, lastName:”Doe”};
B : x = obj(firstName:”John”, lastName:”Doe”)
C : Both of above
D : None of above
var x = {firstName:”John”, lastName:”Doe”};
Q.no 41. Which attribute of JSP page directive defines the MIME type of the HTTP
response
A : Import
B : Extends
C : contentType
D : info
contentType
Q.no 42. Which is a language for finding information in an XML document?
A : Xpath
B : XSLT
C : Xlink
D : Xpointer
Xpath
Q.no 43. What is the easy way add extra Functionality in CMS?
A : Using Plugins/Extensions
B : Downloading New Theme
C : By going to coding portion
D : Making your own theme
Using Plugins/Extensions
Q.no 44. What is the correct way to create a function in PHP?
A : function myFunction()
B : create myFunction()
C : new_function myFunction()
D : del myfunction()
function myFunction()
Q.no 45. What makes Ajax unique?
A : It works as a stand-alone Web-development tool.
B : It works the same with all Web browsers.
C : It uses C++ as its programming language.
D : It makes data requests asynchronously.
It makes data requests asynchronously.
Q.no 46. The setTimeout() belongs to which object?
A : Element
B : Window
C : Location
D : None of the mentioned
Window
Q.no 47. Which of the following array represents an array with strings as index?
A : Numeric Array
B : Associative Array
C : Multidimentional Array
D : Normal Array
Associative Array
Q.no 48. Which of the following is the structure of an if statement?
A : if (conditional expression is true) thenexecute this codeend if
B : if (conditional expression is true)execute this codeend if
C : if (conditional expression is true) {then execute this code>->}
D : if (conditional expression is true) then {execute this code}
if (conditional expression is true) {then execute this code>->}
Q.no 49. Which of the following method can be used to read parameters names in
JSP?
A : request.getParameter()
B : response.getParameter()
C : request.getParameterNames()
D : response.getParameterNames()
request.getParameterNames()
Q.no 50. Implict object config is instance of which class?
A : javax.servlet.ServletContext
B : javax.servlet.ServletConfig
C : javax.servlet.Context
D : javax.servlet.Application
javax.servlet.ServletConfig
Q.no 51. What is the correct syntax of the declaration which defines the XML
version?
A :
B :
C :
D : None of the above
Q.no 52. How Node based web servers are different from traditional web servers?
A : Node based server process request much faster than traditional server.
B : Node based server uses a single threaded model and can services much larger
number of requests than traditional server like Apache HTTP Server.
C : There is no much difference between the two.
D : data based server
Node based server uses a single threaded model and can services much larger number of requests than traditional server like Apache HTTP Server.
Q.no 53. WordPress is used to create……………
A : Website
B : Application
C : System Program
D : Operating System
Website
Q.no 54. Which relational database does WordPress use?
A : MySQL
B : Oracle
C : PostgresSQL
D : MS SQLServer
MySQL
Q.no 55. Elements from the HTML namespace are displayed as they would in
…………………..
A : DHTML
B : XML
C : HTML
D : DXML
HTML
Q.no 56. To add the attribute named Type to the
A :
B :
C :
D :
Q.no 57. Which statement is true?
A : All the statements are true
B : All XML elements must have a closing tag
C : All XML elements must be lower case
D : All XML documents must have a DTD
All XML elements must have a closing tag
Q.no 58. Which one of the following lines need to be uncommented or added in
the php.ini file so as to enable mysqli extension?
A : extension=php_mysqli.dll
B : extension=mysql.dll
C : extension=php_mysqli.dl
D : extension=mysqli.dl
extension=php_mysqli.dll
Q.no 59. Which of the following is the Web application equivalent to
querySelectorAll()?
A : #()
B : &()
C : $()
D : None of the mentioned
$()
Q.no 60. XML Schemas consist of:
A : properties and methods.
B : elements and attributes.
C : structure and data.
D : tables and relationships.
structure and data.