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

Objective Question Bank

Uploaded by

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

Objective Question Bank

Uploaded by

209201.rmpc
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 15

Unit - I

1) A piece of icon or image on a web page associated with another webpage is called ______
a) url b) hyperlink c) plugin d) extension
2) What is a web browser?
a) a program that can display a web page
b) a program used to view html documents
c) it enables user to access the resources of internet
d) all of the mentioned
3) ________ is known as father of WWW.
a) John T. Thomson
b) Denis Ritchie
c) Tim Berners-Lee
d) None of above
4) A web cookie is a small piece of data that is _______
a) sent from a website and stored in user’s web browser while a user is browsing a
website
b) sent from user and stored in the server while a user is browsing a website
c) sent from root server to all servers
d) sent from the root server to other root servers
5) Internet is a.
a) local computer network
b) a world wide network of computers
c) an interconnected network of computers
d) a world wide interconnected network of computers which use a common protocol to
communicate with one another
6) World Wide Web
a) is another name for internet
b) world wide connection for computers
c) a collection of linked information residing on computers connected by the internet
d) a collection of world wide information
7) A world wide web contains web pages
a) residing in many computers
b) created using HTML
c) with links to other web pages
d) residing in many computers linked together using HTML
8) Which of the following allows user to view a webpage?
a) Operating System
b) Website
c) Interpreter
d) Internet Browser
9) The communication protocol used by internet is
a)HTTP
b)WWW
c)TCP/IP
d)FTP
10) A simple protocol used for fetching e-mail from a mailbox is
a) SMTP
b) POP
c) IMAP
d) None of the above
17) Which one of the following protocol is used to receive mail messages?
a) SMTP
b) POP
c) IMAP
d) All of the above
18) What protocol is used between E-Mail servers?
a) FTP
b) SMTP
c) SNMP
d) POP
19) During error reporting, ICMP always reports error messages to
a)Source
b)Destination
c)Station
d)Header
20) The File Transfer Protocol is built on ______________
a) data centric architecture
b) service oriented architecture
c) client server architecture
d) connection oriented architecture
21) The FTP protocol is used to __________?
a) Transfer data over the internet
b) Exchange files over the internet
c) Transfer text message over the internet
d) All of the above
22) The FTP protocol allows the user to __________ files over the internet.
a) Upload
b) Download
c) Both Upload and download
d) none of these
23) A typical __________ program obtains a remote reference to one or more remote objects
on a server and then invokes methods on them.
a) Server
b) Client
c) Thread
d) Concurrent
24) FTP is built on _____ architecture.
a)Client- Server
b)P2P
c)Both of the above
d)None of the above
25) In the Client-Server architecture, the component that processes the request and sends the
response is
(a) Client (b) Server (c) Protocol (d) Network
29) Intranet and Extranet differs at ___________________________.
a) Intranet: Private , Extranet: Public
b) Intranet: Public, Extranet: Public
c) Intranet: Private, Extranet: Private and also allowed authorized partners
d) Intranet: Public, Extranet: Private
30) _____________ is a subset of the website.
a)Web Site
b) Web Space
c) Web Portal
d) None of above
31) An extranet is which of the following?
a) The use of Internet protocols with limited access to company data by the company's
customers and suppliers.
b) The use of Internet protocols with unlimited access to company data by the company's
customers and suppliers.
c) The use of Internet protocols with limited access to company data by people within an
organization.
a) The use of Internet protocols with unlimited access to company data by people within
an organization.
33) A __________ is the simplest form of website, in which the site’s content is delivered
without the use of server side processing.
a) Dynamic Website
b) Social Networking Website
c) Static Website
d) E-Commerce Website
37- The __________ method when used in the method field, leaves entity body empty.
a) POST
b) SEND
c) GET
d) PUT
49- What is use of interpreter?
a) They convert bytecode to machine language code
b) They read high level code and execute them
c) They are intermediated between JIT and JVM
d) It is a synonym for JIT
1. XML stands for ____.
a) eXtensible Margin Language
b) Xtensible Markup Language
c) eXtensible Markup Language
d) Xtensible Margin Language

2. XML is designed to ____ and ____ data.


a) design, style
b) design, send
c) store, style
d) store, transport
3. ____is used to read XML documents and provide access to their content and structure.
a) XML Processor
b) XML Pre-processor
c) XML Compiler
d) XML Interpreter
4. An XML document is a string of ____.
a) HTML character codes
b) XML codes
c) ASCII codes
d) Characters

5. Which is the correct XML declaration?


