LPI Web Development Essentials (030-100) Certification Sample Questions

Web Development Essentials Dumps, 030-100 Dumps, 030-100 PDF, Web Development Essentials VCE, LPI 030-100 VCE, LPI Web Development Essentials 030 PDFThe purpose of this Sample Question Set is to provide you with information about the LPI Web Development Essentials - 030 exam. These sample questions will make you very familiar with both the type and the difficulty level of the questions on the 030-100 certification test. To get familiar with real exam environment, we suggest you try our Sample LPI Web Development Essentials Certification Practice Exam. This sample practice exam gives you the feeling of reality and is a clue to the questions asked in the actual LPI Web Development Essentials certification exam.

These sample questions are simple and basic questions that represent likeness to the real LPI 030-100 exam questions. To assess your readiness and performance with real time scenario based questions, we suggest you prepare with our Premium LPI Web Development Essentials Certification Practice Exam. When you solve real time scenario based questions practically, you come across many difficulties that give you an opportunity to improve.

LPI 030-100 Sample Questions:

01. A developer tests several comparisons with console.log().
Which two expressions evaluate to true?
(Choose two.)
a) '10' < '9'
b) '20' > '3'
c) '10' < 9
d) 7 > '12'
e) 5 >= '5'
 
02. Users of a banking site stay logged in through a session cookie. Transfers are made by a form that POSTs the fields to and amount to a route defined with app.post('/transfer', ...). A logged-in user opens a page on another site, which silently submits a hidden form to /transfer. The browser includes the session cookie, and the transfer succeeds.
Which attack is this, and which measure stops it?
a) Cross-site scripting; print the amount with <%= %> instead of <%- %>
b) SQL injection; pass the amount to db.run() as a bound parameter for a question-mark placeholder
c) Cross-site request forgery; change the transfer form to method="get"
d) Cross-site request forgery; put a secret token in the form and reject posts that lack it
 
03. Each of the following snippets is run on its own, in a new script.
Which two snippets print 16 to the console?
(Choose two.)
a) console.log(square(4)); function square(n) { return n * n; }
b) console.log(square(4)); const square = function (n) { return n * n; };
c) console.log(square(4)); var square = function (n) { return n * n; };
d) const square = function (n) { return n * n; }; console.log(square(4));
e) function square(n) { return n * n; } console.log(square);
 
04. An if statement is written without braces:
let x = 0;
if (x > 0)
console.log('positive');
console.log('checked');
What is printed?
a) Nothing at all
b) positive, then checked
c) checked only, because without braces the if controls just the next statement
d) positive only
 
05. The only rule in a stylesheet is:
.panel { color: maroon; border: 2px solid gray; padding: 12px; }
The markup is <div class="panel"><span>Total</span></div>.
Which statements about the span are true?
(Choose two.)
a) Its text is maroon, inherited from the div
b) It has no border of its own
c) It draws its own 2px gray border
d) It gets its own 12px padding, inherited from the div
e) Its text uses the browser default color, because no rule targets the span
 
06. Consider this document:
<!DOCTYPE html>
<html><head><title>Spring Sale</title>
<meta name="description" content="Big discounts"></head>
<body><!-- <h1>Winter Sale</h1> -->
<h1>Spring Sale</h1><p>Ends Friday</p></body></html>
Which text does the browser display in the page area of the window?
a) Winter Sale, Spring Sale and Ends Friday
b) Big discounts, Spring Sale and Ends Friday
c) Spring Sale, Spring Sale and Ends Friday
d) Spring Sale and Ends Friday
 
07. After login, a web application served over plain HTTP sends Set-Cookie: SID=7f3a9c; HttpOnly. Users often work from public Wi-Fi, where an attacker on the same network could copy the cookie and take over their session.
Which change protects the session id from being read on the network?
a) Send the login form with POST instead of GET, still over plain HTTP
b) Rely on HttpOnly, which already hides the cookie from network traffic
c) Use HTTPS for every page and mark the cookie Secure
d) Move the session id from the cookie into a hidden field on every page
 
08. Team A writes a program in C, compiles it on a 64-bit x86 Linux machine and ships only the resulting executable file. Team B ships a Python script as source code.
What does a customer need in order to run each program?
a) A C compiler for the executable, and a Python interpreter for the script
b) A Linux x86-64 system for the executable, and a Python interpreter for the script
c) Any operating system for the executable, and nothing extra for the script
d) A C interpreter for the executable, and a Python compiler for the script
 
09. During a two-day maintenance window, every request for /shop must be sent to /shop-temp. After the window, /shop will be used again and the redirect removed.
Which redirect response should the server send, and why?
a) 302, because clients keep using /shop and do not store the redirect as permanent
b) 301, because a 302 cannot carry the new address in a Location header
c) 302, because it tells browsers to replace /shop with /shop-temp in their saved bookmarks
d) 301, because browsers store the redirect and then send every later visit straight to /shop-temp
 
10. The URL /admin/reports is restricted to administrators. Visitor 1 sends the request without any credentials. Visitor 2 has logged in successfully as an ordinary user without administrator rights.
Which status codes fit the two responses?
a) 403 for visitor 1, 401 for visitor 2
b) 401 for visitor 1, 403 for visitor 2
c) 401 for both visitors
d) 500 for visitor 1, 403 for visitor 2

Answers:

Question: 01
Answer: a, e
Question: 02
Answer: d
Question: 03
Answer: a, d
Question: 04
Answer: c
Question: 05
Answer: a, b
Question: 06
Answer: d
Question: 07
Answer: c
Question: 08
Answer: b
Question: 09
Answer: a
Question: 10
Answer: b

Note: For any error in LPI Web Development Essentials (030-100) certification exam sample questions, please update us by writing an email on feedback@edusum.com.

Rating: 5 / 5 (77 votes)