PDF Google Drive Downloader v1.1


Báo lỗi sự cố

Nội dung text Advanced Java Programming MCQs.pdf


Prepared by Uni Bytes / www.unibytes.xyz Don't use our content without permission. Tribhuvan University Faculty of Humanities and Social Science Semester: VI Subject: Advanced Java Programming 2019 Batch Multiple Choice Questions i. Which Driver is extremely flexible, since it requires no code installed on the client machine? c) Java Protocol ii. What happens if you call deleteRow() on a ResultSet object? b) The row you are positioned on is deleted from the ResultSet, but not from the database iii. What happens if you add a main method to a servlet? c) No error, but this method will not get executed automatically iv. Imagine a situation where four users are interacting with a servlet instance. In this scenario, one of the users invokes the destroy method. What is the impact on the remaining three users? b) Only one user that calls destroy() will be terminated. The rest three remain connected with the servlet. v. Include directive is processed at the ______ time and Include action is processed at the _____ time. a) translation, run vi. Which statement regarding Java beans is false? b) Extends java.io.Serializable class vii. ______ is a container for other components and is used to build customized panels for organizing and arranging components. d) Jpanel viii.What are the types of classes that serve as a link between event listeners and event sources? a) Event adapters ix. What is the class employed for generating the RMI registry? d) LocateRegistry x. Which of the following is not a Swing component? b) JLabe (should be “JLabel”) Don’t Forget to Follow Uni Bytes

Prepared by Uni Bytes / www.unibytes.xyz Don't use our content without permission. Tribhuvan University Faculty of Humanities and Social Science Semester: VI Subject: Advanced Java Programming 2017 Batch Multiple Choice Questions i. Which one of the following layout managers can have rows and columns with variable sizes? a) GridLayout b) GridBagLayout c) BoxLayout d) FlowLayout ii. Which one of the following statements is true? a) Graphics2D class methods cannot use integer pixel coordinates b) Graphics2D class methods cannot use floating point pixel coordinates c) Graphics class methods use integer pixel coordinates d) Graphics class method use floating point pixel coordinates iii. Which one of the following drivers is a pure Java library that translates JDBC requests directly to a database-specific protocol? a) Type 1 b) Type 2 c) Type 3 d) Type 4 iv. Which one of the following methods executes SQL SELECT statement? a) executeQuery() b) executeUpdate() c) createStatement() d) getString() v. Which one of the following interfaces do not require database connection open during the entire user interaction? a) Updatable result set b) Scrollable result set c) Row set d) All of the above vi. The process, by which a builder tool determines bean properties and behavior is called a) Introspection b) Customization c) Persistence d) None of the above vii. Which of the following is simple property design pattern of JavaBeans? a) public boolean get() b) public boolean is() c) public get() d) public void set([] value) viii.Which of the following is scriptlet tag in JSP? a) <%! %> b) <%= %> c) <% %> d) <% page %> ix. Which one of the following statements is true? a) Every JSP file is converted to Servlet before execution b) JSP is a Java class c) Every Servlet is converted to JSP before execution d) Servlet is embedded in a HTML file x. Which of the following layer of RMI defines and supports invocation semantics of RMI? a) Stub and skeleton layer b) Remote reference layer c) Transport layer d) Internet layer Don’t Forget to Follow Uni Bytes

Tài liệu liên quan

x
Báo cáo lỗi download
Nội dung báo cáo



Chất lượng file Download bị lỗi:
Họ tên:
Email:
Bình luận
Trong quá trình tải gặp lỗi, sự cố,.. hoặc có thắc mắc gì vui lòng để lại bình luận dưới đây. Xin cảm ơn.