a) <xml version="1.0" encoding="UTF-8"/>
b) <xml version="1.0" encoding="UTF-8"></xml>
c) <?xml version="1.0" encoding="UTF-8"?>
d) <?xml type="document" version="1.0" encoding="UTF-8"?>

6. A Document Type Definition (DTD) is a set of ____ which is used to define the type of
document for an SGML-family markup language.
a) markup definition
b) markup document
c) main declarations
d) markup declarations
7. An XML element can have ____.
a) multiple attributes
b) only two unique attributes
c) multiple unique attributes
d) None of the above

8. If element ONE is contained by element TWO, then ONE is known as ____ of TWO.
a) ancestors
b) family
c) descendant
d) child

9. Which is the correct syntax to link XML file with CSS?


a) <?xml type="text/css" href="file.css"?>
b) <?xml type="text/css" src="file.css"?>
c) <?xml-stylesheet type="text/css" href="file.css"?>
d) <?xml-stylesheet type="text/css" src="file.css"?>

10. What does SAX stand for ____.


a) Simple Application for XML
b) Safe API for XML
c) Super Application for XML
d) Simple API for XML

11. SAX in XML is used for ____.


a) Defining format of an XML document
b) Validating the XML file
c) Parsing XML documents
d) None of the above

12. Which options are true regarding a well-formed XML document?


a) Each tag must have a closing tag
b) The opening and closing tag are the same i.e., their case must be the same
c) The child tag must be closed within the parent tag i.e., as per the order, before closing
the parent tag.
d) All of the above

13. In an XML document, a graphics can be stirred using the ____.


a) XLink
b) XPointer
c) Both A and B
d) None of the above

14. Which XLink attribute defines the URL to link to?


a) xlink:path
b) xlink:url
c) xlink:src
d) xlink:href

15. Which XML object is used to request data from the web server?
a) XMLHttpReq
b) XMLHttpRequest
c) XMLHttpsReq
d) XMLHttpsRequest

UNIT- 2
1. PHP is an acronym for ____.
a) Prefix Hypertext Preprocessor
b) Prototype Hypertext Preprocessor
c) Hypertext processor
d) Hypertext Preprocessor
2. Which is/are statement(s) true about PHP?
a) It is an open-source scripting language
b) PHP scripts execute on the server
c) It is used for developing dynamic & interactive websites
d) All of the above
3. Who developed PHP?
a) Guido van Rossum
b) Rasmus Lerdorf
c) Jesse James Garrett
d) Douglas Crockford

4. Which is not a valid variable name in PHP?


a) age
b) _age
c) PersonAge
d) 1age
5. Which statement is commonly used for PHP output?
a) write
b) php.write
c) log
d) echo

6. Which is not a valid variable scope in PHP?


a) local
b) global
c) static
d) external
7. Which PHP keyword is used to access a global variable inside the function?
a) php_ global
b) global
c) global_variable
d) globalscope
8. There are two variables a, b which declared in global scope, which is the correct PHP
statement to access them within a function?
a) global $a, $b;
b) global $a $b;
c) global ($a, $b);
d) php_global $a, $b;
9. What is the name of an array that stores all global variables in PHP?
a) $GLOBAL[]
b) $global[]
c) $GLOBALS[]
d) $PHP_GLOBALS[]

10. There is a variable "name" that contains the name of a person, which is/are the correct echo
statement(s) to print the "name" suffix with "Hello".
a) echo "Hello $name";
b) echo "Hello " . $name;
c) echo ("Hello $name");
d) All of the above
11. What is the correct syntax of print statement in PHP?
a) print
b) print()
c) print = ()
d) Both A. and B.

12. Which data type is not supported by PHP?


a) Integer
b) Complex
c) Float
d) String

13. What is NULL in PHP?


a) Value
b) Keyword
c) Data Type
d) Function
14. Which type is used to store the database call?
a) object
b) class
c) resource
d) string
15. Which function is used to convert the ASCII value to the character?
a) asc()
b) str()
c) char()
d) chr()
16. Which PHP function is used to get the length of the string?
a) strlength()
b) strlen()
c) length()
d) str_len()
17. Which keyword/function is used to create a constant in PHP?
a) define keyword
b) define() function
c) const keyword
d) const() function
18. What is name of PHP "===" operator?
a) Equal
b) Safe Equal
c) Identity
d) Identical
19. What is name of PHP "<=>" operator?
a) Spaceship
b) Safe Spaceship
c) Identity
d) Identical
20. Which PHP statement is used to select one of many blocks of code to be executed?
a) The if statement
b) The if...else statement
c) The switch statement
d) The select statement
21. Which loop statement is used to loop through a block of code a specified number of times?
a) while
b) do...while
c) for
d) foreach

