Site icon Exam4Training

Lpi 030-100 Web Development Essentials – Exam 030, version 1.0 Online Training

Question #1

In the context of web content, how do static and dynamic content differ?

  • A . Static content is served from a database, while dynamic content is served from a file system.
  • B . Static content is the same for all users, while dynamic content can change based on user interaction.
  • C . Static content is used for web applications, while dynamic content is used for websites.
  • D . Static content is cached by the browser, while dynamic content is not.

Reveal Solution Hide Solution

Correct Answer: B
Question #2

Which CSS property is used to specify the stacking order of positioned elements?

  • A . position
  • B . display
  • C . z-index
  • D . align-items

Reveal Solution Hide Solution

Correct Answer: C
Question #3

Which of the following are true about compilers and interpreters? (Choose two)

  • A . Compilers convert source code into machine code before runtime.
  • B . Interpreters execute the source code line by line during runtime.
  • C . Compilers are used to enhance the security of a source code.
  • D . Interpreters translate the entire program at once and then execute it.

Reveal Solution Hide Solution

Correct Answer: AB
Question #4

In HTML, which attribute is used to link to an external CSS file?

  • A . src
  • B . href
  • C . rel
  • D . type

Reveal Solution Hide Solution

Correct Answer: B
Question #5

In Express.js, how are EJS templates rendered?

  • A . res.send(templateName, data)
  • B . res.render(templateName, data)
  • C . res.ejs(templateName, data)
  • D . res.template(templateName, data)

Reveal Solution Hide Solution

Correct Answer: B
Question #6

Which of the following are roles of web browsers? (Choose two)

  • A . Executing JavaScript code
  • B . Storing cookies for user authentication
  • C . Hosting web applications
  • D . Compiling high-level code into machine code

Reveal Solution Hide Solution

Correct Answer: AB
Question #7

Which of the following file formats supports transparency?

  • A . JPEG
  • B . PNG
  • C . SVG
  • D . Both PNG and SVG

Reveal Solution Hide Solution

Correct Answer: D
Question #8

What is the primary purpose of an API in web development?

  • A . To increase the processing speed of the application
  • B . To enable communication between different software components
  • C . To encrypt data transmissions
  • D . To provide a graphical interface for users

Reveal Solution Hide Solution

Correct Answer: B
Question #9

What is the primary role of HTTPS and TLS in web communications?

  • A . To compress data to reduce bandwidth usage
  • B . To secure communications between client and server
  • C . To increase the speed of data transfer
  • D . To convert static content to dynamic content

Reveal Solution Hide Solution

Correct Answer: B
Question #10

In the context of web application architecture, what is the primary function of a web server?

  • A . To store client data persistently
  • B . To host web applications and handle HTTP requests
  • C . To render web pages on the client side
  • D . To provide dynamic IP addressing for clients

Reveal Solution Hide Solution

Correct Answer: B

Question #11

When adding an image to an HTML document, which attribute is essential for accessibility?

  • A . src
  • B . alt
  • C . title
  • D . href

Reveal Solution Hide Solution

Correct Answer: B
Question #12

Which HTTP status codes indicate success and client error? (Choose two)

  • A . 200
  • B . 404
  • C . 500
  • D . 302

Reveal Solution Hide Solution

Correct Answer: AB
Question #13

In CSS, what is the difference between the margin and padding properties?

  • A . margin controls the space inside an element, while padding controls the space outside.
  • B . margin and padding have no differences.
  • C . margin controls the space outside an element, while padding controls the space inside.
  • D . padding is used for text alignment, whereas margin is used for element positioning.

Reveal Solution Hide Solution

Correct Answer: C
Question #14

In Node.js, which function is used to include built-in modules?

  • A . include()
  • B . require()
  • C . import()
  • D . getModule()

Reveal Solution Hide Solution

Correct Answer: B
Question #15

What is the correct syntax for a CSS rule?

  • A . selector { property = value; }
  • B . selector { property : value }
  • C . selector -> { property : value; }
  • D . { selector : property = value; }

Reveal Solution Hide Solution

Correct Answer: B
Question #16

