You are on page 1of 11

TULSIRAMJI GAIKWAD-PATIL College of Engineering and Technology

Wardha Road, Nagpur - 441108


Accredited with NAAC A+ Grade
Approved by AICTE, New Delhi, Govt. of Maharashtra
(An Autonomous Institute Affiliated to RTM Nagpur University)

Department of Information Technology

Session: 2021-22(Even Semester)

Semester: VI Subject:-IP

Multiple choice Questions

Unit I

1 .The common element which describe the web page, is ?


A. Heading
B. Paragraph
C. List
D. All of these
Option: D
2: which of the following tag is used to mark a begining of paragraph ?
A. <TD>
B. <br>
C. <P>
D.<TR>

Option: C
3: From which tag descriptive list starts ?
A. <LL>
B. <DD>
C. <DL>
D.<DS>

Option: C

4: Correct HTML tag for the largest heading is


A. <head>
B. <h6>
C. <heading>
D.<h1>

Option: D
5: The attribute of <form> tag
A. Method
B. Action
C. Both (a)&(b)
D.None of these
Answer Report Discuss

6: Markup tags tell the web browser


A. How to organise the page
B. How to display the page
C. How to display message box on page
D.None of these

Option: B

7: www is based on which model?


A. Local-server
B. Client-server
C. 3-tier
D.None of these

Option: B

8: What are Empty elements and is it valid?


A. No, there is no such terms as Empty Element
B. Empty elements are element with no data
C. No, it is not valid to use Empty Element
D.None of these

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

11: HTML stands for?


A. Hyper Text Markup Language
B. High Text Markup Language
C. Hyper Tabular Markup Language
D.None of these

Option: A

12: which of the following tag is used to mark a begining of paragraph ?


A. <TD>
B. <br>
C. <P>
D.<TR>

Option: C

13: From which tag descriptive list starts ?


A. <LL>
B. <DD>
C. <DL>
D.<DS>

Option: C

14: Correct HTML tag for the largest heading is


A. <head>
B. <h6>
C. <heading>
D.<h1>

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

16) Which of the following is the correct syntax to display “GeeksforGeeks” in an


alert box using JavaScript?
A. alertbox(“GeeksforGeeks”);
B. msg(“GeeksforGeeks”);
C. msgbox(“GeeksforGeeks”);
D. alert(“GeeksforGeeks”);
Ans: D
17) What is the correct syntax for referring to an external script called “geek.js”?
A. <script src=”geek.js”>
B. <script href=”geek.js”>
C. <script ref=”geek.js”>
D. <script name=”geek.js”>
Ans: A
18) Predict the output of the following JavaScript code.
<script type="text/javascript">

a = 8 + "8";

document.write(a);

</script>

A) 16

B) Complilation Error

C) 88

D) Run Time Error

Ans: Option C

19) Predict the output of the following JavaScript code


<script type="text/javascript">
var a="GeeksforGeeks";
var x=a.lastIndexOf("G");
document.write(x);
</script>
8
B) 0
C) 9
D) Error
Ans: A

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

22) In JavaScript, what is a block of statement?


a) Conditional block
b) block that combines a number of statements into a single compound statement
c) both conditional block and a single statement
d)block that contains a single statement

Answer: B

23) The "function" and " var" are known as:


a) Keywords
b)Data types
c)Declaration statements
d)Prototypes

Hide Answer Workspace

Answer: C

9) What will happen, if the following JavaScript code is executed?


1. var count =0;
2. while (count <10)
3. {
4. console.log(count);
5. count++;
6. }
a. An error is displayed
b. An exception is thrown
c. The values of count variable are logged or stored in a particular location or
storage
d. The value of count from 0 to 9 is displayed in the console

Answer: C

Unit III

25) What does XML stand for?


A. eXtra Modern Link
B. eXtensible Markup Language
C. Example Markup Language
D. X-Markup Language
Ans: B

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

27. Which statement is true?


A. All the statements are true
B. All XML elements must have a closing tag
C. All XML elements must be lower case
D. All XML documents must have a DTD
Ans: B

28. Is it easier to process XML than HTML?


A. Yes
B. No
C. Somtimes
D. Cant say
Ans: A

29. Which of the following programs support XML or XML applications?:


A. Internet Explorer 5.5
B. Netscape D.7
C. RealPlayer.
D. both A and B
Ans: D

30. Kind of Parsers are


A. well-formed
B. well-documented
C. non-validating and validating
D. none of the above
Ans: C

31. Well formed XML document means


A. it contains a root element
B. it contain an element
C. it contains one or more elements
D. must contain one or more elements and root element must contain all other elements
Ans: D

32. Comment in XML document is given by


A. <?-- -->
B. <!-- --!>
C. <!-- -->
D. </-- -- >
Ans: C

33) What does DTD stand for?


A. Direct Type Definition
B. Document Type Definition
C. Do The Dance
D. Dynamic Type Definition
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

35)A schema describes


(i) grammer
(ii) vocabulary
(iii) structure
(iv) datatype of XML document

A. (i) & (ii) are correct


B. (i),(iii) ,(iv) are correct
C. (i),(ii),(iv) are correct
D. (i),(ii),(iii),(iv) are correct
Ans: D

36)The XML DOM object is


A. Entity
B. Entity Reference
C. Comment Reference
D. Comment Data
Ans: B

37)For XML document to be valid


A. document need to be well formed also
B. document need not to be well formed
C. document need to be well formed & valid
D. document validity has no relationship with well formedness
Ans: C

38. The attribute used to define a new namespace is


A. XMLNS
B. XmlNameSpace
C. Xmlns
D. XmlNs
Ans: C

39. Well formed XML document means(most appropriate)

A. it contains a root element


B. it contain an element
C. it contains one or more elements
D. must contain one or more elements and root element must contain all other elements
Ans: D

40.What is an XML namespace?

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

41) Which of the following package contains servlet classes?


A - javax.servlet
B - javax.servlet.http
C - Both of the above.
D - None of the above.

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

43) - How to create a cookie in servlet?


A - Use new operator.
B - Use request.getCookie() method
C - Use response.getCookie() method
D - None of the above

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

49. JSP includes a mechanism for defining …………………………. or custom tags.


A. static attributes
B. local attributes
C. dynamic attributes
D. global attributes
Answer: Option C

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

53. Which is not a directive?


A. include
B. page
C. export
D. useBean
Answer: Option C

54. How to send data in get method?


A. We can't
B. Through url
C. Through payload
D. None of these
Answer: Option B
Unit VI

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. An activity represents a single screen with a user interface,in-short Activity


performs actions on the screen.
B. application has more than one activity, then one of them should be marked as the
activity that is presented when the application is launched.
C. An activity is implemented as a subclass of Activity class
D. All of the above
Ans : D
59. Which of the following component has Configuration file for the application?

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

61)Button option can be choose from the palette category


(A) textfields
(B) containers
(C) widgets
(D) layouts
Answer C

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

You might also like