22. Which loop statement is used to loop through a block of code for each element in an array?
a) while
b) do...while
c) for
d) foreach
23. What is the use of PHP "continue" statement?
a) breaks the loop and transfers the control to the statement written just after the loop body
b) breaks the all loop statement (outer loops and inner loops)
c) breaks one iteration of the loop and transfers the control to the next loop iteration
d) All of the above

24. Which is/are valid types of arrays in PHP?


a) Indexed arrays
b) Associative arrays
c) Multidimensional arrays
d) All of the above

25. Which PHP function is used to sort an associative array in descending order, according to the
key?
a) sort()
b) rsort()
c) ksort()
d) krsort()

26. Which is not a valid PHP superglobal variable?


a) $GLOBALS
b) $_SERVER
c) $_ENV
d) $_SESSIONS
27. What is the use of PHP $_SERVER variable?
a) To update the content on the server
b) To access the information about headers, paths, and script locations
c) To access and update the database records on the server
d) All of the above
28. Which PHP global variable is used to collect data after submitting an HTML form?
a) $_GET
b) $_REQUEST
c) $_POST
d) $_ENV
29. Which PHP function modifies the timestamp?
a) date_modify()
b) modify_timestamp()
c) date_stamp()
d) stamp()
30. What is the syntax of PHP "include" statement?
a) include {'filename'};
b) <include 'filename'>;
c) include <'filename'>;
d) include 'filename';

31. Which PHP function is used to read the content of a file?


a) read()
b) getfile()
c) readfile()
d) All of the above

Unit III - Node JS


1)) What does the REPL stand for?
a) REPL stands for "Read Eval Print Loop."
b) REPL stands for "Research Eval Program Learn."
c) REPL stands for "Read Earn Point Learn."
d) REPL stands for "Read Eval Point Loop."
3) Which of the following command is used to start a REPL session?
a) $ node
b) $ node start
c) $ node repl
d) $ node console
5) Which of the following command is used to install the Node.js express module?
a) $ npm install express
b) $ node install express
c) $ install express
d) None of the above
6) What is Callback?
a) The callback is a technique in which a method calls back the caller method.
b) The callback is an asynchronous equivalent for a function.
c) Both of the above.
d) None of the above.
8) The Node.js modules can be exposed using:
a) expose
b) module
c) exports
d) All of the above
10) Which of the following method of fs module is used to get file information?
a) fs.open(path, flags[, mode], callback)
b) fs.stat(path, callback)
c) fs.readFile(path, flags[, mode], callback)
d) None of the above.
11) What does the fs module stand for?
a) File Service
b) File System
c) File Store
d) File Sharing
15) Which of the following method is used to return the current working directory of the process?
a) cwd();
b) cwd;
c) pwd();
d) None of the above.
17) Which of the following is not a benefit of using modules in Express?
a) It provides a means of dividing up tasks.
b) It provides a means of reuse of program code.
c) It provides a means of reducing the size of the program.
d) It provides a means of testing individual parts of the program.
19) What is the default scope in the Node.js application?
a) Global
b) Local
c) Global Function
d) Local to object
20) Which of the following engine Node in core?
a) Chrome V8
b) Microsoft Chakra
c) SpiderMonkey
d) Node En
22) Which of the following is not a valid language for Node.js?
a) JavaScript
b) Java
c) C
d) C++
23) Which of the following shortcut command is used to kill a process in Node.js?
a) Ctrl + B
b) Ctrl + K
c) Ctrl + T
d) Ctrl + C
25) What is the main usage of Node.js terminal (REPL)?
a) To specify the preview of the Node.js application.
b) For testing Node.js/JavaScript expressions.
c) For executing browser's JavaScript expressions.
d) None of the above.
26) Which of the following types of applications can be built using Node.js?
a) Web Application
b) Chat Application
c) RESTful Service
d) All of the above
29) Which of the following areas, Node.js, is not advised to be used?
a) Single Page Applications
b) JSON APIs based Applications
c) CPU intensive applications
d) Data-Intensive Real-time Applications (DIRT)
35) Which of the following keyword is used to make properties and methods available outside
the module file?
a) import
b) module
c) exports
d) require
36) Which of the following Node.js object property is used to return the node immediately before
a node?
a) localName
b) index
c) previousSibling
d) textContent

You might also like