JSP MOCK TEST JSP MOCK TEST III

Similar documents
Unit 5 JSP (Java Server Pages)

JAVA MOCK TEST JAVA MOCK TEST III

JAVA MOCK TEST JAVA MOCK TEST II

JSP MOCK TEST JSP MOCK TEST IV

NODE.JS MOCK TEST NODE.JS MOCK TEST I

JAVA MOCK TEST JAVA MOCK TEST IV

MAVEN MOCK TEST MAVEN MOCK TEST I

DESIGN PATTERNS MOCK TEST DESIGN PATTERNS MOCK TEST II

COBOL MOCK TEST COBOL MOCK TEST III

ANGULARJS - MOCK TEST ANGULARJS MOCK TEST II

C# MOCK TEST C# MOCK TEST II

HIBERNATE MOCK TEST HIBERNATE MOCK TEST I

UNIT -5. Java Server Page

MAVEN MOCK TEST MAVEN MOCK TEST IV

PYTHON MOCK TEST PYTHON MOCK TEST III

Unit 4 Java Server Pages

DESIGN PATTERNS MOCK TEST DESIGN PATTERNS MOCK TEST III

C# MOCK TEST C# MOCK TEST I

Ch04 JavaServer Pages (JSP)

NODE.JS MOCK TEST NODE.JS MOCK TEST IV

DB2 MOCK TEST DB2 MOCK TEST I

HTML5 MOCK TEST HTML5 MOCK TEST I

Experiment No: Group B_2

MAVEN MOCK TEST MAVEN MOCK TEST III

GO MOCK TEST GO MOCK TEST I

PERL MOCK TEST PERL MOCK TEST II

directive attribute1= value1 attribute2= value2... attributen= valuen %>

SERVLETS MOCK TEST SERVLETS MOCK TEST III

GWT MOCK TEST GWT MOCK TEST I

JAVASCRIPT MOCK TEST JAVASCRIPT MOCK TEST I

About the Authors. Who Should Read This Book. How This Book Is Organized

VB.NET MOCK TEST VB.NET MOCK TEST III

CICS MOCK TEST CICS MOCK TEST I

EJB MOCK TEST EJB MOCK TEST IV

PSD1B Advance Java Programming Unit : I-V. PSD1B- Advance Java Programming

SPRING MOCK TEST SPRING MOCK TEST I

FINALTERM EXAMINATION Spring 2009 CS506- Web Design and Development Solved by Tahseen Anwar

HIBERNATE MOCK TEST HIBERNATE MOCK TEST II

Advantage of JSP over Servlet

HIVE MOCK TEST HIVE MOCK TEST III

JavaServer Pages. Juan Cruz Kevin Hessels Ian Moon

NODE.JS MOCK TEST NODE.JS MOCK TEST II

JCL MOCK TEST JCL MOCK TEST IV

First Simple Interactive JSP example

ANDROID MOCK TEST ANDROID MOCK TEST IV

112. Introduction to JSP

SSC - Web development Model-View-Controller for Java Servlet

Trabalhando com JavaServer Pages (JSP)

PL/SQL MOCK TEST PL/SQL MOCK TEST IV

112-WL. Introduction to JSP with WebLogic

1. Introduction. 2. Life Cycle Why JSP is preferred over Servlets? 2.1. Translation. Java Server Pages (JSP) THETOPPERSWAY.

JDBC MOCK TEST JDBC MOCK TEST IV

One application has servlet context(s).

HBASE MOCK TEST HBASE MOCK TEST III

a. Jdbc:ids://localhost:12/conn?dsn=dbsysdsn 21. What is the Type IV Driver URL? a. 22.

CSS MOCK TEST CSS MOCK TEST III

JCL MOCK TEST JCL MOCK TEST III

Advanced Java Programming

JSP - SYNTAX. Any text, HTML tags, or JSP elements you write must be outside the scriptlet. Following is the simple and first example for JSP:

Trabalhando com JavaServer Pages (JSP)

PES INSTITUTE OF TECHNOLOGY, SOUTH CAMPUS DEPARTMENT OF MCA INTERNAL TEST (SCHEME AND SOLUTION) II

