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.
Which CSS property is used to specify the stacking order of positioned elements?
- A . position
- B . display
- C . z-index
- D . align-items
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.
In HTML, which attribute is used to link to an external CSS file?
- A . src
- B . href
- C . rel
- D . type
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)
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
Which of the following file formats supports transparency?
- A . JPEG
- B . PNG
- C . SVG
- D . Both PNG and SVG
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
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
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
When adding an image to an HTML document, which attribute is essential for accessibility?
- A . src
- B . alt
- C . title
- D . href
Which HTTP status codes indicate success and client error? (Choose two)
- A . 200
- B . 404
- C . 500
- D . 302
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.
In Node.js, which function is used to include built-in modules?
- A . include()
- B . require()
- C . import()
- D . getModule()
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; }
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)
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
Which CSS property is used to control the visibility of an element?
- A . display
- B . visibility
- C . opacity
- D . view
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
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
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
For embedding audio files in HTML, which of the following elements is appropriate?
- A . <img>
- B . <audio>
- C . <video>
- D . <iframe>
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
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
Which of these are commonly used open source database management systems? (Choose two)
- A . Microsoft SQL Server
- B . Oracle Database
- C . MySQL
- D . PostgreSQL
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
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
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
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
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