programming languages Online Quiz - 310

Description: programming languages Online Quiz - 310
Number of Questions: 20
Created by:
Tags: programming languages
Attempted 0/20 Correct 0 Score 0

How can we declare a class as non derivable in VB.Net

  1. using NotInheritable

  2. using sealed

  3. both a and b

  4. none of the above

Correct Option: A

How do you implement interrogative methods in VB.NET

  1. Using Sub keyword

  2. Using Function Keyword

  3. Using New Keyword

  4. None of the above

Correct Option: B

Which of the following way of handling exceptions is provided by Vb.Net?

  1. Structured Exception Handling

  2. Unstructured Exception Handling

  3. Both A and B

  4. None of the Above

Correct Option: C

Java Server Pages specification includes

  1. Script language declarations, scriplets and expressions.

  2. JSP standard actions

  3. JSP standard directives

  4. All the Above

Correct Option: D

When a JSP page is compiled, what is it turned into?

  1. Applet

  2. Servlet

  3. Application

  4. Midlet

Correct Option: B

Which tag in the jsp is used to define the error page

  1. None of the above

  2. location

  3. exception-type

  4. error-page

Correct Option: D

Which of the following statements is true about JSP tag library?

  1. It defines the standard tag that works the same everywhere

  2. It is a single library and we can use it in multiple jsp containers

  3. It has support for the common structural tasks like iteration and condition

  4. All of the above

Correct Option: D

Which of the statement below does not correctly defines the difference between JDBC and ODBC ?

  1. ODBC can be directly used with Java because it uses a C interface

  2. ODBC makes uses of pointers which has been totally removed from JAVA

  3. ODBC is from Microsoft while JDBC is from java applications

  4. ODBC requires manual installation of the ODBC driver manager and driver on all client machines. While for JDBC driver are written in Java and JDBC code is automatically installable, secure and portable on all platforms.

Correct Option: A

Which of the tag is used to show the comments in the JSP page

Correct Option: D

The _______ when added to the user session tells us that the session timed out

  1. SessionTimedoutIndicator

  2. SessionTotalTimeOutIndicator

  3. SessionTotalTimedoutIndicator

  4. SessionTimeoutIndicator

Correct Option: A

Which codeline must be set before any of the lines that use the PrintWriter

  1. setContentWriter()

  2. setWriter()

  3. setPrintType()

  4. setContentType()

Correct Option: D

Following method(s) cannot be overridden in the JSP page.

  1. jspDestroy()

  2. jspInit()

  3. _jspService()

  4. getParameter()

Correct Option: C

Following methods can be overridden in the JSP page

  1. jspDestroy()

  2. jspInit()==

  3. _jspService()

  4. getParameter()

Correct Option: A

The tag %@include file=”.........” % > helps in including the ______ file in the JSP page

  1. readOnly==

  2. dynamic

  3. static==

  4. None of the above

Correct Option: C

To show money format on the JSP page we use __________ class

  1. AirthmaticFormat

  2. CurrencyFormat

  3. NumberFormat ==

  4. StringBuffer

Correct Option: C

To solve this question, the user needs to know what class can be used for formatting money on a JSP page.

The correct answer is:

C. NumberFormat

Option C is correct because the NumberFormat class is used for formatting numbers, including currency values. It provides methods for formatting numbers into strings that can be displayed on a JSP page. The CurrencyFormat class does not exist in Java and AirthmaticFormat and StringBuffer are not used for formatting currency values.

Therefore, the answer is: C. NumberFormat.

Which of the tag contains a code fragment valid in the page scripting language

Correct Option: B

Implementing the tag < %@ page isThreadSafe="false" % >implements the SingleThreadModel interface making the Jsp

  1. None of the above

  2. content safe

  3. synchornised

  4. thread safe

Correct Option: D

The error message displayed when the page is not found at the correct location

  1. 550

  2. 440

  3. 505

  4. 404

Correct Option: D

The information needed to create a TCP socket for communication in JSP is

  1. The Local Systems IP Address

  2. Local Systems Port Number

  3. Remote System’s IPAddress

  4. All of the above

Correct Option: D

The structure of simple explicit cursor is

  1. open cursor; ---some statements close;

  2. open cursor; fetch into variables; ---some statements close cursor;

  3. open cursor; fetch into variables; ---some statements close;

  4. All of the above

Correct Option: B
- Hide questions