Coding | Mcqs | Multiple choice questions | Informative | Computer Science | Engineering | Aptitude | Quants | Verbal

INFEED

IP MCQ

 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

    1
  • The 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

    4
  • User agent for Web is called _______________

    Browser

    3
  • Every node has a unique numeric address called __________________

    Internet Protocol

    2
  • ______________ is the communication protocol used by internet to transfer hypertext documents.

    HTTP

    3
  • Server for Web is called ______________

    Web Server

    1
  • ______________ Controls disassembly of message into packets at the origin rcasscmblcs at the destination

    TCP

    1
  • HTML is the basic building block of ______________

    WWW

    4
  • You can create a table using the ___________ element

    <table>

    2
  • An unordered list created using the ______ element

    <ul>

    4
  • An ordered list created using the ___________ element

    <ol>

    1
  • Images are defined with the ________ tag

    <img>

    2
  • Single-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>

    1
  • The ________ element specifies a header for a document or section.

    <header>

    4
  • The ___________ 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)

    1
  • The ______________ 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

    1
  • The ______________ property specifies the background color of an element.

    background-color

    3
  • The ___________ 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

    3
  • Some CSS property values set on parent elements are inherited by their child elements is called ______________

    Inheritance

    2
  • Find the output <script type="text/javascript"> x=4+"4"; document.write(x); </script>

    44

    1
  • Find 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

    1
  • Identify 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

    2
  • What 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

    3
  • What 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

    2
  • What 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]

    1
  • Which is the method that removes the current document from the browsing history before loading the new document?

    c) replace()

    3
  • To retrieve the day of the month from the Date object, which is the code to select?

    var month_day = date_obj.getDate();

    4
  • If para1 is the DOM object for a paragraph, what is the correct syntax to change the text within the paragraph?

    para1.value="New Text";

    2
  • What 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

    3
  • In this example, what would the TYPE of employee.hireDate be? { “employee” : { “type” : “Director”, “functions” : [‘sales’, ‘marketing’], “hireDate” : “March 8, 2021” } }

    B. String

    2
  • What 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”}

    2
  • What 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”]}

    3
  • If 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";

    2
  • Why so JavaScript and Java have similar name?

    B. JavaScript's syntax is loosely based on Java's

    2
  • When 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

    2
  • What are variables used for in JavaScript Programs?

    Storing numbers, dates, or other values

    1
  • Which of the following is not a valid JavaScript variable name?

    2names

    1
  • Which of the following statements invoke the exception class?

    B. throw new Exception();

    2
  • Which of the following is not specialized keywords in exception handling.

    D. this

    4
  • What is the description of Error level E_ERROR?

    A. Fatal run-time error

    1
  • Use the .............. to delete the data inside the table, and not the table itself?

    C) TRUNCATE TABLE

    3
  • What 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

    4
  • The ............. statement is used to delete a table.

    A) DROP TABLE

    1
  • The … function operates similarly to fgets(), except that if also strips any HTML and PHP tags from the input.

    A. fgetss()

    1
  • The … function returns the total size, in bytes, consumed by the disk partition housing a specified directory.

    D. disk_total_space()

    4
  • The … function moves the pointer to the location specified by a provided offset value.

    C. fseek()

    3
  • You can use the… function to list all files and child directories in a given directory.

    C. readdir()

    3
  • A _________ 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

    1
  • As part of middle tiers in enterprise networks by connecting to SQL databases via______________

    JDBC

    2
  • In __________ we append a token or identifier to the URL of the next Servlet or the next resource.

    URL rewriting

    3
  • In 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

    4
  • The ____________ maintains the life cycle of a servlet instance.

    Web container

    2
  • tag is used to represent parameter value during jsp forward

    <jsp:param>

    3
  • A _______ is a small piece of information that is persisted between the multiple client requests.

    cookie

    4
  • A ________ 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

    1
  • In____________ technology, a scriptlet is a piece of Java-code embedded in the HTML-like JSP code

    JavaServer Page

    1
  • A ___________ is used to execute java source code in JSP

    scriptlet tag

    2
  • To remove an HTML element, use the __________ method

    remove()

    1
  • We 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

    2
  • The_________ method checks the HTTP request type

    service()

    2
  • The _______ method is called only once at the end of the life cycle of a servlet

    destroy()

    1
  • The___________ 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

    3
  • If 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

    1
  • With _________________, every local URL the user might click on is dynamically modified, or rewritten, to include extra information

    URL rewriting

    1
  • If 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

    1
  • PHP is a ____________ language?

    C. server-side scripting

    3
  • Who among this is the founder of php language?

    D. Rasmus Lerdorf

    4
  • In which year php was created?

    B. 1994

    2
  • PHP files have a default file extension of_______.

    C. .php

    3
  • Which of the following is the correct syntax of php?

    D. <?php ?>

    4
  • Which of the following is the latest version of php?

    B. 7.2

    2
  • Which of the following is the Release date of latest version (7.2) of php?

    D. 30 November 2017.

    4
  • Which of the below statements is equivalent to $sub -= $sub?

    B. $sub = $sub -$sub

    2
  • Which statement will output $lfc on the screen?

    A. echo "$lfc";

    1
  • Which of the below symbol is a newline character?

    B. \n

    2
  • PHP files can contain ________ code.

    D. Both A and B

    4
  • which of the following is new operator added in PHP 7?

    C. <=>

    3
  • Which 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)

    4
  • What will be the output of the following PHP code? <?php $x = 8; $y = 8.0; echo ($x === $y); ?>

    B. No Output

    2
  • The script that executes at the browser side is called _____

    A. Client side scripting

    1
  • PHP can send and receive cookies?

    A. True

    1
  • On which Platform PHP Runs?

    D. All of the above

    4
  • The PHP syntax is most similar to:

    C. Perl and C

    3
  • Any variables declared in PHP must begin with a _____?

    D. $

    4
  • A variable can have ________?

    C. Both A and B

    3
  • A variable name can only contain ____________?

    C. Both A and B

    3
  • Variable names in PHP must start with ?

    D. All of the above

    4
  • PHP variables are case-sensitive?

    A. True

    1
  • How many variable scope are there in php?

    B. 3

    2
  • What will be the output of the following PHP code? <?php $x = 1; $y = 2; $z = "$x + $y"; echo "$z"; ?<

    C. 1+2

    3
  • What will be the output of the following PHP code? <?php $x = 3.3; $y = 2; echo $x % $y; ?>

    B. 1

    2
  • What will be the output of the following PHP code? <?php $a = 1; $b = 2; $c = 3; echo ($a % ($b) + $c); ?>

    2

    1
  • What will be the output of the following PHP code? <?php $a = 1; $b = 2; $c = 3; echo ($a * (($b) - $c)); ?>

    -1

    2
  • How 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)

    3
  • AJAX communicates over ________ Protocol

    HTTP

    3
  • ______________ control replaces the need for a page to refresh during a postback

    UpdatePanel

    4
  • Only 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

    1
  • The purpose of the ____________ was to offer a server control that refreshed the contents of a page without a page refresh

    RefreshPanel

    2
  • A ___________ 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

    2
  • With the ____________ object you can update parts of a web page, without reloading the whole page.

    XMLHttpRequest

    3
  • With ____________ we can receive data from a server after the page has loaded

    XMLHttpRequest

    3
  • With ____________ we can request data from a server after the page has loaded

    XMLHttpRequest

    3
  • With ____________ we can send data to a server in the background

    XMLHttpRequest

    3
  • In XMLHttpRequest object, when status is 200 it means _____________

    OK

    2
  • In XMLHttpRequest object, when status is 403 it means _____________

    forbidden

    4
  • In 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

    4
  • In ___________ any procedure situated in any machine can be called

    RPC

    2
  • ASP.NET 2.0 was significantly enhanced to introduce the idea of _____________.

    script callbacks

    2
  • XMLHttpRequest Object, getResponseHeader() method ________________

    Returns specific header information

    1
  • XMLHttpRequest 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

    1
  • Question Statement - mandatory (statement delivered to the candidate)

    Correct choice - mandatory
  • A ______________ 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

    1
  • A _______________ 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

    3
  • A ______________ 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

    1
  • The protocol determines, the way the end of a message is ___________.

    signalled

    2
  • __________ specifies the addressing details for each packet.

    Internet protocol

    3
  • The _________________ was developed by Tito Berners-Lee in 1991.

    hypertext transfer protocol

    4
  • The ___________ connects and requests a page from the server

    browser

    3
  • The ________ 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

    1
  • Simple 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

    3
  • The ____________ reads the page from the file system and sends it to the client and then terminates the connection

    server

    2
  • In response __________ is meant to be human-readable

    server

    2
  • _________ for queries that can be safely repeated

    GET

    1
  • The ________ request message has a content body that is normally used to send parameters and data

    POST

    2
  • Which 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)

    2
  • What 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

    4
  • Which is the method that removes the current document from the browsing history before loading the new document?

    c) replace()

    3
  • What 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

    1
  • Which of the following string will match the RegEx "((d).(dd))$"?

    C. 223.12

    3
  • Consider 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)

    4
  • What would be the result of the following statement in JavaScript using regular expression methods?

    B. Returns ["123","456","789"]

    2
  • What will be the output of the following JavaScript code? System.out.println( Pattern.matches("[lfc]", "lets") );

    B. false

    2
  • What will be the output of the following JavaScript code? System.out.println( Pattern.matches("[lfc]?", "l") );

    A. true

    1
  • What will be the output of the following JavaScript code? System.out.println( Pattern.matches("\d", "9") );

    A. true

    1
  • What will be the output of the following JavaScript code? function myfun() { document.getElementById ("demo").innerHTML = Boolean(21 > 15); }

    A. true

    1
  • What will be the output of the following JavaScript code? function myfun() { document.getElementById ("demo").innerHTML = Boolean(15.00 === 15); }

    B. false

    2
  • What will be the output of the following JavaScript code? var b5 = Boolean('false'); document.getElementById ("demo").innerHTML =b5;

    A. true

    1
  • What will be the output of the following JavaScript code? function myfun() { var a = ""; document.getElementById ("demo").innerHTML = Boolean(a); }

    B. false

    2
  • The inner frame within a top-level window can be referred to as _____________

    B. parent.parent

    2
  • How are windows, tabs, iframes, and frames treated according to client-side javascript?

    . They are all browsing contexts

    1
  • Each tab in the single web browser window is called as ____________

    Browsing context

    1
  • When will the browser invoke the handler?

    C. Specified event occurs

    3
  • What 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]

    2
  • What 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]

    1
  • This servlet first tries to retrieve the current session ID using

    getPathInfo()

    2
  • The ______________ 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

    2
  • In ___________second request will be ignored until response of first request is delivered

    get

    1
  • _____ request is less efficient and used less than ____

    post,get

    1
  • Servlet 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()

    4
  • After 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

    2
  • Only _____ 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

    2
  • One of the key advantage is we can build __________ using JSP API

    custom tags

    4
  • Which one is not a data type in PHP?

    D. Void

    4
  • The range of integers must lie between ___________?

    C. -2^31 to 2^31.

    3
  • How many value does Boolean data type hold?

    B. 2

    2
  • Objects are defined as instances of user defined classes that can hold ____________?

    C. both values and functions

    3
  • What 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

    1
  • What will be the output of the following PHP code? <?php $lfc = NULL; echo $lfc; ?>

    C. No Output

    3
  • What will be the output of the following PHP code? <?php $x1 = 10.58; $x2 = 21.18; $sum = $x1 + $x2; echo $sum; ?>

    D. 31.76

    4
  • What will be the output of the following PHP code? <?php $intArray = array( 10, 20 , 30); echo "First Element: $intArray[3] "; ?>

    D. First Element:

    4
  • How many types of functions are available in php?

    D. 2

    4
  • Which of the following is not a built-in function in php ?

    C. fclosed()

    3
  • Why should we use functions?

    D. All of the above

    4
  • A function name always begins with the keyword _________.

    C. function

    3
  • A function name cannot start with a ____

    C. number

    3
  • A function name is not case-sensitive?

    1
  • A 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

    3
  • Type Hinting was introduced in which version of PHP?

    PHP 5

    1
  • A 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

    4
  • In XMLHttpRequest object, when readystate is 0 it means

    request not initiated

    2
  • In XMLHttpRequest object, when readystate is 1 it means

    server connection established

    3
  • Simple Object Access Protocol

    SOAP

    2
  • _____________ is the exception while invoking web services

    JAXRPCException

    1
  • WSDL stands for ___________

    Web Service Description Language

    1
  • _____________ ready Open source JavaScript libraries available for use

    Jquery

    1
  • You can use Firefox browser with an add-on called as _____________ to debug all Ajax calls

    Firebug

    2
  • The ____________ object is used to exchange data with a server behind the scenes.

    XMLHttpRequest

    3
  • XMLHttpRequest Object, abort() method ________________

    Cancels the current request

    1
  • XMLHttpRequest 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

    1
  • Publishing 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

    1
  • Web service is _____________

    Interoperable

    3
  • Question Statement - mandatory (statement delivered to the candidate)

    Correct choice - mandatory
  • 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

    1
  • The 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

    4
  • User agent for Web is called _______________

    Browser

    3
  • Every node has a unique numeric address called __________________

    Internet Protocol

    2
  • ______________ is the communication protocol used by internet to transfer hypertext documents.

    HTTP

    3
  • Server for Web is called ______________

    Web Server

    1
  • ______________ Controls disassembly of message into packets at the origin rcasscmblcs at the destination

    TCP

    1
  • HTML is the basic building block of ______________

    WWW

    4
  • You can create a table using the ___________ element

    <table>

    2
  • An unordered list created using the ______ element

    <ul>

    4
  • An ordered list created using the ___________ element

    <ol>

    1
  • Images are defined with the ________ tag

    <img>

    2
  • Single-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>

    1
  • The ________ element specifies a header for a document or section.

    <header>

    4
  • The ___________ 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)

    1
  • The ______________ 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

    1
  • The ______________ property specifies the background color of an element.

    background-color

    3
  • The ___________ 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

    3
  • Some CSS property values set on parent elements are inherited by their child elements is called ______________

    Inheritance

    2
  • Find the output <script type="text/javascript"> x=4+"4"; document.write(x); </script>

    44

    1
  • Find 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

    1
  • Identify 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

    2
  • What 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

    3
  • What 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

    2
  • What 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]

    1
  • Which is the method that removes the current document from the browsing history before loading the new document?

    c) replace()

    3
  • To retrieve the day of the month from the Date object, which is the code to select?

    var month_day = date_obj.getDate();

    4
  • If para1 is the DOM object for a paragraph, what is the correct syntax to change the text within the paragraph?

    para1.value="New Text";

    2
  • What 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

    3
  • In this example, what would the TYPE of employee.hireDate be? { “employee” : { “type” : “Director”, “functions” : [‘sales’, ‘marketing’], “hireDate” : “March 8, 2021” } }

    B. String

    2
  • What 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”}

    2
  • What 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”]}

    3
  • If 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";

    2
  • Why so JavaScript and Java have similar name?

    B. JavaScript's syntax is loosely based on Java's

    2
  • When 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

    2
  • What are variables used for in JavaScript Programs?

    Storing numbers, dates, or other values

    1
  • Which of the following is not a valid JavaScript variable name?

    2names

    1
  • Which of the following statements invoke the exception class?

    B. throw new Exception();

    2
  • Which of the following is not specialized keywords in exception handling.

    D. this

    4
  • What is the description of Error level E_ERROR?

    A. Fatal run-time error

    1
  • Use the .............. to delete the data inside the table, and not the table itself?

    C) TRUNCATE TABLE

    3
  • What 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

    4
  • The ............. statement is used to delete a table.

    A) DROP TABLE

    1
  • The … function operates similarly to fgets(), except that if also strips any HTML and PHP tags from the input.

    A. fgetss()

    1
  • The … function returns the total size, in bytes, consumed by the disk partition housing a specified directory.

    D. disk_total_space()

    4
  • The … function moves the pointer to the location specified by a provided offset value.

    C. fseek()

    3
  • You can use the… function to list all files and child directories in a given directory.

    C. readdir()

    3
  • A _________ 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

    1
  • As part of middle tiers in enterprise networks by connecting to SQL databases via______________

    JDBC

    2
  • In __________ we append a token or identifier to the URL of the next Servlet or the next resource.

    URL rewriting

    3
  • In 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

    4
  • The ____________ maintains the life cycle of a servlet instance.

    Web container

    2
  • tag is used to represent parameter value during jsp forward

    <jsp:param>

    3
  • A _______ is a small piece of information that is persisted between the multiple client requests.

    cookie

    4
  • A ________ 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

    1
  • In____________ technology, a scriptlet is a piece of Java-code embedded in the HTML-like JSP code

    JavaServer Page

    1
  • A ___________ is used to execute java source code in JSP

    scriptlet tag

    2
  • To remove an HTML element, use the __________ method

    remove()

    1
  • We 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

    2
  • The_________ method checks the HTTP request type

    service()

    2
  • The _______ method is called only once at the end of the life cycle of a servlet

    destroy()

    1
  • The___________ 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

    3
  • If 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

    1
  • With _________________, every local URL the user might click on is dynamically modified, or rewritten, to include extra information

    URL rewriting

    1
  • If 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

    1
  • PHP is a ____________ language?

    C. server-side scripting

    3
  • Who among this is the founder of php language?

    D. Rasmus Lerdorf

    4
  • In which year php was created?

    B. 1994

    2
  • PHP files have a default file extension of_______.

    C. .php

    3
  • Which of the following is the correct syntax of php?

    D. <?php ?>

    4
  • Which of the following is the latest version of php?

    B. 7.2

    2
  • Which of the following is the Release date of latest version (7.2) of php?

    D. 30 November 2017.

    4
  • Which of the below statements is equivalent to $sub -= $sub?

    B. $sub = $sub -$sub

    2
  • Which statement will output $lfc on the screen?

    A. echo "$lfc";

    1
  • Which of the below symbol is a newline character?

    B. \n

    2
  • PHP files can contain ________ code.

    D. Both A and B

    4
  • which of the following is new operator added in PHP 7?

    C. <=>

    3
  • Which 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)

    4
  • What will be the output of the following PHP code? <?php $x = 8; $y = 8.0; echo ($x === $y); ?>

    B. No Output

    2
  • The script that executes at the browser side is called _____

    A. Client side scripting

    1
  • PHP can send and receive cookies?

    A. True

    1
  • On which Platform PHP Runs?

    D. All of the above

    4
  • The PHP syntax is most similar to:

    C. Perl and C

    3
  • Any variables declared in PHP must begin with a _____?

    D. $

    4
  • A variable can have ________?

    C. Both A and B

    3
  • A variable name can only contain ____________?

    C. Both A and B

    3
  • Variable names in PHP must start with ?

    D. All of the above

    4
  • PHP variables are case-sensitive?

    A. True

    1
  • How many variable scope are there in php?

    B. 3

    2
  • What will be the output of the following PHP code? <?php $x = 1; $y = 2; $z = "$x + $y"; echo "$z"; ?<

    C. 1+2

    3
  • What will be the output of the following PHP code? <?php $x = 3.3; $y = 2; echo $x % $y; ?>

    B. 1

    2
  • What will be the output of the following PHP code? <?php $a = 1; $b = 2; $c = 3; echo ($a % ($b) + $c); ?>

    2

    1
  • What will be the output of the following PHP code? <?php $a = 1; $b = 2; $c = 3; echo ($a * (($b) - $c)); ?>

    -1

    2
  • How 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)

    3
  • AJAX communicates over ________ Protocol

    HTTP

    3
  • ______________ control replaces the need for a page to refresh during a postback

    UpdatePanel

    4
  • Only 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

    1
  • The purpose of the ____________ was to offer a server control that refreshed the contents of a page without a page refresh

    RefreshPanel

    2
  • A ___________ 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

    2
  • With the ____________ object you can update parts of a web page, without reloading the whole page.

    XMLHttpRequest

    3
  • With ____________ we can receive data from a server after the page has loaded

    XMLHttpRequest

    3
  • With ____________ we can request data from a server after the page has loaded

    XMLHttpRequest

    3
  • With ____________ we can send data to a server in the background

    XMLHttpRequest

    3
  • In XMLHttpRequest object, when status is 200 it means _____________

    OK

    2
  • In XMLHttpRequest object, when status is 403 it means _____________

    forbidden

    4
  • In 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

    4
  • In ___________ any procedure situated in any machine can be called

    RPC

    2
  • ASP.NET 2.0 was significantly enhanced to introduce the idea of _____________.

    script callbacks

    2
  • XMLHttpRequest Object, getResponseHeader() method ________________

    Returns specific header information

    1
  • XMLHttpRequest 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

    1
  • Question Statement - mandatory (statement delivered to the candidate)

    Correct choice - mandatory
  • A ______________ 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

    1
  • A _______________ 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

    3
  • A ______________ 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

    1
  • The protocol determines, the way the end of a message is ___________.

    signalled

    2
  • __________ specifies the addressing details for each packet.

    Internet protocol

    3
  • The _________________ was developed by Tito Berners-Lee in 1991.

    hypertext transfer protocol

    4
  • The ___________ connects and requests a page from the server

    browser

    3
  • The ________ 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

    1
  • Simple 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

    3
  • The ____________ reads the page from the file system and sends it to the client and then terminates the connection

    server

    2
  • In response __________ is meant to be human-readable

    server

    2
  • _________ for queries that can be safely repeated

    GET

    1
  • The ________ request message has a content body that is normally used to send parameters and data

    POST

    2
  • Which 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)

    2
  • What 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

    4
  • Which is the method that removes the current document from the browsing history before loading the new document?

    c) replace()

    3
  • What 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

    1
  • Which of the following string will match the RegEx "((d).(dd))$"?

    C. 223.12

    3
  • Consider 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)

    4
  • What would be the result of the following statement in JavaScript using regular expression methods?

    B. Returns ["123","456","789"]

    2
  • What will be the output of the following JavaScript code? System.out.println( Pattern.matches("[lfc]", "lets") );

    B. false

    2
  • What will be the output of the following JavaScript code? System.out.println( Pattern.matches("[lfc]?", "l") );

    A. true

    1
  • What will be the output of the following JavaScript code? System.out.println( Pattern.matches("\d", "9") );

    A. true

    1
  • What will be the output of the following JavaScript code? function myfun() { document.getElementById ("demo").innerHTML = Boolean(21 > 15); }

    A. true

    1
  • What will be the output of the following JavaScript code? function myfun() { document.getElementById ("demo").innerHTML = Boolean(15.00 === 15); }

    B. false

    2
  • What will be the output of the following JavaScript code? var b5 = Boolean('false'); document.getElementById ("demo").innerHTML =b5;

    A. true

    1
  • What will be the output of the following JavaScript code? function myfun() { var a = ""; document.getElementById ("demo").innerHTML = Boolean(a); }

    B. false

    2
  • The inner frame within a top-level window can be referred to as _____________

    B. parent.parent

    2
  • How are windows, tabs, iframes, and frames treated according to client-side javascript?

    . They are all browsing contexts

    1
  • Each tab in the single web browser window is called as ____________

    Browsing context

    1
  • When will the browser invoke the handler?

    C. Specified event occurs

    3
  • What 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]

    2
  • What 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]

    1
  • This servlet first tries to retrieve the current session ID using

    getPathInfo()

    2
  • The ______________ 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

    2
  • In ___________second request will be ignored until response of first request is delivered

    get

    1
  • _____ request is less efficient and used less than ____

    post,get

    1
  • Servlet 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()

    4
  • After 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

    2
  • Only _____ 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

    2
  • One of the key advantage is we can build __________ using JSP API

    custom tags

    4
  • Which one is not a data type in PHP?

    D. Void

    4
  • The range of integers must lie between ___________?

    C. -2^31 to 2^31.

    3
  • How many value does Boolean data type hold?

    B. 2

    2
  • Objects are defined as instances of user defined classes that can hold ____________?

    C. both values and functions

    3
  • What 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

    1
  • What will be the output of the following PHP code? <?php $lfc = NULL; echo $lfc; ?>

    C. No Output

    3
  • What will be the output of the following PHP code? <?php $x1 = 10.58; $x2 = 21.18; $sum = $x1 + $x2; echo $sum; ?>

    D. 31.76

    4
  • What will be the output of the following PHP code? <?php $intArray = array( 10, 20 , 30); echo "First Element: $intArray[3] "; ?>

    D. First Element:

    4
  • How many types of functions are available in php?

    D. 2

    4
  • Which of the following is not a built-in function in php ?

    C. fclosed()

    3
  • Why should we use functions?

    D. All of the above

    4
  • A function name always begins with the keyword _________.

    C. function

    3
  • A function name cannot start with a ____

    C. number

    3
  • A function name is not case-sensitive?

    1
  • A 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

    3
  • Type Hinting was introduced in which version of PHP?

    PHP 5

    1
  • A 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

    4
  • In XMLHttpRequest object, when readystate is 0 it means

    request not initiated

    2
  • In XMLHttpRequest object, when readystate is 1 it means

    server connection established

    3
  • Simple Object Access Protocol

    SOAP

    2
  • _____________ is the exception while invoking web services

    JAXRPCException

    1
  • WSDL stands for ___________

    Web Service Description Language

    1
  • _____________ ready Open source JavaScript libraries available for use

    Jquery

    1
  • You can use Firefox browser with an add-on called as _____________ to debug all Ajax calls

    Firebug

    2
  • The ____________ object is used to exchange data with a server behind the scenes.

    XMLHttpRequest

    3
  • XMLHttpRequest Object, abort() method ________________

    Cancels the current request

    1
  • XMLHttpRequest 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

    1
  • Publishing 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

    1
  • Web service is _____________

    Interoperable

    3

Post a Comment

Previous Post Next Post