Advertisement

Udemy WW Udemy WW

Friday, 4 September 2020

Multiple choice question on java - Part -2

PART-1 PART-2 PART-3


1. The _________ class creates and maintains a buffer for an input stream


  1. Common BufferedInputStream

  2. BufferedStream

  3. InputStream

  4. BufferedInputStream


2.A __________ is a sequence of bytes traveling from a source to a destination over a

communication path.


  1. string

  2. stream

  3. character

  4. integer


3. Which of the following statement is the explanation of the int read () method


  1. Reads a byte of data from the input stream

  2. Reads bytes of data from the input stream and stores them in the array

  3. Reads the number of bytes specified by the third argument from the input stream and

stores.

  1. Returns the number of bytes available for reading from the input stream


4.  Which of the following assignments is illegal in Java?


  1. subclass_reference = subclass_object

  2. subclass_reference = superclass_object

  3. superclass_reference = subclass_object

  4. superclass_reference = superclass_object


5. A ___________ is java program that can be embedded in a Web page

  1. Applets

  2. Browser

  3. Package

  4. None of these


6. A applet tag is written in body tag of ___________


  1. HTMM

  2. HTTP

  3. HTML

  4. Applet

7. All applets must be declared as 


  1. Protected

  2. Public

  3. Private

  4. Static


8.________ method is called the first time an applet is loaded into the memory

of a computer


  1. init method()

  2. start method()

  3. stop method()

  4. destroy method()


9. Which of the following is a loop construct that will always be executed once?


  1. switch

  2. for

  3. while                  

  4. do …. While


10. _______ provides a database-programming interface for Java programs


  1. ODBC

  2.  JDBC

  3. DBMS

  4. DAT


11. Which of the following is NOT a part of JDBC URL?


  1. <protocol>

  2. <subprotocol>

  3. <subname>

  4. <name>


12. _________package Contains classes that help in connecting to a database


  1. sql.java

  2. mysql.java

  3. java.sql

  4. java.mysql


13. RMI stands for

  1. Remote Method Invocation

  2. Remote method invention

  3. Remote Memory Interface

  4. Reduced Method Instructions


14. CORBA stands for


  1. Common Operation Request Broker Architecture

  2. Common Object Request Bean Architecture

  3. Common Object Request Broker Architecture

  4. Component Object Request Broker Architecture


15. Which of the following statements holds good for JavaBeans?


  1. JavaBeans allows to efficiently constructing applications by Configuring and Connecting Components called Beans.

  2. Java beans are used to transfer data in distributed Systems.

  3. Java Bean is software component architecture of Java designed to use only in one Particular environment

  4. None of the above.


16.Which of the following is not a wrapper class?

  1. Vector

  2. Character

  3. Boolean

  4. Integer


17. Servlets provide an efficient replacement for _______ scripts

  1. CGI

  2. GCI

  3. API

  4. PIC


18.____________ contains the class libraries that which are needed to create servlets


  1. SDK

  2. JSDK

  3. JDK

  4. JAR


19. Choose the CORRECT statement.

  1. To write JSP code you require a browser.

  2. To test the JSPs you need a server engine.

  3. JSPs looks like HTML script

  4. JSP combines HTML and JDK tools


20. Choose the WRONG Statement


  1. Java is inherently suited for large client/server applications.

  2. A servlet is a small pluggable extension to a server that enhances the server’s functionality

  3. Java does not support networking.

  4. When you use servlet to create dynamic content for a web page or otherwise extend the functionality of a web server.

27 comments:

  1. Very nice information. Thanks For sharing good article.I have written java8 blog visit Java8 Tutorials

    ReplyDelete
  2. Awesome Article Thanks for sharing your valuable information Hire Java developer from Technoduce Dedicated resource for Java development

    ReplyDelete
  3. You can learn about four different types of exercises and how they benefit you.

    There are a lot of different ways to stay fit and active. If you only do one type, it's best that its endurance or strength-based exercises because these will help improve your balance as well! To learn more, visit:- . Health aging supplement

    ReplyDelete
  4. Scholars get tons of writing tasks. Professors have high expectations from learners and assess their practical and theoretical knowledge. Hence, students have a lot of academic pressure. They attend university classes, have a part-time job to cover funds, study for examinations, and have other activities. Learners also lack knowledge and skills in referencing styles, citations, font styles, formatting, and structuring content. But EssayCorp is one of the best homework assignment help online websites. Since 2012, our website has been one of the leading websites for online writing services. We provide flawless project management assignment help to scholars and keep them burden-free. Our expert writers draft well-written and detailed answer adhering to university guidelines and clients’ instructions. Our primary goal is to meet the student's needs. And if the learners are unsatisfied with the content, they can ask for a rework. And our writers will make all the changes and submit the work within the stipulated time. Contact us to avail quality assistance today

    ReplyDelete
  5. Twitter Advertising Service help to educate the consumers about the usefulness of the product or service beyond simply increasing awareness. Most businesses lookout Twitter for business to create top-quality leads, increased awareness of their products, and design a new platform for their customer services.

    ReplyDelete
  6. Your mcq notes is amazing for java developer.
    I have found this blog very interesting.
    Very informative content, keep posting.

    If you find the best java Development COMPANY in India then Sapphire Software Solutions is the best place for you.

    ReplyDelete
  7. Very nice blog! . I am really very happy to visit here. Qdexi Technology gives you Website Designing Services at Lower Cost. So if you are looking for the same then, contact us on our official website.

    ReplyDelete
  8. This is Amazing Article. Helpful for me as I am pursuing full stack Java classes in Pune from Fullstack Guru

    ReplyDelete
  9. Great post, thanks for sharing assignment information, BookMyEssay offers reliable and top-notch Java Assignment Help. Our experts provide comprehensive assistance to students, ensuring high-quality solutions and timely delivery. Score well with our professional guidance.

    ReplyDelete
  10. Explore top-tier law education in Uttar Pradesh at Invertis University, where esteemed faculty and practical learning opportunities prepare students for impactful legal careers.

    ReplyDelete
  11. This comment has been removed by the author.

    ReplyDelete
  12. Thanks and I have a tremendous present: How To Design House Renovation house cleaning after renovation

    ReplyDelete

Advertisement

Udemy WW