0

web technology Online Quiz - 59

Description: web technology Online Quiz - 59
Number of Questions: 20
Created by:
Tags: web technology
Attempted 0/20 Correct 0 Score 0

Which of the following statement is false about Design Model?

  1. . Class Diagram in design model doesn't show real world objects; rather it shows software classes only

  2. Design Model illustrates the specifications for software classes and interfaces

  3. Setters and getters should not be included in the Design Model.

  4. . Programming Language native libraries are shown in the Design Model


Correct Option: D

AI Explanation

To answer this question, let's go through each option to understand why it is correct or incorrect:

Option A) Class Diagram in the design model doesn't show real-world objects; rather it shows software classes only - This option is correct. In the design model, the class diagram represents the structure and relationships between software classes, not real-world objects.

Option B) Design Model illustrates the specifications for software classes and interfaces - This option is correct. The design model provides a high-level representation of the software system, including the specifications for software classes and interfaces.

Option C) Setters and getters should not be included in the Design Model - This option is incorrect. Setters and getters, also known as accessor and mutator methods, are commonly included in the design model to represent the behavior and properties of software classes.

Option D) Programming Language native libraries are shown in the Design Model - This option is incorrect. Design models typically do not include programming language native libraries. The design model focuses on representing the structure and behavior of the software system, not the specific libraries or frameworks used.

The correct answer is D. Programming Language native libraries are not shown in the Design Model because the design model is a higher-level representation of the software system, focusing on the structure and behavior of the system rather than specific implementation details.

A book has one or more pages. Which of the following concepts characterize it best ?

  1. Inheritance

  2. Composition

  3. Association

  4. Specialization


Correct Option: B
Explanation:

To solve this question, the user needs to have a basic understanding of object-oriented programming concepts.

The book and page relationship can be best characterized as a composition relationship. Composition is a "has-a" relationship between two or more classes, where one class is a part of another class. In this case, a book has one or more pages, and each page is a part of the book. Therefore, the best option is:

The Answer is: B (Composition)

What is the representation of inheritance in an UML class diagram?

  1. An open headed arrow pointing to the inheriting class

  2. A closed headed arrow pointing to the inheriting class

  3. A closed headed dashed arrow pointing to the parent class

  4. . A closed headed arrow pointing to the parent class


Correct Option: D

Which of the following is not a UML tool?

  1. StartUML

  2. Rational Rose

  3. Visual Architect

  4. Borland Together


Correct Option: C

All UML diagrams can be generated from source code using reverse engineering?

  1. True

  2. False


Correct Option: B

Object Diagrams can be derived from class diagrams

  1. True

  2. False


Correct Option: B

¿En una organización para que se usan los recursos y capacidades ?

  1. Se utilizan para crear valor en forma de salida para la gestión de producción

  2. Se utilizan para crear valor en forma de bienes y servicios

  3. Se utilizan para crear valor para la organización de TI para el Servicio de Apoyo

  4. Se utilizan para crear valor para la organización de TI para la prestación de servicios


Correct Option: B

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

  1. 404

  2. 505

  3. 440

  4. 550


Correct Option: A

State true or false -- Can a JSP process HTML form data

  1. True

  2. False


Correct Option: A

AI Explanation

To answer this question, we need to understand the role of JSP (JavaServer Pages) in processing HTML form data.

Option A) True - This option is correct. JSP can process HTML form data. JSP allows you to embed Java code within HTML pages, which enables you to process form data submitted by users. JSP provides methods to retrieve the form data and perform server-side processing.

Option B) False - This option is incorrect. JSP can process HTML form data, so the statement is false.

The correct answer is A) True. JSP can process HTML form data.

Which of the following statements is true about the GenericServlet. (Multiple choice)

  1. GenericServlet is for servlets that might not use HTTP, like for instance FTP service.

  2. As of only Http is implemented completely in GenericServlet.

  3. The GenericServlet has a service() method that gets called when a client request is made.

  4. GenericServlet is called by both incoming requests and the HTTP requests are given to the servlet as they are.


Correct Option: A,C,D

When u try to redirect a page after you already have written something in your page, the error encountered is “Response has already been committed error” or popularly called 402 error.

  1. True

  2. False

  3. True

  4. False


Correct Option: A

URLConnection instance represents a link for accessing or communicating with the resource at the location.

  1. True

  2. False


Correct Option: A

Java Server Pages technology commonly called JSP technology offers the following advantages

  1. Separation of dynamic and static content.

  2. Support for scripting and tags

  3. Reuse of components and tags.

  4. Web access layer for N-tier enterprise application architecture


Correct Option: A,B,C,D

Which of the following statements is true about the scope of ‘application’ in JSP ?

  1. Objects with application scope are accessible from pages processing requests that are in the same application as they one in which they were created.

  2. All references to the object shall be released when the runtime environment reclaims the ServletContext.

  3. Objects with application scope can be defined (and reached) from pages that are not session-aware

  4. References to objects with application scope are stored in the application object associated with a page activation


Correct Option: A,B,C,D

The maximum age of the cookie in JSP can be set by

  1. cookie.setMaxAge(int seconds)

  2. cookie.setMaxAge(float seconds)

  3. cookie.setAgeMax (float seconds)

  4. cookie.setAgeMax (int seconds)


Correct Option: A

Following methods can be overridden in the JSP page.

  1. _jspService()

  2. jspInit()

  3. jspDestroy()

  4. getParameter()


Correct Option: B,C

What are the possible ways of communication between applet and Servlet (Multiple Choice?)

  1. HTTP Communication (Text-based and object-based) 

  2. Socket Communication 

  3. RMI Communication 

  4. None of these


Correct Option: A,B,C

We make use of a ServletOutputStream object from the JSP page

  1. True

  2. False


Correct Option: A

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

  1. error-page

  2. exception-type

  3. location

  4. None of the above


Correct Option: A

AI Explanation

To answer this question, you need to understand how error pages are defined in JSP.

In JSP, the `` tag is used to define the error page. This tag is used to handle errors or exceptions that occur during the execution of a JSP page.

Option A) error-page - This option is correct because the `` tag is used to define the error page in JSP.

Option B) exception-type - This option is incorrect because there is no specific tag named `` used to define the error page in JSP.

Option C) location - This option is incorrect because although the tag is used in the tag to specify the location of the error page, it is not the tag used to define the error page itself.

Option D) None of the above - This option is incorrect because the correct answer is option A, which is "error-page".

The correct answer is option A. This option is correct because the `` tag is used to define the error page in JSP.

- Hide questions