Ip MCQ 21-22
Ip MCQ 21-22
Ip MCQ 21-22
Semester: VI Subject:-IP
Unit I
Option: C
3: From which tag descriptive list starts ?
A. <LL>
B. <DD>
C. <DL>
D.<DS>
Option: C
Option: D
5: The attribute of <form> tag
A. Method
B. Action
C. Both (a)&(b)
D.None of these
Answer Report Discuss
Option: B
Option: B
Option: B
9: Which of the following attributes of text box control allow to limit the
maximum character?
A. size
B. len
C. maxlength
D.all of these
Option: C
10. The common element which describe the web page, is ?
A. heading
B. paragraph
C. list
D.All of these
Option: D
Option: A
Option: C
Option: C
Option: D
Unit II
15) What is the HTML tag under which one can write the JavaScript code?
A) <javascript>
B) <scripted>
C) <script>
D) <js>
Ans: Option C
a = 8 + "8";
document.write(a);
</script>
A) 16
B) Complilation Error
C) 88
Ans: Option C
20) Which side of the image map can be created using JavaScript?
a) Server side
b) Client side
c) Both Server and Client side
d) User side
View Answer
Answer: b
21) Which of the following is the correct output for the following JavaScript code:
1. varx=5,y=1
2. var obj ={ x:10}
3. with(obj)
4. {
5. alert(y)
6. }
a. 1
b. Error
c. 10
d. 5
Answer: A
Answer: B
Answer: C
Answer: C
Unit III
26. What is the correct syntax of the declaration which defines the XML version?:
A. <xml version="A.0" />
B. <?xml version="A.0"?>
C. <?xml version="A.0" />
D. None of the above
Ans: B
34)You can name the schema using the name attribute like
A. <schema attribute=”schema1”>
B. <schema nameattribute=”schema1”>
C. <schema nameattri=”schema1”>
D. <schema name=”schema1”>
Ans: D
A. A set of names applied to specific spaces within an XML document, such as the head
and body
B. A set of names representing a specific XML vocabulary
C. A set of names for XML documents pertaining to a particular vocabulary
D. None of the above.
Ans: B
Unit: IV
Answer : C
42) Which of the following is the correct order of filter life cycle phase methods?
A - init(), service(), destroy()
B - initialize(), service(), destroy()
C - init(), doFilter(), destroy()
D - init(), service(), delete()
Answer : A
Answer : A
44) - Which of the following code is used to delete a HTTP Session object in
servlets?
A - session.invalidate()
B - response.deleteSession()
C - request.deleteSession()
D - None of the above.
Answer : A
Unit V
45. Which of the scripting of JSP not putting content into service method of the
converted servlet?
A. Declarations
B. Scriptlets
C. Expressions
D. None of the above
Answer: Option C
46. Why is XML a good way to transfer text-based data from one program or tool
to another?
A. XML imposes important limitations on the receiving program or tool
B. The receiving program or tool can use the XML tagging information to determine how
to best handle the incoming data
C. XML tags offer an extra level of security
D. XML tags specify to the receiving program or tool exactly how to format and display
the data
Answer: Option B
47. The difference between Servlets and JSP is the …………….
A. translation
B. compilation
C. syntax
D. Both A and B
Answer: Option C
48. Which of the following are the valid scopes in JSP?
A. request, page, session, application
B. request, page, session, global
C. response, page, session, application
D. request, page, context, application
Answer: Option A
50. How many jsp implicit objects are there and these objects are created by the
web container that are available to all the jsp pages?
A. 8
B. 9
C. 10
D. 7
Answer: Option B
51. Which attribute specifies a JSP page that should process any exceptions
thrown but not caught in the current page?
A. The ErrorPage Attribute
B. The IsErrorPage Attribute
C. Both A & B
D. None of the above
Answer: Option A
52. Which http method send by browser that asks the server to get the page only?
A. get
B. post
C. option
D. put
Answer: Option A
55. How many main components that can be used within an Android application?
A. 2
B. 3
C. 4
D. 5
View Answer
Ans : C
56. Which component handle background processing associated with an
application?
A. Activities
B. Services
C. Broadcast Receivers
D. Content Providers
Ans : B
57. What is true about Content Providers?
A. They dictate the UI and handle the user interaction to the smart phone screen
B. They handle background processing associated with an application.
C. They handle communication between Android OS and applications
D. They handle data and database management issues
Ans : D
58. What is true about Activities component?
A. Resources
B. Manifest
C. Services
D. Activities
View Answer
Ans : B
60) Which of the following does not belong to transitions?
(A) ViewFlipper
(B) ViewAnimator
(C) ViewSwitcher
(D) ViewSlider
Answer D
62 - What is Android?
A - Android is a stack of software's for mobility
B - Google mobile device name
C - Virtual machine
D - None of the above
Answer : A
63 - What is the life cycle of services in android?
A - onCreate()−>onStartCommand()−>onDestory()
B - onRecieve()
C - final()
D - Service life cycle is same as activity life cycle.
Answer : A
64-What is ANR in android?
A - When the application is not responding ANR will occur.
B - Dialog box is called as ANR.
C - When Android forcefully kills an application, it is called ANR
D - None of the above
Answer : A
65- What is DDMS in android?
A - Dalvik memory server
B - Device memory server
C - Dalvik monitoring services
D - Dalvik debug monitor services
Answer : D