CIW Certification Suite β Questions and Answers
Question 1: What is the purpose of CSS3 @keyframes?
- To import font files for web use
- To specify breakpoints for responsive layouts
- To define reusable sets of CSS properties as named blocks
- To declare the intermediate steps in a CSS animation sequence (Correct answer)
Correct answer: To declare the intermediate steps in a CSS animation sequence
@keyframes defines the stages and styles of a CSS animation by specifying property values at specific percentage points during the animation.
Question 2: What does a 404 HTTP status code mean?
- The requested resource was not found on the server (Correct answer)
- The client is unauthorized to access the resource
- The request was successful
- The server is temporarily unavailable
Correct answer: The requested resource was not found on the server
A 404 Not Found error means the server could not locate the resource at the requested URL, often due to a broken or outdated link.
Question 3: What is a payment gateway in e-commerce?
- The checkout page design template
- A service that authorizes and processes online credit/debit card transactions (Correct answer)
- A digital currency wallet
- A physical bank ATM connected to the internet
Correct answer: A service that authorizes and processes online credit/debit card transactions
A payment gateway is a merchant service that securely transmits payment data between buyers, merchants, and financial institutions.
Question 4: What is the correct HTML5 doctype declaration?
- <!DOCTYPE html> (Correct answer)
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 5.0//EN">
- <html version="5">
- <?xml version="1.0" encoding="UTF-8"?>
Correct answer: <!DOCTYPE html>
<!DOCTYPE html> is the simplified HTML5 doctype that instructs browsers to render the page in standards mode.
Question 5: What is the purpose of a shopping cart on an e-commerce website?
- Track user login sessions
- Manage supplier invoices
- Allow customers to select and temporarily hold items before purchasing (Correct answer)
- Generate product reviews
Correct answer: Allow customers to select and temporarily hold items before purchasing
An e-commerce shopping cart lets users accumulate selected products before proceeding to checkout and payment.
Question 6: In HTML, which attribute is used to specify an alternative text description for an image?
- title
- src
- caption
- alt (Correct answer)
Correct answer: alt
The alt attribute provides alternative text for images, aiding accessibility and displaying when images fail to load.
Question 7: Which HTML5 element represents a self-contained composition that could be independently distributed, such as a blog post?
- <article> (Correct answer)
- <main>
- <aside>
- <section>
Correct answer: <article>
The <article> element represents content that is self-contained and could stand alone, such as a news article, blog post, or forum entry.
Question 8: Which CSS3 pseudo-class selector targets an element only when it is the first child of its parent?
- element:first-child (Correct answer)
- element:first
- element:first-type
- element:nth-child(1st)
Correct answer: element:first-child
:first-child matches an element that is the very first child node within its parent, regardless of element type.
Question 9: What is a Content Delivery Network (CDN) primarily used for?
- Distribute web content from geographically dispersed servers to reduce latency (Correct answer)
- Monitor server uptime
- Write server-side code
- Send marketing emails
Correct answer: Distribute web content from geographically dispersed servers to reduce latency
A CDN caches and serves static assets from servers geographically close to the end user, reducing load times and server load.
Question 10: What is the difference between client-side and server-side scripting?
- Client-side runs in the user's browser; server-side runs on the web server before sending content to the browser (Correct answer)
- Client-side uses Python; server-side uses JavaScript
- There is no difference β they are the same
- Client-side handles databases; server-side handles design
Correct answer: Client-side runs in the user's browser; server-side runs on the web server before sending content to the browser
Client-side scripts (like JavaScript) execute in the visitor's browser, while server-side scripts (like PHP or Node.js) run on the server and send results to the browser.
Question 11: A network administrator wants to limit broadcast domains without using a router. Which technology should be used?
- Repeater
- VLAN (Correct answer)
- Hub
- Bridge
Correct answer: VLAN
VLANs (Virtual Local Area Networks) logically segment a network at Layer 2, creating separate broadcast domains on the same physical switch.
Question 12: What does JSON.stringify() do?
- Parses a JSON string into a JavaScript object
- Converts a JavaScript value into a JSON-formatted string (Correct answer)
- Minifies a JSON object by removing whitespace
- Validates whether a string is valid JSON
Correct answer: Converts a JavaScript value into a JSON-formatted string
JSON.stringify() serializes a JavaScript object or value into a JSON string representation.
Question 13: Which of the following best describes cloud computing in a business context?
- Using only wired internet connections
- Storing data only on physical office servers
- Delivering computing services β servers, storage, software β over the internet on demand (Correct answer)
- A type of cybersecurity firewall
Correct answer: Delivering computing services β servers, storage, software β over the internet on demand
Cloud computing provides on-demand access to shared computing resources over the internet, eliminating the need for large on-premise infrastructure.
Question 14: Which HTML5 element is used to draw raster graphics dynamically via JavaScript?
- <canvas> (Correct answer)
- <svg>
- <graphics>
- <draw>
Correct answer: <canvas>
The <canvas> element provides a resolution-dependent bitmap area that JavaScript can use to render 2D graphics, charts, and animations.
Question 15: What is the primary purpose of the HTML5 <figure> and <figcaption> elements?
- To associate a caption with self-contained content like images or diagrams (Correct answer)
- To display mathematical figures and equations
- To embed SVG vector figures inline
- To create responsive image grids
Correct answer: To associate a caption with self-contained content like images or diagrams
<figure> wraps self-contained media (images, code, diagrams), and <figcaption> provides an optional accessible caption linked to that figure.
Question 16: In HTML5, which element is used to define a section of navigation links?
- <menu>
- <sidebar>
- <nav> (Correct answer)
- <links>
Correct answer: <nav>
The HTML5 <nav> element is a semantic element that defines a set of navigation links within a webpage.
Question 17: What type of relationship exists when a row in Table A can relate to many rows in Table B, and a row in Table B can also relate to many rows in Table A?
- Many-to-many (Correct answer)
- One-to-one
- Self-referencing
- One-to-many
Correct answer: Many-to-many
A many-to-many relationship requires a junction (bridge) table containing foreign keys to both related tables.
Question 18: Which type of network covers a large geographic area such as a country or continent?
- PAN (Personal Area Network)
- LAN (Local Area Network)
- WAN (Wide Area Network) (Correct answer)
- MAN (Metropolitan Area Network)
Correct answer: WAN (Wide Area Network)
A WAN (Wide Area Network) spans large geographical areas and is used to connect multiple LANs across cities, countries, or continents.
Question 19: What causes a computer to have several open ports, reboot without notice, suddenly turn off the monitor, play sounds out of the blue, and have the hard drive light flash continuously?
- The computer has been infected with an illicit server. (Correct answer)
- The computer is experiencing a denial-of-service attack.
- The computer has been infected with a polymorphic virus.
- The computer has been infected by a worm.
Correct answer: The computer has been infected with an illicit server.
The symptoms described, such as open ports, reboots, monitor turning off, sounds, and continuous hard drive activity, are characteristic of an illicit server (often a Remote Access Trojan or RAT). This type of malware allows an attacker to remotely control the compromised computer, leading to these unusual and unauthorized behaviors. It essentially turns the victim's machine into a server controlled by the attacker.
Question 20: Which option best encapsulates the differences between a mobile app and a mobile Web site since the introduction of HTML5?
- A mobile app is faster because it does not necessarily use the browser. (Correct answer)
- A mobile Web site is faster because it uses the mobile phoneβs default browser.
- A mobile Web site cannot create an immersive experience for users.
- A mobile app can be used on any operating system.
Correct answer: A mobile app is faster because it does not necessarily use the browser.
Mobile apps are typically compiled code that runs natively on the device's operating system, allowing them to leverage device hardware and resources directly. This often results in better performance and a more responsive user experience compared to mobile websites, which run within a browser and are limited by browser rendering and network speed. While HTML5 has improved mobile web capabilities, native apps still often offer superior speed and integration.
Question 21: What does the HTML `alt` attribute on an `<img>` tag primarily provide?
- Image title tooltip
- Image dimensions
- Image file path
- Alternative text for accessibility and SEO (Correct answer)
Correct answer: Alternative text for accessibility and SEO
The `alt` attribute supplies descriptive text used by screen readers and search engines when an image cannot be displayed.
Question 22: Which CSS3 function creates a smooth color transition from one point to another along a straight line?
- color-gradient()
- radial-gradient()
- gradient()
- linear-gradient() (Correct answer)
Correct answer: linear-gradient()
linear-gradient() generates an image that transitions between colors along a straight line at a specified angle or direction.
Question 23: Which CSS box model property creates space outside an element's border, separating it from other elements?
- margin (Correct answer)
- padding
- outline
- border-spacing
Correct answer: margin
Margin is the space outside an element's border that separates it from neighboring elements.
Question 24: What is e-commerce?
- Email marketing only
- The buying and selling of goods and services over the internet (Correct answer)
- Electronic document management
- Internet service provider billing
Correct answer: The buying and selling of goods and services over the internet
E-commerce encompasses all commercial transactions β buying, selling, and exchanging goods or services β conducted electronically over the internet.
Question 25: What CSS3 property applies shadow effects behind an element's border box?
- drop-shadow
- box-shadow (Correct answer)
- text-shadow
- element-shadow
Correct answer: box-shadow
box-shadow applies one or more shadow effects to the exterior of an element's box, defined by offset, blur, spread, and color values.
Question 26: What is web hosting?
- A service that stores website files on a server and makes them accessible via the internet (Correct answer)
- Sending newsletters to subscribers
- The process of designing website graphics
- A type of web browser plugin
Correct answer: A service that stores website files on a server and makes them accessible via the internet
Web hosting provides server space, bandwidth, and infrastructure to store and serve website files to visitors worldwide.
Question 27: What is a denial-of-service (DoS) attack?
- Overwhelming a server or network with traffic to make it unavailable to legitimate users (Correct answer)
- Injecting malicious code into a database
- Stealing user credentials via email
- Intercepting encrypted communications
Correct answer: Overwhelming a server or network with traffic to make it unavailable to legitimate users
A DoS attack floods a target system with requests, consuming resources and preventing legitimate users from accessing services.
Question 28: What is the purpose of an intrusion detection system (IDS)?
- Monitor network or system activity for malicious behavior and generate alerts (Correct answer)
- Manage user passwords and access rights
- Encrypt all network communications
- Block all incoming network traffic
Correct answer: Monitor network or system activity for malicious behavior and generate alerts
An IDS monitors traffic and system events for signs of attacks or policy violations, alerting administrators when suspicious activity is detected.
Question 29: What is a wireframe's role in the web development process?
- Test server load capacity
- Write the final production code
- Create a low-fidelity structural layout to plan page content and user interface before coding begins (Correct answer)
- Generate database schemas
Correct answer: Create a low-fidelity structural layout to plan page content and user interface before coding begins
A wireframe is a skeletal blueprint created early in the design process to define page structure, layout, and content hierarchy before visual design.
Question 30: What does URL stand for and what is its purpose?
- Universal Resource Locator β specifies the address of a resource on the internet (Correct answer)
- User Registration Login β authenticates site visitors
- Unified Routing Language β defines network routing rules
- Universal Request Layer β handles HTTP requests
Correct answer: Universal Resource Locator β specifies the address of a resource on the internet
A URL (Uniform Resource Locator) is the full address used to access a specific resource on the internet, including protocol, domain, and path.
Question 31: In internet marketing, what is a conversion rate?
- The percentage of website visitors who complete a desired action (Correct answer)
- The ratio of organic to paid traffic
- The speed of currency conversion in international sales
- The rate at which images load on a page
Correct answer: The percentage of website visitors who complete a desired action
Conversion rate measures how effectively a website turns visitors into customers or leads by calculating desired actions divided by total visits.
Question 32: Which CSS3 flexbox property aligns flex items along the cross axis (perpendicular to the main axis)?
- align-items (Correct answer)
- flex-wrap
- flex-direction
- justify-content
Correct answer: align-items
align-items sets the default alignment for all flex items along the cross axis of the flex container.
Question 33: Which CSS3 property controls the speed curve of a transition effect?
- animation-timing
- transition-speed
- transition-timing-function (Correct answer)
- transition-curve
Correct answer: transition-timing-function
transition-timing-function specifies the acceleration curve (ease, linear, ease-in, ease-out, cubic-bezier, etc.) for a CSS transition.
Question 34: Which CSS3 property is used to add rounded corners to an element's border box?
- border-style
- rounded-corner
- corner-radius
- border-radius (Correct answer)
Correct answer: border-radius
border-radius accepts one to four length values and applies rounded corners to the corners of an element's outer border edge.
Question 35: Which business model describes a company selling products directly to consumers online?
- C2C (Consumer-to-Consumer)
- B2G (Business-to-Government)
- B2B (Business-to-Business)
- B2C (Business-to-Consumer) (Correct answer)
Correct answer: B2C (Business-to-Consumer)
B2C (Business-to-Consumer) is the model where businesses sell directly to individual end-user consumers via the internet.
Question 36: What is the primary purpose of a privacy policy on a website?
- Prevent search engine indexing
- Improve page load speed
- Define the site's refund policy
- Inform users how their personal data is collected, used, and protected (Correct answer)
Correct answer: Inform users how their personal data is collected, used, and protected
A privacy policy discloses how a site collects, uses, stores, and shares users' personal information, often required by law.
Question 37: Which of the following is required to build a WAN?
- A bridge
- A Channel Service Unit/Data Service Unit (CSU/DSU)
- A hub
- A router (Correct answer)
Correct answer: A router
A router is essential for building a WAN because it connects different networks and directs data traffic between them. Routers operate at Layer 3 of the OSI model, using IP addresses to determine the best path for data packets across geographically dispersed networks. While other devices connect within a single network segment, a router is necessary to interconnect distinct networks into a WAN.
Question 38: In CSS3, which value of the 'position' property removes an element from the normal document flow and positions it relative to the nearest positioned ancestor?
- sticky
- fixed
- absolute (Correct answer)
- relative
Correct answer: absolute
position: absolute removes the element from document flow and positions it based on the nearest ancestor with a non-static position.
Question 39: Which HTTP status code indicates that a requested resource has been permanently moved to a new URL?
- 500
- 404
- 301 (Correct answer)
- 200
Correct answer: 301
HTTP 301 (Moved Permanently) tells browsers and search engines that a resource has permanently relocated to a new URL.
Question 40: What is the CAN-SPAM Act designed to regulate?
- Commercial email messages sent to consumers (Correct answer)
- Social media advertising
- Spam phone calls and robocalls
- Online advertising cookies
Correct answer: Commercial email messages sent to consumers
The CAN-SPAM Act establishes rules for commercial email in the US, requiring honest headers, clear opt-out mechanisms, and physical addresses.
Question 41: Which HTML5 element is used to define the main content area of a document, excluding headers, footers, and navigation?
- <content>
- <body>
- <article>
- <main> (Correct answer)
Correct answer: <main>
The <main> element identifies the dominant content of the document body and should appear only once per page.
Question 42: Which event is fired when the browser has fully loaded the HTML and built the DOM, but before images and stylesheets finish loading?
- DOMContentLoaded (Correct answer)
- readystatechange
- load
- beforeunload
Correct answer: DOMContentLoaded
DOMContentLoaded fires when the HTML document is fully parsed and the DOM is ready, without waiting for external resources.
Question 43: What is affiliate marketing?
- Marketing limited to social media platforms
- Marketing done by company employees only
- A performance-based model where affiliates earn commissions for driving traffic or sales to a merchant (Correct answer)
- A type of email spam campaign
Correct answer: A performance-based model where affiliates earn commissions for driving traffic or sales to a merchant
Affiliate marketing pays third-party publishers a commission for generating traffic or sales for a merchant's products via tracked links.
Question 44: What is the key difference between a full-duplex and half-duplex Ethernet connection?
- Full-duplex requires a hub; half-duplex requires a switch
- Full-duplex allows simultaneous sending and receiving; half-duplex allows only one direction at a time (Correct answer)
- Full-duplex uses fiber while half-duplex uses copper
- Full-duplex operates at 10 Mbps; half-duplex operates at 100 Mbps
Correct answer: Full-duplex allows simultaneous sending and receiving; half-duplex allows only one direction at a time
Full-duplex allows simultaneous bidirectional data transmission, while half-duplex restricts communication to one direction at a time, requiring collision detection (CSMA/CD).
Question 45: What is the purpose of the CSS3 @media rule?
- To import external stylesheets at runtime
- To apply styles conditionally based on device characteristics or screen size (Correct answer)
- To declare CSS keyframe sequences
- To define reusable CSS custom properties
Correct answer: To apply styles conditionally based on device characteristics or screen size
The @media rule applies a block of CSS only when specific conditions (such as minimum screen width) are true, enabling responsive design.
Question 46: What does SEO stand for in internet marketing?
- Search Engine Optimization (Correct answer)
- Social Engagement Outreach
- Site Encoding Order
- Secure Email Operations
Correct answer: Search Engine Optimization
Search Engine Optimization (SEO) refers to strategies used to improve a website's visibility and ranking in organic search engine results.
Question 47: What is the principle of least privilege in security?
- Grant users only the minimum permissions necessary to perform their job functions (Correct answer)
- Restrict access only to executives
- Give all users administrator rights to improve productivity
- Allow privileged users to bypass security controls
Correct answer: Grant users only the minimum permissions necessary to perform their job functions
The principle of least privilege limits user and system access rights to the bare minimum needed, reducing the attack surface and damage from breaches.
Question 48: Which HTML5 element is used to define a footer section for a document or a sectioning element?
- <bottom>
- <end>
- <foot>
- <footer> (Correct answer)
Correct answer: <footer>
The <footer> element represents the footer for its nearest sectioning content or the document root, typically containing author info, copyright, or links.
Question 49: Which HTML5 API allows web applications to persist key-value data in the browser beyond a single session?
- Cookie API
- Web Storage (localStorage) (Correct answer)
- Session Cache
- IndexedDB
Correct answer: Web Storage (localStorage)
localStorage (part of the Web Storage API) stores key-value pairs with no expiration, persisting across browser sessions without server round-trips.
Question 50: Which HTML5 element is used to define a block of navigation links?
- <nav> (Correct answer)
- <section>
- <header>
- <aside>
Correct answer: <nav>
The <nav> element is the semantic HTML5 element specifically intended to contain a set of navigation links.
Question 51: Which CSS property is used to control the transparency of an element?
- blur
- visibility
- display
- opacity (Correct answer)
Correct answer: opacity
The `opacity` property sets the transparency level of an element, where 0 is fully transparent and 1 is fully opaque.
Question 52: Which HTML5 meta attribute specifies the character encoding for an HTML document?
- content-type
- encoding
- charset (Correct answer)
- language
Correct answer: charset
The charset attribute on a <meta> tag (e.g., <meta charset="UTF-8">) declares the character encoding used for the document.
Question 53: Which SQL clause is used to filter groups after a GROUP BY operation?
- FILTER
- WHERE
- AND
- HAVING (Correct answer)
Correct answer: HAVING
The `HAVING` clause filters the result of GROUP BY aggregations, similar to how WHERE filters individual rows.
Question 54: What is ransomware?
- Malware that encrypts a victim's files and demands payment for the decryption key (Correct answer)
- Software that speeds up computer performance
- A type of antivirus software
- A tool for recovering deleted files
Correct answer: Malware that encrypts a victim's files and demands payment for the decryption key
Ransomware is malicious software that encrypts files on the victim's system, then demands a ransom payment in exchange for the decryption key.
Question 55: What is the main difference between shared hosting and dedicated hosting?
- Shared hosting means many websites share one server's resources; dedicated hosting gives one website its own server (Correct answer)
- Dedicated hosting is only for e-commerce sites
- Shared hosting is faster than dedicated
- Shared hosting uses Linux; dedicated uses Windows
Correct answer: Shared hosting means many websites share one server's resources; dedicated hosting gives one website its own server
Shared hosting splits server resources among many customers, lowering cost but reducing performance, while dedicated hosting reserves an entire server for one client.
CIW Certification Suite
CIW (Certified Internet Webmaster) certifications validate expertise across web design, internet business, site development, and web security. Exams are vendor-neutral, computer-based, and cover foundational to specialist-level web technology skills.
Exam Rules
- You can skip questions and return to them later
- Flag questions for review before submitting
- No feedback shown until you submit the entire exam
- Unanswered questions count as wrong β answer everything
- 10 pretest questions are mixed in and don't affect your score
- Timer auto-submits when time runs out
- Your progress is auto-saved every 30 seconds