HIBERNATE MOCK TEST HIBERNATE MOCK TEST IV

QTP MOCK TEST QTP MOCK TEST II

For live Java EE training, please see training courses at

Java Server Page (JSP)

Exercise. (1) Which of the following can not be used as the scope when using a JavaBean with JSP? a. application b. session c. request d.

HTML5 MOCK TEST HTML5 MOCK TEST IV

Java4340r: Review. R.G. (Dick) Baldwin. 1 Table of Contents. 2 Preface

GO - OPERATORS. This tutorial will explain the arithmetic, relational, logical, bitwise, assignment and other operators one by one.

Java Server Pages JSP

A n exception error occurs when a problem is

SRI VIDYA COLLEGE OF ENGINEERING & TECHNOLOGY- VIRUDHUNAGAR

QC MOCK TEST QC MOCK TEST

1Z Java EE 6 Web Component Developer Certified Expert Exam Summary Syllabus Questions

AIM. 10 September

Java.. servlets and. murach's TRAINING & REFERENCE 2ND EDITION. Joel Murach Andrea Steelman. IlB MIKE MURACH & ASSOCIATES, INC.

JSP Scripting Elements

Chapter 10 Servlets and Java Server Pages

Enterprise Computing with Java MCA-305 UNIT II. Learning Objectives. JSP Basics. 9/17/2013MCA-305, Enterprise Computing in Java

Application Development in JAVA. Data Types, Variable, Comments & Operators. Part I: Core Java (J2SE) Getting Started

CS506 Web Design & Development Final Term Solved MCQs with Reference

JAVA COURSES. Empowering Innovation. DN InfoTech Pvt. Ltd. H-151, Sector 63, Noida, UP

Anno Accademico Laboratorio di Tecnologie Web. Sviluppo di applicazioni web JSP

Introduction to Java Server Pages. Enabling Technologies - Plug-ins Scripted Pages

01KPS BF Progettazione di applicazioni web

This tutorial will teach you how to use Java Servlets to develop your web based applications in simple and easy steps.

UNIT I Java Bean, HTML & Javascript

Java J Course Outline

Servlet And JSP. Mr. Nilesh Vishwasrao Patil, Government Polytechnic, Ahmednagar. Mr. Nilesh Vishwasrao Patil

SNS COLLEGE OF ENGINEERING, Coimbatore

Java 2 Programmer Exam Cram 2

Module 4: SERVLET and JSP

********************************************************************

Data Source Name (Page 150) Ref: - After creating database, you have to setup a system Data Source Name (DSN).

Borland Application Server Certification. Study Guide. Version 1.0 Copyright 2001 Borland Software Corporation. All Rights Reserved.

Java SE7 Fundamentals

VB.NET MOCK TEST VB.NET MOCK TEST I

UNIVERSITY EXAMINATIONS: NOV/DEC 2011 REGULATION PERVASIVE COMPUTING PART A

String Analysis for the Detection of Web Application Flaws

IT6503 WEB PROGRAMMING. Unit-I

Transcription:

http://www.tutorialspoint.com JSP MOCK TEST Copyright tutorialspoint.com This section presents you various set of Mock Tests related to JSP Framework. You can download these sample mock tests at your local machine and solve offline at your convenience. Every mock test is supplied with a mock test key to let you verify the final score and grade yourself. JSP MOCK TEST III Q 1 - What are cookies? A - Cookies are text files stored on the client computer and they are kept for various information tracking purpose. B - Cookies are binary files stored on the server computer and they are kept for various information tracking purpose. C - Cookies are binary files stored on the client computer and they are kept for data storage purpose. Q 2 - Which of the following is true about iselignored Attribute? A - The iselignored option gives you the ability to disable the evaluation of scriplets. B - The iselignored option gives you the ability to disable the evaluation of java code in jsp. C - The iselignored option gives you the ability to disable the evaluation of Expression Language EL expressions. Q 3 - What is default value of iselignored Attribute? Q 4 - Which of the following is true about buffer Attribute? A - The buffer attribute specifies the size of buffer. B - The buffer attribute specifies buffering characteristics for the server output response object.

