AtoZInternetProgramming2 (PHP) MCQs
AtoZInternetProgramming2 (PHP) MCQs
MCQs on Cookies
Answer
MCQ: Name, value, expire, patrh, httponly, domain,
secure all of these are arguments of
A. session ( ) function
B. setcookie ( ) function
C.reset_cookie ( ) function
D.None of them
Answer
MCQ: The secure ( ) argument in setcookie function
returns result
A. In integer form
B. In string form
C.In boolean form
D.None of them
Answer
MCQ: In PHP4.1 and later versions, the cookies
name/value pair are added to the
A. Superglobal array
B. $_COOKIE
C.Global function
D.Both A and B.
---------------Answers
(a,b,c,d)_________________________
MCQs on PHP Variables PDF Online Download
Chapter. 5 JavaScript
1. Why so JavaScript and Java have similar name?
A. JavaScript is a stripped-down version of Java
B. JavaScript's syntax is loosely based on Java's
C. They both originated on the island of Java
D. None of the above
Ans: B
Output------?
A. 44
B. 8
C. 4
D. Error output
Ans: A
53. <script>
document.write(navigator.appCodeName);
</script>
A. get code name of the browser of a visitor
B. set code name of the browser of a visitor
C. None of the above
Ans: A
------------------------------------------------------------------------------------
----;;-;;;--
Chapter 6: AJAX
What is AJAX ?
A. is a program
B. is a country name
C. is a football club name
Ans: A
Collection from: www.cs-mcqs.blogspot.com
2- What sever support AJAX ? | Ajax
A. SMTP
B. WWW
C. HTTP
Ans: C
Collection from: www.cs-mcqs.blogspot.com
3- AJAX Stands for: | Ajax
A. Asynchronous Javascript and XML
B. Abstract JSON and XML
C. Another Java Abstraction for X-Windows
D. Another Java and XML Library
Ans: A
Collection from: www.cs-mcqs.blogspot.com
4- What makes Ajax unique? Ajax
A. It works as a stand-alone Web-development
tool.
B. It works the same with all Web browsers.
C. It uses C++ as its programming language.
D. It makes data requests asynchronously.
Ans: D
Collection from: www.cs-mcqs.blogspot.com
5- What does the XMLHttpRequest object
accomplish in Ajax? | Ajax
A. It's the programming language used to develop
Ajax applications.
B. It provides a means of exchanging structured
data between the Web server and client.
C. It provides the ability to asynchronously
exchange data between Web browsers and a Web
server.
D. It provides the ability to mark up and style the
display of Web-page text.
Ans: C
Collection from: www.cs-mcqs.blogspot.com
6- Of the following technologies, which one
provides the ability to dynamically interact with
Web page layout? Ajax
A. JavaScript.
B. XML.
C. Document Object Model.
D. HTML.
Ans: C
Collection from: www.cs-mcqs.blogspot.com
7- What is the first step in creating a Joke of the
Day application? | Ajax
A. Create the application's text file.
B. Write the application's HTML.
C. Turn the HTML application into an Ajax
application.
D. Upload the application to a Web server.
Ans: B
Collection from: www.cs-mcqs.blogspot.com
8- Ajax stands for Synchronous JavaScript and
XML. | Ajax
A. True
B. False
Ans: B
Collection from: www.cs-mcqs.blogspot.com
9- Ajax is a programming language. | Ajax
A. True
B. False
Ans: B
Collection from: www.cs-mcqs.blogspot.com
10- Regarding the XMLHttpRequest Object, does
the order in which one calls the "open" method and
assign a function to the "onreadystatechange"
event handler matter? | Ajax
A. Yes
B. No
Ans: B
Collection from: www.cs-mcqs.blogspot.com
11- Can a call to the "send" method fire an error
(assuming the user's browser supports the
XMLHttpRequest Object and the "send" method )?
| Ajax
A. Yes
B. No
Ans: B
Collection from: www.cs-mcqs.blogspot.com
12- ActiveX can be disabled via browser settings. |
Ajax
A. True
B. False
Ans: A
Collection from: www.cs-mcqs.blogspot.com
13- The XMLHttpRequest object can be disabled via
browser settings. | Ajax
A. True
B. False
Ans: B
Collection from: www.cs-mcqs.blogspot.com
14- Assuming that "xmlhttp" is a user-defined
variable that carrys the Ajax requesting object,
xmlhttp.status can carry a value of 4 after a
successful request. | Ajax
A. TrueB. False
Ans: B
Collection from: www.cs-mcqs.blogspot.com
15- The XMLHttpRequest object supports a method
called "quit". | Ajax
A. True
B. False
Ans: B
Collection from: www.cs-mcqs.blogspot.com
16- Assuming that "xmlhttp" is a user-defined
variable that carrys the Ajax requesting object,
xmlhttp.status can carry a value of 0 after a
successful request. | Ajax
A. True
B. False
Ans: B
Collection from: www.cs-mcqs.blogspot.com
17- The XMLHttpRequest object can be used on
subdomain1.mysite.com to request a page located
at subdomain2.mysite.com according to the
specification. | Ajax
A. True
B. False
Ans: B
Collection from: www.cs-mcqs.blogspot.com
18- What combination of technologies gives AJAX
its name? | Ajax
A. ASP and XAML
B. Asynchronous JavaScript and XML
C. Autonomic Computing and DHTML
D. Atlas and XML
Ans: B
Collection from: www.cs-mcqs.blogspot.com
19- Which one of these legendary Greek mythical
figures or places is the code name for Microsoft's
version of AJAX ? | Ajax
A. Oracle
B. Atlas
C. Hercules
D. Delphi
Ans: B
Collection from: www.cs-mcqs.blogspot.com
21- Which Web browser is the least optimized for
Microsoft's version of AJAX? | Ajax
A. Firefox
B. Opera
C. Safari
D. Internet Explorer
Ans: C
Collection from: www.cs-mcqs.blogspot.com
22- Which one of these technologies is NOT used in
AJAX? | Ajax
A. CSS
B. DOM
C. DHTML
D. FLASH
Ans: D
Collection from: www.cs-mcqs.blogspot.com
23- AJAX comes in _____. | Ajax
A. 2003
B. 2005
C. 2004
D. 2006
Ans: B
Collection from: www.cs-mcqs.blogspot.com
24- AJAX made popular by | Ajax
A. Microsoft
B. IBM
C. Sun Micro system
D. Google
Ans: D
Collection from: www.cs-mcqs.blogspot.com
25- AJAX based on ______ . | Ajax
A. JavaScript and XML
B. JavaScript and Java
C. VBScript and XML
D. JavaScript and HTTP requests
Ans: A
Collection from: www.cs-mcqs.blogspot.com
26- Using AJAX we can made our web page. | Ajax
A. more interactive and faster
B. easy to connect web page with server
C. more dynamic
Ans: A
Collection from: www.cs-mcqs.blogspot.com
27- What does the <noscript> tag do? | Ajax
A. Enclose text to be displayed by non-JavaScript
browsers.
B. Prevents scripts on the page from executing.
C. Describes certain low-budget movies.
D. None of the above
Ans: A
Collection from: www.cs-mcqs.blogspot.com
28- Why so JavaScript and Java have similar
name? | Ajax
A. JavaScript is a stripped-down version of Java
B. JavaScript's syntax is loosely based on Java's
C. They both originated on the island of Java
D. None of the above
Ans: B
Collection from: www.cs-mcqs.blogspot.com
29- When a user views a page containing a
JavaScript program, which machine actually
executes the script? | Ajax
A. The User's machine running a Web browser
B. The Web server
C. A central machine deep within Netscape's
corporate offices
D. None of the above
Ans: A
Collection from: www.cs-mcqs.blogspot.com
30- _____ JavaScript is also called client-side
JavaScript. | Ajax
A. Microsoft
B. Navigator
C. LiveWire
D. Native
Ans: B
Collection from: www.cs-mcqs.blogspot.com
31- _______ JavaScript is also called server-side
JavaScript. | Ajax
A. Microsoft
B. Navigator
C. LiveWire
Ans: C
Collection from: www.
. What is AJAX ?
A. is a programe
B. is a country name
C. is a football club name
Ans: A
at 09:12
Email ThisBlogThis!Share to TwitterShare to
FacebookShare to Pinterest
------------------------------------------------------------------------------
-------------------------------+-+--------+++
advertisement
advertisement
advertisement
------------------------------------------------------------------------------
----------+----------------
Chapter 4: XML
28. In XML
A. the internal DTD subset is read before the external
DTD
B. the external DTD subset is read before the internal
DTD
C. there is no external type of DTD
D. there is no internal type of DTD
Ans: A
A. (i) is correct
B. (i),(ii) are correct
C. (ii),(iii) are correct
D. (i),(ii),(iii) are correct
Ans: D
A. (i) is correct
B. (ii)is correct
C. both are correct
Ans: C
A. <xsl:template match=”Document”>
B. <xsl:template match=”Root”>
C. <xsl:template match=”RootNode”>
D. <xsl:template match=” /” >
Ans: D
A. <xsl:template match=”PLANET_NAME”>
B. <xsl:template match=” PLANET/NAME” >
C. <xsl:template match=” /NAME”>
D. <xsl:template match=” //”>
Ans: B
A. ATTLIST
B. ?ATTLIST
C. !ATTLIST
D. #ATTLIST
Ans: C
A. /
B. //
C. .
D. ..
Ans: D
A. for
B. for-all
C. for-each
D. in-turn
Ans: C