Java Programming and Early Languages

Test your knowledge on early high-level programming languages like FORTRAN and ALGOL, plus Java programming concepts including OOP, multithreading, and JSP web development.

16 Questions Published

Questions

Question 1 Multiple Choice (Multiple Answers)

How to avoid deadlocks in multithreading programes ?

  1. Avoid using Threads
  2. implement only Runnable
  3. Use synchronize blocks
  4. Use synchronize methods
  5. None
  6. Synchornize blocks and Methods
Question 2 Multiple Choice (Single Answer)

Which is not valid scope value for the jsp:useBean tag?

  1. page
  2. request
  3. context
  4. application
  5. None
  6. context and application
Question 3 Multiple Choice (Multiple Answers)

Which of the below are correct ?

  1. <%@ include page="/test.jsp" %>
  2. <jsp:include page="/test.jsp" />
  3. <jsp:include file="/test.jsp" />
  4. <%@ inlcude file="/test.jsp" %>
Question 4 Multiple Choice (Single Answer)

Which the preferred way to write multithread programe ?

  1. Extend Thread class
  2. Implement Runnable interface
  3. Both
  4. None
Question 5 Multiple Choice (Single Answer)

Which of the below is not an implicit object of JSP ?

  1. request
  2. session
  3. context
  4. page
  5. error
  6. exception
Question 6 Multiple Choice (Single Answer)

Partial Implementation can be provided in___

  1. Interface
  2. Class
  3. Abstract Class
  4. All
  5. None
Question 7 Multiple Choice (Multiple Answers)

What are OOPs concepts ?

  1. Inheritance
  2. Exception
  3. deadlock
  4. Thread
  5. Networking
Question 8 Multiple Choice (Multiple Answers)

GenericServlet is a __________

  1. Interface
  2. Class
  3. Abstract Class
  4. Filter
  5. None
Question 9 Multiple Choice (Multiple Answers)

How to avoid deadlocks in multithreading programes ?

  1. Avoid using Threads
  2. implement only Runnable
  3. Use synchronize blocks
  4. Use synchronize methods
  5. None
  6. Synchornize blocks and Methods
Question 10 Multiple Choice (Single Answer)

Which is not valid scope value for the jsp:useBean tag?

  1. page
  2. request
  3. context
  4. application
  5. None
  6. context and application
Question 11 Multiple Choice (Multiple Answers)

Which of the below are correct ?

  1. <%@ include page="/test.jsp" %>
  2. <jsp:include page="/test.jsp" />
  3. <jsp:include file="/test.jsp" />
  4. <%@ inlcude file="/test.jsp" %>
Question 12 Multiple Choice (Single Answer)

Which the preferred way to write multithread programe ?

  1. Extend Thread class
  2. Implement Runnable interface
  3. Both
  4. None
Question 13 Multiple Choice (Single Answer)

Which of the below is not an implicit object of JSP ?

  1. request
  2. session
  3. context
  4. page
  5. error
  6. exception
Question 14 Multiple Choice (Single Answer)

Partial Implementation can be provided in___

  1. Interface
  2. Class
  3. Abstract Class
  4. All
  5. None
Question 15 Multiple Choice (Single Answer)
  1. Which is the first successful high level programming language?
  1. C
  2. C++
  3. QBASIC
  4. FORTRAN
Question 16 Multiple Choice (Single Answer)
  1. Which among the following was involved in the development of ALGOL and Shortest Path Algorithm?
  1. Charles Babbage
  2. Edsger Wybe Dijkstra
  3. Robert Noyce
  4. Gordon Moore