Which units are commonly used in CSS for responsive design? (Choose two)

  • A . Pixels (px)
  • B . Centimeters (cm)
  • C . Relative units (em, rem, vw, vh)
  • D . Kilograms (kg)

Reveal Solution Hide Solution

Correct Answer: AC
Question #17

In CSS, what are media queries primarily used for?

  • A . To add media content like video and audio
  • B . To create different styles for different media types and screen sizes
  • C . To query and retrieve media files from the server
  • D . To automatically play media files on a webpage

Reveal Solution Hide Solution

Correct Answer: B
Question #18

Which CSS property is used to control the visibility of an element?

  • A . display
  • B . visibility
  • C . opacity
  • D . view

Reveal Solution Hide Solution

Correct Answer: AB
Question #19

How do you execute an SQL query in a NodeJS application?

  • A . Using the execute() method of the database connection object
  • B . With the runQuery() function
  • C . By invoking the sql.execute() function
  • D . Using the query() method of the database connection object

Reveal Solution Hide Solution

Correct Answer: D
Question #20

What is the purpose of the position property in CSS?

  • A . To specify how text is aligned within an element
  • B . To determine the method of positioning for an element
  • C . To create animated effects
  • D . To define the border style of an element

Reveal Solution Hide Solution

Correct Answer: B

Question #21

What is the primary role of the WHERE clause in an SQL query?

  • A . To specify which table to select or delete data from
  • B . To define the conditions that must be met for rows to be included in the result set
  • C . To join multiple tables
  • D . To limit the number of returned records

Reveal Solution Hide Solution

Correct Answer: B
Question #22

For embedding audio files in HTML, which of the following elements is appropriate?

  • A . <img>
  • B . <audio>
  • C . <video>
  • D . <iframe>

Reveal Solution Hide Solution

Correct Answer: B
Question #23

What is the primary role of HTML in web development?

  • A . To create the structure and content of a web page
  • B . To style and layout web pages
  • C . To add dynamic functionalities to web pages
  • D . To manage the database of a website

Reveal Solution Hide Solution

Correct Answer: A
Question #24

In SQL, what is the function of the LIMIT clause?

  • A . To restrict the number of rows returned by a query
  • B . To specify the join conditions between tables
  • C . To sort the result set in ascending or descending order
  • D . To group rows that have the same values in specified columns

Reveal Solution Hide Solution

Correct Answer: A
Question #25

Which of these are commonly used open source database management systems? (Choose two)

  • A . Microsoft SQL Server
  • B . Oracle Database
  • C . MySQL
  • D . PostgreSQL

Reveal Solution Hide Solution

Correct Answer: CD
Question #26

What distinguishes an application server from a web server?

  • A . An application server only serves static content
  • B . An application server is responsible for handling database queries
  • C . An application server provides business logic for an application
  • D . An application server can only handle HTTP requests

Reveal Solution Hide Solution

Correct Answer: C
Question #27

What is the main purpose of WebAssembly in the context of web application development?

  • A . To increase the execution speed of client-side scripts
  • B . To create complex SQL queries
  • C . To manage server-side databases
  • D . To handle email services in web applications

Reveal Solution Hide Solution

Correct Answer: A
Question #28

How are comments added in CSS?

  • A . // This is a comment
  • B . <!– This is a comment –>
  • C . /* This is a comment */
  • D . # This is a comment

Reveal Solution Hide Solution

Correct Answer: C
Question #29

How are HTTP URLs typically mapped to file system paths on a web server?

  • A . Through the server’s firewall settings
  • B . By using the Domain Name System (DNS)
  • C . According to the server’s directory structure and configuration files
  • D . By encrypting the URL into a file path

Reveal Solution Hide Solution

Correct Answer: C
Question #30

What are essential features of source code editors and Integrated Development Environments (IDEs)? (Choose two)

  • A . Ability to compile and execute code
  • B . Built-in web browser for testing web applications
  • C . Syntax highlighting and code completion
  • D . Network monitoring for security analysis

Reveal Solution Hide Solution

Correct Answer: AC
Exit mobile version