Programming MCQs

Solved MCQ Questions on Java Beans set-1

Pinterest LinkedIn Tumblr
This set of MCQ questions on Java beans in java programming includes the collection of solved objective questions on fundamentals of java beans. It includes MCQ questions on Java Beans, Java Servlets, filters, different phases of the servlet life cycle, service phase of the servlet life, and the concept of distributed object computing.

1. Java Servlets are an efficient and powerful solution for creating ………………….. for the web.
A) dynamic content
B) static content
C) hardware
D) both and b

2. Filters were officially introduced in the servlet …………………… specification.
A) 2.1
B) 2.3
C) 2.2
D) 2.4

3. ………………… is the first phase of the servlet life cycle.
A) Initialization
B) Service
C) Destruction
D) Both a and b

4. The service phase of the servlet life cycle represents all interactions with requests until the servlet is ………………….
A) created
B) running
C) initiated
D) destroyed

5. GET methods are great for sending ……………….. amounts of information that you do not mind having visible in a URL.
A) negligible
B) huge
C) small
D) both and b

Read Also: MCQ on Core Java with Answers

6. Several vendors are adding …………………. to their existing database ……………..
A) JDOBC, middle-ware products
B) JDBC drivers, upper-ware products
C) middle-ware products, JDBC drivers
D) JDBC drivers, middleware products

7. JSP is not governed by the ………………. defined by the Java 2 specifications.
A) syntax and semantics
B) rules and regulation
C) Jakarta tomcat
D) compiler

8. The concept of distributed object computing can be termed as a marriage between …………. and ………………
A) C++, java
B) C, C++
C) Networking, Object-oriented programming
D) C, Object-oriented programming

9. The IDL compiler generates ………………… and …………………….
A) runnable code, stubs
B) client, stubs
C) stubs, client
D) stubs, skeleton

10. Objects are units of encapsulation of ……………. and …………..
A) Data, behavior
B) data types, data values
C) function definition and function declaration
D) class and method

Answers:

1.  A) dynamic content
2.  B) 2.3
3.  A) Initialization
4.  D) destroyed
5.  C) small
6.  D) JDBC drivers, middleware products
7.  A) syntax and semantics
8.  C) Networking, Object-oriented programming
9   D) stubs, skeleton
10 A) Data, behavior

Read Next: Solved MCQ of JDBC and JSP set-1
Read More: Collections of Java MCQ Questions

Author

Shuseel Baral is a web programmer and the founder of InfoTechSite has over 8 years of experience in software development, internet, SEO, blogging and marketing digital products and services is passionate about exceeding your expectations.

Comments are closed.