IP MCQ:
The software that distributes the information and the machine where the information and software reside is called______________
Server
1_____________ provides requested service to client
Server
1The software that resides on the remote machine is __________
Client
2_______________ delivers Web pages and other documents to browsers using the HTTP protocol
Web Server
1___________ are collection of pages on the World Wide Web that are accessible from the same URL and typically residing on the same server.
Website
4User agent for Web is called _______________
Browser
3Every node has a unique numeric address called __________________
Internet Protocol
2______________ is the communication protocol used by internet to transfer hypertext documents.
HTTP
3Server for Web is called ______________
Web Server
1______________ Controls disassembly of message into packets at the origin rcasscmblcs at the destination
TCP
1HTML is the basic building block of ______________
WWW
4You can create a table using the ___________ element
<table>
2An unordered list created using the ______ element
<ul>
4An ordered list created using the ___________ element
<ol>
1Images are defined with the ________ tag
<img>
2Single-line text input controls are created using an ________ element
<input>
3_______________ is created using an <input> element whose type attribute has a value of radio
Radio button
1_____________ element provides a standard way to embed audio in web pages
<audio>
1The ________ element specifies a header for a document or section.
<header>
4The ___________ element specifies a footer for a document or section
<img>
2____________ are files with styling rules that govern how your website is presented on screen.
Cascading Style Sheets (CSS)
1The ______________ property defines how long time an animation should take to complete
animation-duration
3______________ is a module of CSS that lets you create gradual transitions between the values of specific CSS properties
CSS Transitions
1The ______________ property specifies the background color of an element.
background-color
3The ___________ property specifies an image to use as the background of an element.
background-image
4________________ Specifies a delay for the start of an animation
animation-delay
2_________________ Specifies whether an animation should be played forwards, backwards or in alternate cycles
animation-direction
1__________ Specifies the number of times an animation should be played
animation-iteration-count
4___________ hold what styles the element will have at certain times
Keyframes
3Some CSS property values set on parent elements are inherited by their child elements is called ______________
Inheritance
2Find the output <script type="text/javascript"> x=4+"4"; document.write(x); </script>
44
1Find the output <script type="text/javascript"> var s = "9123456 or 80000?"; var pattern = /\d{4}/; var output = s.match(pattern); document.write(output); </script>
9123
1Identify the correct code in order to fetch the value entered in username text field? < body> < form name="register"> Enter username < input value="John" id="name" name="username"> < /form> < /body>
document.getElementById ("name").value
2What will be the output of the following JavaScript code? <script type="text/javascript"> var a="Javascriptjava"; var x=a.lastIndexOf("t"); document.write(x); </script>
9
3What will be the output of the following JavaScript code? function getcube() { var number=document.getElementById("number").value; alert(number*number*number); } <form> Enter No:<input type="text" id="number" value="3" name="number"/><br/> <input type="button" value="ok" onclick="getcube()"/> </form>
27
2What will be printed in the console on execution of the below code? var materials = [ 'Table', 'Chair', 'Boxes', 'Press' ]; console.log(materials.map (material => material.length));
[5,5,5,5]
1Which is the method that removes the current document from the browsing history before loading the new document?
c) replace()
3To retrieve the day of the month from the Date object, which is the code to select?
var month_day = date_obj.getDate();
4If para1 is the DOM object for a paragraph, what is the correct syntax to change the text within the paragraph?
para1.value="New Text";
2What is JSON return?
json. loads() takes in a string and returns a json object. json. dumps() takes in a json object and returns a string.
1. In this example, what would the VALUE of employee.functions[1] be? { “employee” : { “type” : “Director”, “functions” : [‘sales’, ‘marketing’] } }
C. marketing
3In this example, what would the TYPE of employee.hireDate be? { “employee” : { “type” : “Director”, “functions” : [‘sales’, ‘marketing’], “hireDate” : “March 8, 2021” } }
B. String
2What is the value of obj in the following code? var obj = JSON.parse(‘{“fruit”: “Apple”}’, function(k, v) { if (v == “Apple”) return “Orange” else return v; });
B. { “fruit” : “Orange”}
2What is the value of json in the following code? var cars = []; cars[0] = ‘Ford’; cars[1] = ‘Toyota’; cars[2] = ‘BMW’; var json = JSON.stringify({x: cars});
C. {“x”:[“Ford”,”Toyota”,”BMW”]}
3If para1 is the DOM object for a paragraph, what is the correct syntax to change the text within the paragraph?
B. para1.value="New Text";
2Why so JavaScript and Java have similar name?
B. JavaScript's syntax is loosely based on Java's
2When a user views a page containing a JavaScript program, which machine actually executes the script?
A. The User's machine running a Web browser
1______ JavaScript is also called client-side JavaScript.
B. Navigator
2What are variables used for in JavaScript Programs?
Storing numbers, dates, or other values
1Which of the following is not a valid JavaScript variable name?
2names
1Which of the following statements invoke the exception class?
B. throw new Exception();
2Which of the following is not specialized keywords in exception handling.
D. this
4What is the description of Error level E_ERROR?
A. Fatal run-time error
1Use the .............. to delete the data inside the table, and not the table itself?
C) TRUNCATE TABLE
3What will happen at the end of the following sequence of SQL commands? BEGIN TRANSACTION DELETE FROM MYTABLE WHERE ID=1 DELETE FROM OTHERTABLE ROLLBACK TRANSACTION
D) The database will remain unchanged
4The ............. statement is used to delete a table.
A) DROP TABLE
1The … function operates similarly to fgets(), except that if also strips any HTML and PHP tags from the input.
A. fgetss()
1The … function returns the total size, in bytes, consumed by the disk partition housing a specified directory.
D. disk_total_space()
4The … function moves the pointer to the location specified by a provided offset value.
C. fseek()
3You can use the… function to list all files and child directories in a given directory.
C. readdir()
3A _________ is a Java programming language class that is used to extend the capabilities of servers
Servlet
1______ is an interface that must be implemented for creating any Servlet.
Servlet
1_________ is a web component that is deployed on the server to create a dynamic web page.
Servlet
1As part of middle tiers in enterprise networks by connecting to SQL databases via______________
JDBC
2In __________ we append a token or identifier to the URL of the next Servlet or the next resource.
URL rewriting
3In case of Get request, ____________ can be sent because data is sent in header.
only limited amount of data
4________ request can be bookmarked.
get
1_______ request is non-idempotent.
post
2___________ provides common behavior to all the servlets.
servlet interface
4The ____________ maintains the life cycle of a servlet instance.
Web container
2tag is used to represent parameter value during jsp forward
<jsp:param>
3A _______ is a small piece of information that is persisted between the multiple client requests.
cookie
4A ________ has a name, a single value, and optional attributes such as a comment, path and domain qualifiers, a maximum age, and a version number.
cookie
4____________ cookie is valid for single session only
Non-persistent
2____________ cookie is valid for multiple session
Persistent
1In____________ technology, a scriptlet is a piece of Java-code embedded in the HTML-like JSP code
JavaServer Page
1A ___________ is used to execute java source code in JSP
scriptlet tag
2To remove an HTML element, use the __________ method
remove()
1We can use simple Date object with _________ to print current date and time.
toString()
2_______ provides the same capabilities as ODBC, allowing Java programs to contain database-independent code.
JDBC
2The_________ method checks the HTTP request type
service()
2The _______ method is called only once at the end of the life cycle of a servlet
destroy()
1The___________ represents a set of tags to simplify the JSP development.
JSP Standard Tag Library (JSTL)
4__________ is a mechanism used by the Web container to store session information for a particular user.
Session Management
4________ is used to store everything that we can get from the client from all the requests the client makes.
Session
3If we want to maintain the conversational state,___________ is needed
session tracking
2___________is a design pattern that separates the business logic, presentation logic and data.
MVC
2__________ is a web server and servlet container that is used to serve Java applications.
Apache Tomcat
1With _________________, every local URL the user might click on is dynamically modified, or rewritten, to include extra information
URL rewriting
1If a session ID is not specified _____________ is called to generate a new unique session ID
generateSessionId()
3. The term PHP is an acronym for PHP:_______________.
A. Hypertext Preprocessor
1PHP is a ____________ language?
C. server-side scripting
3Who among this is the founder of php language?
D. Rasmus Lerdorf
4In which year php was created?
B. 1994
2PHP files have a default file extension of_______.
C. .php
3Which of the following is the correct syntax of php?
D. <?php ?>
4Which of the following is the latest version of php?
B. 7.2
2Which of the following is the Release date of latest version (7.2) of php?
D. 30 November 2017.
4Which of the below statements is equivalent to $sub -= $sub?
B. $sub = $sub -$sub
2Which statement will output $lfc on the screen?
A. echo "$lfc";
1Which of the below symbol is a newline character?
B. \n
2PHP files can contain ________ code.
D. Both A and B
4which of the following is new operator added in PHP 7?
C. <=>
3Which of the conditional statements is/are supported by PHP? i) if statements ii) if-else statements iii) if-elseif statements iv) switch statements
D. i), ii), iii) and iv)
4What will be the output of the following PHP code? <?php $x = 8; $y = 8.0; echo ($x === $y); ?>
B. No Output
2The script that executes at the browser side is called _____
A. Client side scripting
1PHP can send and receive cookies?
A. True
1On which Platform PHP Runs?
D. All of the above
4The PHP syntax is most similar to:
C. Perl and C
3Any variables declared in PHP must begin with a _____?
D. $
4A variable can have ________?
C. Both A and B
3A variable name can only contain ____________?
C. Both A and B
3Variable names in PHP must start with ?
D. All of the above
4PHP variables are case-sensitive?
A. True
1How many variable scope are there in php?
B. 3
2What will be the output of the following PHP code? <?php $x = 1; $y = 2; $z = "$x + $y"; echo "$z"; ?<
C. 1+2
3What will be the output of the following PHP code? <?php $x = 3.3; $y = 2; echo $x % $y; ?>
B. 1
2What will be the output of the following PHP code? <?php $a = 1; $b = 2; $c = 3; echo ($a % ($b) + $c); ?>
2
1What will be the output of the following PHP code? <?php $a = 1; $b = 2; $c = 3; echo ($a * (($b) - $c)); ?>
-1
2How many compound data types are available in php? A. 1 B. 2 C. 3 D. 4
3
3_____________ is an open-source project built on top of the Microsoft ASP.NET AJAX framework
ASP.NET AJAX Control Toolkit
2_______________ reduce the traffic travels between the client and the server
AJAX
1_____________ is alternative to XML
JSON (JavaScript Object Notation)
3AJAX communicates over ________ Protocol
HTTP
3______________ control replaces the need for a page to refresh during a postback
UpdatePanel
4Only portions of a page designated by the UpdatePanel are updated, this method is called _____________
partial-page rendering
4_________________ is a way for server controls to communicate with client-side scripts between callbacks.
script callbacks
1The purpose of the ____________ was to offer a server control that refreshed the contents of a page without a page refresh
RefreshPanel
2A ___________ is a piece of code that is passed in as a parameter or argument to other code
callback
1____________ is the name of a communication architecture between web pages and server side
AJAX
1_________ is a javascript library that is written for unifying JS method calls in all browsers
JQuery
4______ is the rendering specification to be implemented by all browser providers
HTML5
2With the ____________ object you can update parts of a web page, without reloading the whole page.
XMLHttpRequest
3With ____________ we can receive data from a server after the page has loaded
XMLHttpRequest
3With ____________ we can request data from a server after the page has loaded
XMLHttpRequest
3With ____________ we can send data to a server in the background
XMLHttpRequest
3In XMLHttpRequest object, when status is 200 it means _____________
OK
2In XMLHttpRequest object, when status is 403 it means _____________
forbidden
4In XMLHttpRequest object, when status is 404 it means _____________
not found
1________ are software systems that are displayed by the web browser using the web protocol
Web services
3_________ Used by software applications rather than end users directly
Web services
1______________ is independent of specific hardware/software on which it is running.
Web services
4In ___________ any procedure situated in any machine can be called
RPC
2ASP.NET 2.0 was significantly enhanced to introduce the idea of _____________.
script callbacks
2XMLHttpRequest Object, getResponseHeader() method ________________
Returns specific header information
1XMLHttpRequest Object, setRequestHeader() method ________________
Adds a label/value pair to the header to be sent
4_____________ property stores a function (or the name of a function) to be called automatically each time the readyState property changes
onreadystatechange
2_____________ property returns the status-text
statusText
1______________ is platform independent
SOAP
3___________ is the process of finding suitable web services for a given task
Web Service Discovery
1Question Statement - mandatory (statement delivered to the candidate)
Correct choice - mandatoryA ______________ is a document or resource of infonnation that is suitable for the World Wide Web and can be accessed through a web browser
web page
1A _______________ collection of pages on the World Wide Web that are accessible from the same URL and typically residing on the same server
Website
4_____________ is the unique address which identifies a resource on the Internet for routing purposes
Uniform Resource Locator
2_____________ is the most prevalent model for distributed computing protocols
Client-Server paradigm
3A ______________ running on a server host, provides access to a service
server process
4____________makes information constantly and instantly available to anyone with a connection
The internet
4__________ are agreed formats for transmitting data between devices
Protocols
1The protocol determines, the way the end of a message is ___________.
signalled
2__________ specifies the addressing details for each packet.
Internet protocol
3The _________________ was developed by Tito Berners-Lee in 1991.
hypertext transfer protocol
4The ___________ connects and requests a page from the server
browser
3The ________ reads the page from the file system, sends it to the client and terminates the connection
server
2_______ uses the client/server model
Electronic mail
1Simple Mail Transfer Protocol is ___________
SMTP
2_______________comprises software (Web server and browser) and data (Web sites)
World Wide Web
4___________ transfers hypertext requests and information between servers and browsers
HTTP
3The ____________ reads the page from the file system and sends it to the client and then terminates the connection
server
2In response __________ is meant to be human-readable
server
2_________ for queries that can be safely repeated
GET
1The ________ request message has a content body that is normally used to send parameters and data
POST
2Which among the following regular expression specifies that password should contain at least one capital letter or one digit.
B. /.*[A-Z].*/.test(password) || /.*[0-9].*/.test(password)
2What will be the output of the following JavaScript code? function counth2() { var totalh2=document.getElementsByTagName("h2"); alert("totalh2.length); } <h2>hello</h2> <h2>hello</h2>
2
4Which is the method that removes the current document from the browsing history before loading the new document?
c) replace()
3What will be the output of the following JavaScript code? <p id="Element">Head</p> function myFunction() { var x = document.getElementsByTagName("P").namedItem("Element"); alert(x.innerHTML); }
Head
1Which of the following string will match the RegEx "((d).(dd))$"?
C. 223.12
3Consider the following JavaScript statement containing regular expressions and check if the pattern matches? var text = "lestfindcourse: 1, 2, 3"; var pattern = /d+/g;
D. pattern.test(text)
4What would be the result of the following statement in JavaScript using regular expression methods?
B. Returns ["123","456","789"]
2What will be the output of the following JavaScript code? System.out.println( Pattern.matches("[lfc]", "lets") );
B. false
2What will be the output of the following JavaScript code? System.out.println( Pattern.matches("[lfc]?", "l") );
A. true
1What will be the output of the following JavaScript code? System.out.println( Pattern.matches("\d", "9") );
A. true
1What will be the output of the following JavaScript code? function myfun() { document.getElementById ("demo").innerHTML = Boolean(21 > 15); }
A. true
1What will be the output of the following JavaScript code? function myfun() { document.getElementById ("demo").innerHTML = Boolean(15.00 === 15); }
B. false
2What will be the output of the following JavaScript code? var b5 = Boolean('false'); document.getElementById ("demo").innerHTML =b5;
A. true
1What will be the output of the following JavaScript code? function myfun() { var a = ""; document.getElementById ("demo").innerHTML = Boolean(a); }
B. false
2The inner frame within a top-level window can be referred to as _____________
B. parent.parent
2How are windows, tabs, iframes, and frames treated according to client-side javascript?
. They are all browsing contexts
1Each tab in the single web browser window is called as ____________
Browsing context
1When will the browser invoke the handler?
C. Specified event occurs
3What will be printed in the console on execution of the following JS code: var array = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]; var myArr= array.filter(v => v % 3 === 0); console.log(myArr);
B. [3, 6, 9, 12, 15]
2What will be printed in the console on execution of the below code? var materials = [ 'Hydrogen', 'Helium', 'Lithium', 'Beryllium' ]; console.log(materials.map (material => material.length));
A. [8, 6, 7, 9]
1This servlet first tries to retrieve the current session ID using
getPathInfo()
2The ______________ is also added to a new help URL that invokes the Help servlet
session ID
3_______ request is secured because data is not exposed in URL bar
post
2______ request cannot be bookmarked
post
2In ___________second request will be ignored until response of first request is delivered
get
1_____ request is less efficient and used less than ____
post,get
1Servlet Interface provides _____ life cycle methods that are used to initialize the servlet, to service the requests, and to destroy the servlet
3
4_________is invoked only once and indicates that servlet is being destroyed.
public void destroy()
2________initializes the servlet.
public void init(ServletConfig config)
3________provides response for the incoming request.
public void service(ServletRequest request,ServletResponse response)
1__________returns the object of ServletConfig
public ServletConfig getServletConfig()
2______returns information about servlet such as writer, copyright, version etc.
public String getServletInfo()
4After invoking the _________ method, Servlet comes in the ready state
init()
1_______ is stored in the cache of the browser
Cookie
3___________is removed each time when user closes the browser
Non-persistent cookie
1________is not removed each time when user closes the browser.
Persistent cookie
2Only _____ information can be set in Cookie object
textual
1____________ can be used for retrieving information from a database
The Date class is available in ___________ package.
java.util
1______ is an interface on top of Servlets
A JSP program is compiled into a _____________ before execution.
Java servlet
2One of the key advantage is we can build __________ using JSP API
custom tags
4Which one is not a data type in PHP?
D. Void
4The range of integers must lie between ___________?
C. -2^31 to 2^31.
3How many value does Boolean data type hold?
B. 2
2Objects are defined as instances of user defined classes that can hold ____________?
C. both values and functions
3What will be the output of the following PHP code? <?php if(TRUE) echo "This condition is TRUE"; if(FALSE) echo "This condition is not TRUE"; ?>
A. This condition is TRUE
1What will be the output of the following PHP code? <?php $lfc = NULL; echo $lfc; ?>
C. No Output
3What will be the output of the following PHP code? <?php $x1 = 10.58; $x2 = 21.18; $sum = $x1 + $x2; echo $sum; ?>
D. 31.76
4What will be the output of the following PHP code? <?php $intArray = array( 10, 20 , 30); echo "First Element: $intArray[3] "; ?>
D. First Element:
4How many types of functions are available in php?
D. 2
4Which of the following is not a built-in function in php ?
C. fclosed()
3Why should we use functions?
D. All of the above
4A function name always begins with the keyword _________.
C. function
3A function name cannot start with a ____
C. number
3A function name is not case-sensitive?
1A function name is not case-sensitive? <?php function funclfc() { echo "This is letsfindcourse"; } // Calling the function funclfc(); ?>
B. This is letsfindcourse
2. A function name is not case-sensitive? <?php function prolfc($num1, $num2, $num3) { $mul = $num1 * $num2 * $num3; echo "The product is $mul"; } prolfc(1, 2, 3, 4); ?>
6
3Type Hinting was introduced in which version of PHP?
PHP 5
1A function in PHP which starts with double underscore is known as __________.
Magic Function
1______________a web document which adopts certain standards.
AJAX
1___________ can be used for form validation
AJAX
1____________ community that provides a powerful infrastructure to write reusable, customizable and extensible ASP.NET AJAX extenders
ASP.NET AJAX
4In XMLHttpRequest object, when readystate is 0 it means
request not initiated
2In XMLHttpRequest object, when readystate is 1 it means
server connection established
3Simple Object Access Protocol
SOAP
2_____________ is the exception while invoking web services
JAXRPCException
1WSDL stands for ___________
Web Service Description Language
1_____________ ready Open source JavaScript libraries available for use
Jquery
1You can use Firefox browser with an add-on called as _____________ to debug all Ajax calls
Firebug
2The ____________ object is used to exchange data with a server behind the scenes.
XMLHttpRequest
3XMLHttpRequest Object, abort() method ________________
Cancels the current request
1XMLHttpRequest Object, getAllResponseHeaders() method ________________
Returns header information
4_____________ property returns the response data as a string
responseText
3_____________ property returns the response data as XML data
responseXML
2____________ property returns the status-number
status
1Publishing a web service involves creating a ______________
software artifact
2____________ is an XML-based registry for business internet services
UDDI
1______________ provides the freedom for a developers to choose whatever the technology they want to use for development.
Interoperability
1Web service is _____________
Interoperable
3Question Statement - mandatory (statement delivered to the candidate)
Correct choice - mandatoryThe software that distributes the information and the machine where the information and software reside is called______________
Server
1_____________ provides requested service to client
Server
1The software that resides on the remote machine is __________
Client
2_______________ delivers Web pages and other documents to browsers using the HTTP protocol
Web Server
1___________ are collection of pages on the World Wide Web that are accessible from the same URL and typically residing on the same server.
Website
4User agent for Web is called _______________
Browser
3Every node has a unique numeric address called __________________
Internet Protocol
2______________ is the communication protocol used by internet to transfer hypertext documents.
HTTP
3Server for Web is called ______________
Web Server
1______________ Controls disassembly of message into packets at the origin rcasscmblcs at the destination
TCP
1HTML is the basic building block of ______________
WWW
4You can create a table using the ___________ element
<table>
2An unordered list created using the ______ element
<ul>
4An ordered list created using the ___________ element
<ol>
1Images are defined with the ________ tag
<img>
2Single-line text input controls are created using an ________ element
<input>
3_______________ is created using an <input> element whose type attribute has a value of radio
Radio button
1_____________ element provides a standard way to embed audio in web pages
<audio>
1The ________ element specifies a header for a document or section.
<header>
4The ___________ element specifies a footer for a document or section
<img>
2____________ are files with styling rules that govern how your website is presented on screen.
Cascading Style Sheets (CSS)
1The ______________ property defines how long time an animation should take to complete
animation-duration
3______________ is a module of CSS that lets you create gradual transitions between the values of specific CSS properties
CSS Transitions
1The ______________ property specifies the background color of an element.
background-color
3The ___________ property specifies an image to use as the background of an element.
background-image
4________________ Specifies a delay for the start of an animation
animation-delay
2_________________ Specifies whether an animation should be played forwards, backwards or in alternate cycles
animation-direction
1__________ Specifies the number of times an animation should be played
animation-iteration-count
4___________ hold what styles the element will have at certain times
Keyframes
3Some CSS property values set on parent elements are inherited by their child elements is called ______________
Inheritance
2Find the output <script type="text/javascript"> x=4+"4"; document.write(x); </script>
44
1Find the output <script type="text/javascript"> var s = "9123456 or 80000?"; var pattern = /\d{4}/; var output = s.match(pattern); document.write(output); </script>
9123
1Identify the correct code in order to fetch the value entered in username text field? < body> < form name="register"> Enter username < input value="John" id="name" name="username"> < /form> < /body>
document.getElementById ("name").value
2What will be the output of the following JavaScript code? <script type="text/javascript"> var a="Javascriptjava"; var x=a.lastIndexOf("t"); document.write(x); </script>
9
3What will be the output of the following JavaScript code? function getcube() { var number=document.getElementById("number").value; alert(number*number*number); } <form> Enter No:<input type="text" id="number" value="3" name="number"/><br/> <input type="button" value="ok" onclick="getcube()"/> </form>
27
2What will be printed in the console on execution of the below code? var materials = [ 'Table', 'Chair', 'Boxes', 'Press' ]; console.log(materials.map (material => material.length));
[5,5,5,5]
1Which is the method that removes the current document from the browsing history before loading the new document?
c) replace()
3To retrieve the day of the month from the Date object, which is the code to select?
var month_day = date_obj.getDate();
4If para1 is the DOM object for a paragraph, what is the correct syntax to change the text within the paragraph?
para1.value="New Text";
2What is JSON return?
json. loads() takes in a string and returns a json object. json. dumps() takes in a json object and returns a string.
1. In this example, what would the VALUE of employee.functions[1] be? { “employee” : { “type” : “Director”, “functions” : [‘sales’, ‘marketing’] } }
C. marketing
3In this example, what would the TYPE of employee.hireDate be? { “employee” : { “type” : “Director”, “functions” : [‘sales’, ‘marketing’], “hireDate” : “March 8, 2021” } }
B. String
2What is the value of obj in the following code? var obj = JSON.parse(‘{“fruit”: “Apple”}’, function(k, v) { if (v == “Apple”) return “Orange” else return v; });
B. { “fruit” : “Orange”}
2What is the value of json in the following code? var cars = []; cars[0] = ‘Ford’; cars[1] = ‘Toyota’; cars[2] = ‘BMW’; var json = JSON.stringify({x: cars});
C. {“x”:[“Ford”,”Toyota”,”BMW”]}
3If para1 is the DOM object for a paragraph, what is the correct syntax to change the text within the paragraph?
B. para1.value="New Text";
2Why so JavaScript and Java have similar name?
B. JavaScript's syntax is loosely based on Java's
2When a user views a page containing a JavaScript program, which machine actually executes the script?
A. The User's machine running a Web browser
1______ JavaScript is also called client-side JavaScript.
B. Navigator
2What are variables used for in JavaScript Programs?
Storing numbers, dates, or other values
1Which of the following is not a valid JavaScript variable name?
2names
1Which of the following statements invoke the exception class?
B. throw new Exception();
2Which of the following is not specialized keywords in exception handling.
D. this
4What is the description of Error level E_ERROR?
A. Fatal run-time error
1Use the .............. to delete the data inside the table, and not the table itself?
C) TRUNCATE TABLE
3What will happen at the end of the following sequence of SQL commands? BEGIN TRANSACTION DELETE FROM MYTABLE WHERE ID=1 DELETE FROM OTHERTABLE ROLLBACK TRANSACTION
D) The database will remain unchanged
4The ............. statement is used to delete a table.
A) DROP TABLE
1The … function operates similarly to fgets(), except that if also strips any HTML and PHP tags from the input.
A. fgetss()
1The … function returns the total size, in bytes, consumed by the disk partition housing a specified directory.
D. disk_total_space()
4The … function moves the pointer to the location specified by a provided offset value.
C. fseek()
3You can use the… function to list all files and child directories in a given directory.
C. readdir()
3A _________ is a Java programming language class that is used to extend the capabilities of servers
Servlet
1______ is an interface that must be implemented for creating any Servlet.
Servlet
1_________ is a web component that is deployed on the server to create a dynamic web page.
Servlet
1As part of middle tiers in enterprise networks by connecting to SQL databases via______________
JDBC
2In __________ we append a token or identifier to the URL of the next Servlet or the next resource.
URL rewriting
3In case of Get request, ____________ can be sent because data is sent in header.
only limited amount of data
4________ request can be bookmarked.
get
1_______ request is non-idempotent.
post
2___________ provides common behavior to all the servlets.
servlet interface
4The ____________ maintains the life cycle of a servlet instance.
Web container
2tag is used to represent parameter value during jsp forward
<jsp:param>
3A _______ is a small piece of information that is persisted between the multiple client requests.
cookie
4A ________ has a name, a single value, and optional attributes such as a comment, path and domain qualifiers, a maximum age, and a version number.
cookie
4____________ cookie is valid for single session only
Non-persistent
2____________ cookie is valid for multiple session
Persistent
1In____________ technology, a scriptlet is a piece of Java-code embedded in the HTML-like JSP code
JavaServer Page
1A ___________ is used to execute java source code in JSP
scriptlet tag
2To remove an HTML element, use the __________ method
remove()
1We can use simple Date object with _________ to print current date and time.
toString()
2_______ provides the same capabilities as ODBC, allowing Java programs to contain database-independent code.
JDBC
2The_________ method checks the HTTP request type
service()
2The _______ method is called only once at the end of the life cycle of a servlet
destroy()
1The___________ represents a set of tags to simplify the JSP development.
JSP Standard Tag Library (JSTL)
4__________ is a mechanism used by the Web container to store session information for a particular user.
Session Management
4________ is used to store everything that we can get from the client from all the requests the client makes.
Session
3If we want to maintain the conversational state,___________ is needed
session tracking
2___________is a design pattern that separates the business logic, presentation logic and data.
MVC
2__________ is a web server and servlet container that is used to serve Java applications.
Apache Tomcat
1With _________________, every local URL the user might click on is dynamically modified, or rewritten, to include extra information
URL rewriting
1If a session ID is not specified _____________ is called to generate a new unique session ID
generateSessionId()
3. The term PHP is an acronym for PHP:_______________.
A. Hypertext Preprocessor
1PHP is a ____________ language?
C. server-side scripting
3Who among this is the founder of php language?
D. Rasmus Lerdorf
4In which year php was created?
B. 1994
2PHP files have a default file extension of_______.
C. .php
3Which of the following is the correct syntax of php?
D. <?php ?>
4Which of the following is the latest version of php?
B. 7.2
2Which of the following is the Release date of latest version (7.2) of php?
D. 30 November 2017.
4Which of the below statements is equivalent to $sub -= $sub?
B. $sub = $sub -$sub
2Which statement will output $lfc on the screen?
A. echo "$lfc";
1Which of the below symbol is a newline character?
B. \n
2PHP files can contain ________ code.
D. Both A and B
4which of the following is new operator added in PHP 7?
C. <=>
3Which of the conditional statements is/are supported by PHP? i) if statements ii) if-else statements iii) if-elseif statements iv) switch statements
D. i), ii), iii) and iv)
4What will be the output of the following PHP code? <?php $x = 8; $y = 8.0; echo ($x === $y); ?>
B. No Output
2The script that executes at the browser side is called _____
A. Client side scripting
1PHP can send and receive cookies?
A. True
1On which Platform PHP Runs?
D. All of the above
4The PHP syntax is most similar to:
C. Perl and C
3Any variables declared in PHP must begin with a _____?
D. $
4A variable can have ________?
C. Both A and B
3A variable name can only contain ____________?
C. Both A and B
3Variable names in PHP must start with ?
D. All of the above
4PHP variables are case-sensitive?
A. True
1How many variable scope are there in php?
B. 3
2What will be the output of the following PHP code? <?php $x = 1; $y = 2; $z = "$x + $y"; echo "$z"; ?<
C. 1+2
3What will be the output of the following PHP code? <?php $x = 3.3; $y = 2; echo $x % $y; ?>
B. 1
2What will be the output of the following PHP code? <?php $a = 1; $b = 2; $c = 3; echo ($a % ($b) + $c); ?>
2
1What will be the output of the following PHP code? <?php $a = 1; $b = 2; $c = 3; echo ($a * (($b) - $c)); ?>
-1
2How many compound data types are available in php? A. 1 B. 2 C. 3 D. 4
3
3_____________ is an open-source project built on top of the Microsoft ASP.NET AJAX framework
ASP.NET AJAX Control Toolkit
2_______________ reduce the traffic travels between the client and the server
AJAX
1_____________ is alternative to XML
JSON (JavaScript Object Notation)
3AJAX communicates over ________ Protocol
HTTP
3______________ control replaces the need for a page to refresh during a postback
UpdatePanel
4Only portions of a page designated by the UpdatePanel are updated, this method is called _____________
partial-page rendering
4_________________ is a way for server controls to communicate with client-side scripts between callbacks.
script callbacks
1The purpose of the ____________ was to offer a server control that refreshed the contents of a page without a page refresh
RefreshPanel
2A ___________ is a piece of code that is passed in as a parameter or argument to other code
callback
1____________ is the name of a communication architecture between web pages and server side
AJAX
1_________ is a javascript library that is written for unifying JS method calls in all browsers
JQuery
4______ is the rendering specification to be implemented by all browser providers
HTML5
2With the ____________ object you can update parts of a web page, without reloading the whole page.
XMLHttpRequest
3With ____________ we can receive data from a server after the page has loaded
XMLHttpRequest
3With ____________ we can request data from a server after the page has loaded
XMLHttpRequest
3With ____________ we can send data to a server in the background
XMLHttpRequest
3In XMLHttpRequest object, when status is 200 it means _____________
OK
2In XMLHttpRequest object, when status is 403 it means _____________
forbidden
4In XMLHttpRequest object, when status is 404 it means _____________
not found
1________ are software systems that are displayed by the web browser using the web protocol
Web services
3_________ Used by software applications rather than end users directly
Web services
1______________ is independent of specific hardware/software on which it is running.
Web services
4In ___________ any procedure situated in any machine can be called
RPC
2ASP.NET 2.0 was significantly enhanced to introduce the idea of _____________.
script callbacks
2XMLHttpRequest Object, getResponseHeader() method ________________
Returns specific header information
1XMLHttpRequest Object, setRequestHeader() method ________________
Adds a label/value pair to the header to be sent
4_____________ property stores a function (or the name of a function) to be called automatically each time the readyState property changes
onreadystatechange
2_____________ property returns the status-text
statusText
1______________ is platform independent
SOAP
3___________ is the process of finding suitable web services for a given task
Web Service Discovery
1Question Statement - mandatory (statement delivered to the candidate)
Correct choice - mandatoryA ______________ is a document or resource of infonnation that is suitable for the World Wide Web and can be accessed through a web browser
web page
1A _______________ collection of pages on the World Wide Web that are accessible from the same URL and typically residing on the same server
Website
4_____________ is the unique address which identifies a resource on the Internet for routing purposes
Uniform Resource Locator
2_____________ is the most prevalent model for distributed computing protocols
Client-Server paradigm
3A ______________ running on a server host, provides access to a service
server process
4____________makes information constantly and instantly available to anyone with a connection
The internet
4__________ are agreed formats for transmitting data between devices
Protocols
1The protocol determines, the way the end of a message is ___________.
signalled
2__________ specifies the addressing details for each packet.
Internet protocol
3The _________________ was developed by Tito Berners-Lee in 1991.
hypertext transfer protocol
4The ___________ connects and requests a page from the server
browser
3The ________ reads the page from the file system, sends it to the client and terminates the connection
server
2_______ uses the client/server model
Electronic mail
1Simple Mail Transfer Protocol is ___________
SMTP
2_______________comprises software (Web server and browser) and data (Web sites)
World Wide Web
4___________ transfers hypertext requests and information between servers and browsers
HTTP
3The ____________ reads the page from the file system and sends it to the client and then terminates the connection
server
2In response __________ is meant to be human-readable
server
2_________ for queries that can be safely repeated
GET
1The ________ request message has a content body that is normally used to send parameters and data
POST
2Which among the following regular expression specifies that password should contain at least one capital letter or one digit.
B. /.*[A-Z].*/.test(password) || /.*[0-9].*/.test(password)
2What will be the output of the following JavaScript code? function counth2() { var totalh2=document.getElementsByTagName("h2"); alert("totalh2.length); } <h2>hello</h2> <h2>hello</h2>
2
4Which is the method that removes the current document from the browsing history before loading the new document?
c) replace()
3What will be the output of the following JavaScript code? <p id="Element">Head</p> function myFunction() { var x = document.getElementsByTagName("P").namedItem("Element"); alert(x.innerHTML); }
Head
1Which of the following string will match the RegEx "((d).(dd))$"?
C. 223.12
3Consider the following JavaScript statement containing regular expressions and check if the pattern matches? var text = "lestfindcourse: 1, 2, 3"; var pattern = /d+/g;
D. pattern.test(text)
4What would be the result of the following statement in JavaScript using regular expression methods?
B. Returns ["123","456","789"]
2What will be the output of the following JavaScript code? System.out.println( Pattern.matches("[lfc]", "lets") );
B. false
2What will be the output of the following JavaScript code? System.out.println( Pattern.matches("[lfc]?", "l") );
A. true
1What will be the output of the following JavaScript code? System.out.println( Pattern.matches("\d", "9") );
A. true
1What will be the output of the following JavaScript code? function myfun() { document.getElementById ("demo").innerHTML = Boolean(21 > 15); }
A. true
1What will be the output of the following JavaScript code? function myfun() { document.getElementById ("demo").innerHTML = Boolean(15.00 === 15); }
B. false
2What will be the output of the following JavaScript code? var b5 = Boolean('false'); document.getElementById ("demo").innerHTML =b5;
A. true
1What will be the output of the following JavaScript code? function myfun() { var a = ""; document.getElementById ("demo").innerHTML = Boolean(a); }
B. false
2The inner frame within a top-level window can be referred to as _____________
B. parent.parent
2How are windows, tabs, iframes, and frames treated according to client-side javascript?
. They are all browsing contexts
1Each tab in the single web browser window is called as ____________
Browsing context
1When will the browser invoke the handler?
C. Specified event occurs
3What will be printed in the console on execution of the following JS code: var array = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]; var myArr= array.filter(v => v % 3 === 0); console.log(myArr);
B. [3, 6, 9, 12, 15]
2What will be printed in the console on execution of the below code? var materials = [ 'Hydrogen', 'Helium', 'Lithium', 'Beryllium' ]; console.log(materials.map (material => material.length));
A. [8, 6, 7, 9]
1This servlet first tries to retrieve the current session ID using
getPathInfo()
2The ______________ is also added to a new help URL that invokes the Help servlet
session ID
3_______ request is secured because data is not exposed in URL bar
post
2______ request cannot be bookmarked
post
2In ___________second request will be ignored until response of first request is delivered
get
1_____ request is less efficient and used less than ____
post,get
1Servlet Interface provides _____ life cycle methods that are used to initialize the servlet, to service the requests, and to destroy the servlet
3
4_________is invoked only once and indicates that servlet is being destroyed.
public void destroy()
2________initializes the servlet.
public void init(ServletConfig config)
3________provides response for the incoming request.
public void service(ServletRequest request,ServletResponse response)
1__________returns the object of ServletConfig
public ServletConfig getServletConfig()
2______returns information about servlet such as writer, copyright, version etc.
public String getServletInfo()
4After invoking the _________ method, Servlet comes in the ready state
init()
1_______ is stored in the cache of the browser
Cookie
3___________is removed each time when user closes the browser
Non-persistent cookie
1________is not removed each time when user closes the browser.
Persistent cookie
2Only _____ information can be set in Cookie object
textual
1____________ can be used for retrieving information from a database
The Date class is available in ___________ package.
java.util
1______ is an interface on top of Servlets
A JSP program is compiled into a _____________ before execution.
Java servlet
2One of the key advantage is we can build __________ using JSP API
custom tags
4Which one is not a data type in PHP?
D. Void
4The range of integers must lie between ___________?
C. -2^31 to 2^31.
3How many value does Boolean data type hold?
B. 2
2Objects are defined as instances of user defined classes that can hold ____________?
C. both values and functions
3What will be the output of the following PHP code? <?php if(TRUE) echo "This condition is TRUE"; if(FALSE) echo "This condition is not TRUE"; ?>
A. This condition is TRUE
1What will be the output of the following PHP code? <?php $lfc = NULL; echo $lfc; ?>
C. No Output
3What will be the output of the following PHP code? <?php $x1 = 10.58; $x2 = 21.18; $sum = $x1 + $x2; echo $sum; ?>
D. 31.76
4What will be the output of the following PHP code? <?php $intArray = array( 10, 20 , 30); echo "First Element: $intArray[3] "; ?>
D. First Element:
4How many types of functions are available in php?
D. 2
4Which of the following is not a built-in function in php ?
C. fclosed()
3Why should we use functions?
D. All of the above
4A function name always begins with the keyword _________.
C. function
3A function name cannot start with a ____
C. number
3A function name is not case-sensitive?
1A function name is not case-sensitive? <?php function funclfc() { echo "This is letsfindcourse"; } // Calling the function funclfc(); ?>
B. This is letsfindcourse
2. A function name is not case-sensitive? <?php function prolfc($num1, $num2, $num3) { $mul = $num1 * $num2 * $num3; echo "The product is $mul"; } prolfc(1, 2, 3, 4); ?>
6
3Type Hinting was introduced in which version of PHP?
PHP 5
1A function in PHP which starts with double underscore is known as __________.
Magic Function
1______________a web document which adopts certain standards.
AJAX
1___________ can be used for form validation
AJAX
1____________ community that provides a powerful infrastructure to write reusable, customizable and extensible ASP.NET AJAX extenders
ASP.NET AJAX
4In XMLHttpRequest object, when readystate is 0 it means
request not initiated
2In XMLHttpRequest object, when readystate is 1 it means
server connection established
3Simple Object Access Protocol
SOAP
2_____________ is the exception while invoking web services
JAXRPCException
1WSDL stands for ___________
Web Service Description Language
1_____________ ready Open source JavaScript libraries available for use
Jquery
1You can use Firefox browser with an add-on called as _____________ to debug all Ajax calls
Firebug
2The ____________ object is used to exchange data with a server behind the scenes.
XMLHttpRequest
3XMLHttpRequest Object, abort() method ________________
Cancels the current request
1XMLHttpRequest Object, getAllResponseHeaders() method ________________
Returns header information
4_____________ property returns the response data as a string
responseText
3_____________ property returns the response data as XML data
responseXML
2____________ property returns the status-number
status
1Publishing a web service involves creating a ______________
software artifact
2____________ is an XML-based registry for business internet services
UDDI
1______________ provides the freedom for a developers to choose whatever the technology they want to use for development.
Interoperability
1Web service is _____________
Interoperable
3
Post a Comment