Become a GOLD member of Deccansoft and get access to 40+ courses!!
NewBatches/Webinars
Packages
Gold Membership
Bestseller
Microsoft Azure Suite & Suite Plus
Power Platform Acadamy
New
Azure DevOps Expert & Expert Plus
MS.NET Foundation For Beginners
MS.NET Full Stack Developer
UI / Web Development
SQL Server & MSBI Tools
Software Testing
Courses
MS.NET Courses (Includes Live Project)
Complete C#, OOPs and Windows Programing
ASP.NET MVC Online Training
ASP.NET WebForms
ASP.NET Core
WCF incl. Web Services and Remoting
WPF incl. MVVM and Prism
LINQ and Entity Framework
Live Project Training for Developing Enterprise Application
Live Project using Ntier Arch (.NET5 + EF Core + Angular)
Microservices using .NET Core
Gold Membership
CareerStep IT Program
Client-side UI Technologies
Building Static Web Pages using HTML and CSS
JavaScript and HTML DOM
jQuery, AJAX and JSON
Building Interactive Web Pages using HTML5 and CSS3
BootStrap + Live Examples
AngularJS + Live Project
Angular + Typescript
ReactJS
KnockoutJS
Xamarin
SQL Server + MSBI
SQL Server 2017
Querying Data with Transact-SQL(70-761)
SQL Server Integration Service (SSIS)
SQL Server Reporting Service (SSRS)
SQL Service Analysis Service (SSAS)
Cloud Computing / Azure / AWS
AZ-900: Microsoft Azure Fundamentals
Azure Suite (AZ-104+AZ-204+AZ-305+ AZ-500)
AZ-104: Microsoft Azure Administrator
AZ-204: Developing Solutions for Microsoft Azure
AZ-305: Microsoft Azure Architect Technologies and Design
DP-203: Data Engineering on Microsoft Azure
Amazon Web Services (AWS)
DevOps Expert
AZ-400: Microsoft Azure DevOps
Docker by Sandeep Soni
Kubernetes by Sandeep Soni
Docker & Kubernetes by Rahul Rampurkar
IaC Using Terraform
Powershell
Microsoft Power Platform
Microsoft Power Platform
Data Analytics using PowerBI (DA-100)
Testing Tools
Manual Testing
Selenium Testing with Java(Live Training)
Others
Python Programming
C and Data Structure
Core Java
OOPs and C++
Advance Java
Complete Azure Training
Pricing
Videos
Testimonials
Azure Certification
Contact Us
Login
Login or Register
×
Sign In
Register
Forgot Password?
How did you find us
WhatsApp
YouTube
LinkedIn
Facebook
Telegram
Twitter
Google
Referred by Friend
Refresh
Input symbols
By clicking Register, you accept to the
terms and conditions
and that you have read our
privacy policy.
Recover Password
×
Submit
Enquiry Now
Where did you come to know about us
WhatsApp
YouTube
LinkedIn
Facebook
LinkedIn Ad
Email
Twitter
Google
Referred
Other
Refresh
Input symbols
EL and JSTL
Interview Questions and Answer
1. 1.What is the main purpose of using EL?
Options:
a. To remove XML from JSP pages
b. To remove standard actions from JSP pages
c. To remove Java syntax from JSP pages
d. To remove complexity from JSP pages
Reveal Answer
2. 2.You can use EL alongside Java scripting elements?
Options:
a. true
b. false
Reveal Answer
3. 3.EL expressions are always evaluated from right to leftt.?
Options:
a. true
b. false
Reveal Answer
4. 4.Which of the following is an invalid EL identifer?
Options:
a. amy1
b. $amy1
c. *amy1
d. _amy1
Reveal Answer
5. 5.Which of the following is a reserved word and so can't be used as an EL identifer?
Options:
a. empty
b. erase
c. error
d. evoke
Reveal Answer
6. 6.What will be the output from the following expression? <% request.setAttribute("a", 15); request.setAttribute("b", 6); %> ${a%b}
Options:
a. 0
b. 3
c. -3
d. 9
e. -9
Reveal Answer
7. 7.When using the Short-circuit AND (and or &&) if the first operand returns false, the second operand will not be checked?
Options:
a. true
b. False
Reveal Answer
8. 8.When using the Short-circuit OR (or or ||) if the first operand returns true, the second operand will not be checked?
Options:
a. true
b. false
Reveal Answer
9. 9.What will be the output from the following expression? ${empty ""}
Options:
a. an exception will be thrown
b. null
c. true
d. false
Reveal Answer
10. 10. What will be the output from the following conditional operator? <% request.setAttribute("a", 6); request.setAttribute("b", 15); %> ${(requestScope.a lt requestScope.b)? "lower number" : "higher number"}
Options:
a. nothing
b. null
c. lower number
d. higher number
Reveal Answer
11. 11.Which operator has the highest precedence?
Options:
a. empty
b. instanceof
c. mod
d. not
Reveal Answer
12. 12.The . operator can be used to access JavaBeans and what other type of object?
Options:
a. Array
b. java.util.List
c. java.util.Map
Reveal Answer
13. 13.The first named variable (before the . operator) is either an attribute within one of the four scopes or what.?
Options:
a. A collection
b. An array
c. EL implicit object
d. JavaBean
Reveal Answer
14. 14. Which type of property access operator allows us to use non-conforming Java identifers?
Options:
a. . operator
b. [] operator
c. neither
d. both
Reveal Answer
15. 15.We can access the property of an object, where that object itself has been returned as the property of another object?
Options:
a. true
b. false
Reveal Answer
16. 16.Which type of property access operator allows us to use java.util.Map objects?
Options:
a. .operator
b. [] operator
c. neither
d. both
Reveal Answer
17. 17.Which EL implicit object is not of type java.util.Map?
Options:
a. cookie
b. header
c. initParam
d. pageContext
Reveal Answer
18. 18.Using array like syntax such as ${header.accept[1]} we can access secondary header values using the header EL implicit object.?
Options:
a. true
b. false
Reveal Answer
19. 19. The initParam EL implicit object allows access to servlet initialisation parameters?
Options:
a. true
b. false
Reveal Answer
20. 20. When using the cookie EL implicit object there is no need to iterate over the javax.servlet.http.HTTPServletRequest object to get to the required name?
Options:
a. true
b. false
Reveal Answer
21. 21.How many Core tag library actions are there?
Options:
a. 14
b. 12
c. 9
d. 17
Reveal Answer
22. 22.We can use the target and property attributes of the </c:set> action to assign a new property value to any object?
Options:
a. true
b. false
Reveal Answer
23. 23.The <c:remove> tag removes a scoped object?
Options:
a. true
b. false
Reveal Answer
24. 24.What type of error object is thrown from the <c:catch> tag?
Options:
a. java.lang.Error
b. java.lang.Exception
c. java.lang.Throwable
d. Any of the above
Reveal Answer
25. 25.Which type of Java conditional statement is the <c:choose> tag similar to?
Options:
a. if
b. switch
c. when
Reveal Answer
26. 26.Which Core iterator tag allows us to iterate over the body content a set number of times?
Options:
a. <c:forEach>
b. <c:forLoop>
c. <c:forTokens>
d. <c:forWhen>
Reveal Answer
27. 27.How many XML tag library actions are there?
Options:
a. 7
b. 10
c. 8
d. 14
Reveal Answer
28. 28.Which XML attribute allows us to specify XPath expressions?
Options:
a. allow
b. select
c. transform
d. view
Reveal Answer
29. 29.The XPath expression language that is global to all JSTL actions?
Options:
a. false
b. true
Reveal Answer
30. 30.An XPath variable must reference a java.lang.Object instance in any of the supported scopes?
Options:
a. true
b. false
Reveal Answer
31. 31.XPath expression bindings are mapped differently to their EL Implicit Objects counterparts?
Options:
a. true
b. false
Reveal Answer
32. 32.What is the default value of the type attribute for the <fmt:formatNumber> and <fmt:parseNumber> actions?
Options:
a. currency
b. number
c. percentage
Reveal Answer
33. 33.When using the <fmt:formatNumber> action the numeric value to be formatted can be specified using the value attribute or when omitted read from where?
Options:
a. The value attribute is mandatory and must be specified
b. The action is ignored
c. The value attribute is treated as a null value
d. The numeric value can be read from the tag's body content
Reveal Answer
34. 34.What is the default value of the type attribute for the <fmt:formatDate> and <fmt:parseDate> actions?
Options:
a. date
b. time
c. both
Reveal Answer
35. 35.When using the <fmt:formatDate> action if the scope attribute is specfied which other attribute must also be specified?
Options:
a. pattern
b. type
c. value
d. var
Reveal Answer
36. 36.How many time zone Ii8n actions are there?
Options:
a. 1
b. 2
c. 3
d. 4
Reveal Answer
Packages
Gold Membership
Microsoft Azure Suite &Suite Plus
Azure DevOps Expert &Expert Plus
MS.NET Foundation For Beginners
MS.NET Full Stack Developer
UI / Web Development
SQL Server & MSBI Tools
Software Testing
Resources
Blog
Deccansoft
AzureA2Z
Wall of Fame
On-Job Tech Support
About
About BestDotNetTraining
About Trainer
Testimonials
FAQ
Other links
About Us
Contact Us
Leave us a feedback
Sitemap
Privacy Policy
Terms & Conditions
Proudly Powered by