Q 5 - What happens when buffer is set to a value "none"? A - Servlet output is immediately directed to the response output object. B - Compilation error. Q 6 - Which of the following is true about autoflush Attribute? A - The autoflush attribute can specify that buffered output should be flushed automatically when the buffer is filled. B - The autoflush attribute can specify that an exception should be raised to indicate buffer overflow. Q 7 - What is default value of autoflush Attribute? Q 8 - What happens when autoflush is set to a value "false"? A - JSP container throws exceptionto indicate buffer overflow when buffer is filled. B - JSP container flushed the buffered output when buffer is filled. Q 9 - Which of the following is true about extends Attribute? A - The extends attribute can be used to define a subclass of generated servlet. B - The extends attribute is used to specify a superclass that the generated servlet must extend. Q 10 - Which of the following is true about import Attribute? A - The import attribute serves the same function as, and behaves like, the Java import statement. B - The value for the import option is the name of the package you want to import.

Q 11 - Which of the following is true about info Attribute? A - The info attribute lets you provide a description of the JSP. B - The info attribute is used by JSP container for optimization of generated servlet code. Q 12 - Which of the following is true about isthreadsafe Attribute? A - The isthreadsafe option marks a page as being thread-safe. B - If you set the isthreadsafe option to false, the JSP engine makes sure that only one thread at a time is executing your JSP. C - By default, all JSPs are considered thread-safe. Q 13 - Which of the following is true about session Attribute? A - The session attribute indicates whether or not the JSP page uses HTTP sessions. B - A value of true means that the JSP page has access to a builtin session object. C - A value of false means that the JSP page cannot access the builtin session object. Q 14 - Which of the following is true about iselignored Attribute? A - The iselignored option gives you the ability to disable the evaluation of Expression Language EL expressions. B - The default value of the iselignored attribute is true. Q 15 - What is the default value of iselignored attribute? Q 16 - What will happen if iselignored attribute is set as false? A - Expression Language EL expressions will not be evaluated and will be treated as static text. B - JSP container will ignore the EL expressions similar to comments.

Q 17 - Which of the following is true about isscriptingenabled Attribute? A - The isscriptingenabled attribute determines if scripting elements are allowed for use. B - The default value true enables scriptlets, expressions, and declarations. Q 18 - What is the default value of isscriptingenabled attribute? Q 19 - What will happen if isscriptingenabled attribute is set as false? A - A translation-time error will be raised if the JSP uses any scriptlets, expressions non EL, or declarations. B - JSP container will ignore the any scriptlets, expressions non EL, or declarations similar to comments. Q 20 - Which of the following is true about include directive? A - The include directive is used to include a file during the translation phase. B - include directive tells the container to merge the content of other external files with the current JSP during the translation phase. Q 21 - Is it possible to include files using absolute path in a JSP page using include directive? Q 22 - Which of the following depicts correct order of phases in JSP life cycle? A - Compilation, Initialization, Execution, Cleanup B - Initialization, Compilation, Cleanup, Execution C - Initialization, Cleanup, Compilation, Execution

D - Cleanup, Compilation, Initialization, Execution Q 23 - Which of the following step is taken by JSP container during Compilation phase? A - Parsing the JSP. B - Turning the JSP into a servlet. C - Compiling the servlet. Q 24 - Which of the following is true about Initialization phase in JSP life cycle? A - When a container loads a JSP it invokes the jspinit method before servicing any requests. B - Container invokes _jspservice method during Initialization phase. Q 25 - Which of the following is true about Execution phase in JSP life cycle? A - Whenever a browser requests a JSP and the page has been loaded and initialized, the JSP engine invokes the _jspservice method in the JSP. B - The _jspservice method of a JSP is invoked once per request and is responsible for generating the response for that request. C - The _jspservice method of a JSP generates responses to all seven of the HTTP methods ie. GET, POST, DELETE etc. ANSWER SHEET Question Number Answer Key 1 A 2 C 3 A 4 C 5 A 6 C 7 A 8 A 9 B 10 C

11 A 12 D 13 D 14 C 15 A 16 A 17 C 18 A 19 A 20 C 21 A 22 A 23 C 24 A 25 D Loading [MathJax]/jax/output/HTML-CSS/jax.js