
LPI Web Development Essentials
Domain 5Objective 2
035.2 NodeJS Express Basics (weight: 4) WEB-DEVELOPMENT-ESSENTIALS Practice Questions (Page 5)
Part of the 035 NodeJS Server Programming domain, which makes up ~15% of our current practice bank. Linux Professional Institute does not publish an official question count, but from its 60-minute exam (~25–40 total, ~4–6 in this domain), expect 1–2 from this objective — we provide 33 practice questions to prepare you well beyond it. (estimate)
33questions here
7free pages
12concepts
Questions 21–25
- 21
In the route handler app.get('/user', (req, res) => { res.render('profile', { name: 'Alice' }); }), how can the template 'profile.ejs' access the value 'Alice'?
Select an answer first - 22
How can you serve a static file named 'index.html' when a user visits the root path '/'?
Select an answer first - 23
Which middleware is required to access form data submitted via POST in Express?
Select an answer first - 24
An EJS template needs to display a list of items from an array passed as 'items'. Each item has a 'name' property. The developer wants to show 'No items' if the array is empty. Which EJS code correctly handles this?
Select an answer first - 25
How can EJS templates help prevent XSS attacks?
Select an answer first
Finished these 5 questions?
Review the revealed explanations, or continue through the curriculum.
Free Basic Practice is a study aid with revealable answers — not a scored exam. Examers.io is independent and not affiliated with or endorsed by Linux Professional Institute. “WEB-DEVELOPMENT-ESSENTIALS” is a trademark of its owner, used for identification only.