CIW Certification Suite — Questions and Answers
Question 1: What is a cookie in the context of web browsing and e-commerce?
- A server-side session encryption key
- A type of web server log
- A type of malware
- A small data file stored on a user's computer by a website to remember information (Correct answer)
Correct answer: A small data file stored on a user's computer by a website to remember information
A cookie is a small text file a website stores on the user's browser to remember preferences, login state, or shopping cart contents.
Question 2: What is affiliate marketing?
- Marketing limited to social media platforms
- A performance-based model where affiliates earn commissions for driving traffic or sales to a merchant (Correct answer)
- Marketing done by company employees only
- 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 3: What is the purpose of the CSS3 @media rule?
- To declare CSS keyframe sequences
- To apply styles conditionally based on device characteristics or screen size (Correct answer)
- To define reusable CSS custom properties
- To import external stylesheets at runtime
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 4: In HTML, which attribute specifies the URL of the page a hyperlink goes to?
- href (Correct answer)
- link
- src
- url
Correct answer: href
The href (Hypertext Reference) attribute in the <a> tag specifies the destination URL of the hyperlink.
Question 5: Which CSS3 property is used to add rounded corners to an element's border box?
- corner-radius
- rounded-corner
- border-style
- 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 6: What is the primary role of a web server?
- Write SQL queries
- Store and deliver web content to clients over HTTP/HTTPS (Correct answer)
- Generate CSS stylesheets
- Design website layouts
Correct answer: Store and deliver web content to clients over HTTP/HTTPS
A web server receives HTTP requests from clients (browsers) and responds by delivering requested files — HTML, CSS, images, etc.
Question 7: What is the principle of least privilege in security?
- Allow privileged users to bypass security controls
- Restrict access only to executives
- Give all users administrator rights to improve productivity
- Grant users only the minimum permissions necessary to perform their job functions (Correct answer)
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 8: Which protocol is used by web browsers to securely request and receive web pages?
- POP3
- SMTP
- FTP
- HTTPS (Correct answer)
Correct answer: HTTPS
HTTPS (HyperText Transfer Protocol Secure) encrypts communication between browser and server using TLS, protecting data in transit.
Question 9: 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 rate at which images load on a page
- The speed of currency conversion in international sales
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 10: What does SEO stand for in internet marketing?
- Search Engine Optimization (Correct answer)
- Secure Email Operations
- Site Encoding Order
- Social Engagement Outreach
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 11: What is the purpose of the robots.txt file on a website?
- Detect and block malicious bots
- Instruct search engine crawlers which pages to crawl or avoid (Correct answer)
- Set server response time limits
- Define CSS styles for automated browsers
Correct answer: Instruct search engine crawlers which pages to crawl or avoid
The robots.txt file uses the Robots Exclusion Protocol to tell web crawlers which URLs they should or should not access.
Question 12: In JavaScript, what does the spread operator (...) do when used with an array?
- Merges arrays without removing duplicates
- Expands the array into individual elements (Correct answer)
- Creates a deep copy of nested objects
- Converts an array to a Set
Correct answer: Expands the array into individual elements
The spread operator unpacks an array's elements so they can be passed individually as function arguments or combined into another array.
Question 13: Which JavaScript method removes the last element from an array and returns it?
- unshift()
- pop() (Correct answer)
- splice()
- shift()
Correct answer: pop()
Array.pop() removes the last element from an array, mutates the original array, and returns the removed element.
Question 14: What is the purpose of version control systems like Git in web development?
- Generate server-side APIs
- Automatically optimize CSS files
- Monitor website traffic
- Track changes to code over time, enabling collaboration and rollback to previous versions (Correct answer)
Correct answer: Track changes to code over time, enabling collaboration and rollback to previous versions
Version control systems like Git record every change to code, allowing teams to collaborate, review history, and revert to earlier states.
Question 15: What is the correct HTML5 doctype declaration?
- <!DOCTYPE html> (Correct answer)
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 5.0//EN">
- <?xml version="1.0" encoding="UTF-8"?>
- <html version="5">
Correct answer: <!DOCTYPE html>
<!DOCTYPE html> is the simplified HTML5 doctype that instructs browsers to render the page in standards mode.
Question 16: What CSS3 property applies shadow effects behind an element's border box?
- element-shadow
- drop-shadow
- text-shadow
- box-shadow (Correct answer)
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 17: What is the purpose of minifying CSS and JavaScript files?
- Reduce file size by removing whitespace and comments to speed up page load (Correct answer)
- Enable dark mode on websites
- Encrypt code from competitors
- Improve code readability
Correct answer: Reduce file size by removing whitespace and comments to speed up page load
Minification removes unnecessary whitespace, comments, and characters from code files, reducing their size and improving page load performance.
Question 18: Which HTML5 element is used to define the main content area of a document, excluding headers, footers, and navigation?
- <content>
- <main> (Correct answer)
- <body>
- <article>
Correct answer: <main>
The <main> element identifies the dominant content of the document body and should appear only once per page.
Question 19: Which HTML5 element is used to define a block of navigation links?
- <section>
- <header>
- <aside>
- <nav> (Correct answer)
Correct answer: <nav>
The <nav> element is the semantic HTML5 element specifically intended to contain a set of navigation links.
Question 20: Which HTML5 element is used to define a footer section for a document or a sectioning element?
- <foot>
- <bottom>
- <end>
- <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 21: Which CSS3 pseudo-class selector targets an element only when it is the first child of its parent?
- element:nth-child(1st)
- element:first-child (Correct answer)
- element:first
- element:first-type
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 22: Which field in an IPv4 packet header is decremented by each router and causes the packet to be discarded when it reaches zero?
- Time to Live (TTL) (Correct answer)
- Differentiated Services
- Protocol
- Header Checksum
Correct answer: Time to Live (TTL)
The TTL (Time to Live) field is decremented by 1 at each hop; when it reaches 0, the router discards the packet and sends an ICMP Time Exceeded message.
Question 23: What is a stored procedure in a relational database?
- A data encryption method
- A saved SELECT query only
- An automatic backup routine
- A precompiled set of SQL statements stored in the database that can be executed by name (Correct answer)
Correct answer: A precompiled set of SQL statements stored in the database that can be executed by name
A stored procedure is a precompiled collection of SQL statements saved in the database and executed as a single callable unit.
Question 24: 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?
- fixed
- absolute (Correct answer)
- relative
- sticky
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 25: Which normal form requires that every non-key attribute be fully functionally dependent on the entire primary key?
- First Normal Form (1NF)
- Third Normal Form (3NF)
- Boyce-Codd Normal Form (BCNF)
- Second Normal Form (2NF) (Correct answer)
Correct answer: Second Normal Form (2NF)
Second Normal Form (2NF) requires full functional dependency on the whole primary key, eliminating partial dependencies.
Question 26: Which HTML5 element is used to draw raster graphics dynamically via JavaScript?
- <canvas> (Correct answer)
- <draw>
- <graphics>
- <svg>
Correct answer: <canvas>
The <canvas> element provides a resolution-dependent bitmap area that JavaScript can use to render 2D graphics, charts, and animations.
Question 27: Which principle of web design states that related elements should be grouped together visually?
- Repetition
- Alignment
- Proximity (Correct answer)
- Contrast
Correct answer: Proximity
The design principle of proximity groups related items to show their relationship, reducing visual clutter.
Question 28: What class of intellectual property comprises company strategies, confidential software, and sales agreements?
- Trademark
- Copy left
- Copyright
- Trade secret (Correct answer)
Correct answer: Trade secret
Trade secrets are a form of intellectual property that includes confidential business information, such as company strategies, proprietary software, formulas, practices, and sales agreements, that provides a competitive edge. Unlike patents or copyrights, trade secrets are protected by keeping the information secret, rather than through registration. Misappropriation of trade secrets is illegal.
Question 29: In networking, what does 'IP' stand for?
- Internal Protocol
- Integrated Path
- Internet Protocol (Correct answer)
- Internet Process
Correct answer: Internet Protocol
IP stands for Internet Protocol, the set of rules governing how data packets are sent and received across networks.
Question 30: What is the function of DNS (Domain Name System)?
- Assign bandwidth to users
- Encrypt network traffic
- Translate human-readable domain names into IP addresses (Correct answer)
- Store website backup files
Correct answer: Translate human-readable domain names into IP addresses
DNS acts as the internet's phone book, converting memorable domain names like www.example.com into the numeric IP addresses computers use.
Question 31: Which type of e-commerce transaction occurs between two private individuals, such as on eBay or Craigslist?
- C2C (Correct answer)
- B2B
- B2C
- G2C
Correct answer: C2C
C2C (Consumer-to-Consumer) commerce involves transactions between private individuals, often facilitated by a third-party platform.
Question 32: Which HTML5 API allows web applications to persist key-value data in the browser beyond a single session?
- Session Cache
- Cookie API
- IndexedDB
- Web Storage (localStorage) (Correct answer)
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 33: What is multi-factor authentication (MFA)?
- Using the same password across multiple sites
- Using multiple passwords for one account
- Logging in from multiple devices simultaneously
- Requiring two or more verification factors (something you know, have, or are) to authenticate (Correct answer)
Correct answer: Requiring two or more verification factors (something you know, have, or are) to authenticate
MFA requires at least two independent authentication factors — such as a password plus a one-time code — dramatically reducing account compromise risk.
Question 34: What is the primary purpose of the HTML5 <figure> and <figcaption> elements?
- To display mathematical figures and equations
- To associate a caption with self-contained content like images or diagrams (Correct answer)
- 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 35: What HTML5 form attribute forces the user to fill in a field before the form can be submitted?
- validate
- mandatory
- required (Correct answer)
- notnull
Correct answer: required
The 'required' attribute triggers native browser-side validation, preventing form submission if the field is empty.
Question 36: Which HTML5 meta attribute specifies the character encoding for an HTML document?
- language
- encoding
- content-type
- charset (Correct answer)
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 37: A network admin uses the command 'show ip route' on a router and sees the prefix 'O' before a route entry. What does 'O' indicate?
- The route is a directly connected network
- The route was manually configured as a static route
- The route was learned via OSPF (Correct answer)
- The route was learned via EIGRP
Correct answer: The route was learned via OSPF
The 'O' code in the routing table indicates the route was learned via OSPF (Open Shortest Path First), a link-state routing protocol.
Question 38: Which CSS manipulation approach is preferred in modern JavaScript to add or remove a class on an element?
- document.styleSheets[0].insertRule()
- element.setAttribute('class', 'newClass')
- element.classList.add() / element.classList.remove() (Correct answer)
- element.className = 'newClass'
Correct answer: element.classList.add() / element.classList.remove()
element.classList provides add(), remove(), toggle(), and contains() methods for cleanly managing an element's class list without overwriting existing classes.
Question 39: What does URL stand for and what is its purpose?
- Universal Resource Locator — specifies the address of a resource on the internet (Correct answer)
- Universal Request Layer — handles HTTP requests
- Unified Routing Language — defines network routing rules
- User Registration Login — authenticates site visitors
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 40: What is the CAN-SPAM Act designed to regulate?
- Social media advertising
- Online advertising cookies
- Spam phone calls and robocalls
- Commercial email messages sent to consumers (Correct answer)
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 CSS3 property applies 2D or 3D geometric transformations such as rotate, scale, and translate to an element?
- transform (Correct answer)
- transition
- animation
- position
Correct answer: transform
The transform property applies functions like rotate(), scale(), translateX(), and matrix3d() to visually modify an element without affecting document flow.
Question 42: Which CSS3 flexbox property aligns flex items along the cross axis (perpendicular to the main axis)?
- flex-wrap
- flex-direction
- justify-content
- align-items (Correct answer)
Correct answer: align-items
align-items sets the default alignment for all flex items along the cross axis of the flex container.
Question 43: What is the main difference between shared hosting and dedicated hosting?
- Dedicated hosting is only for e-commerce sites
- Shared hosting uses Linux; dedicated uses Windows
- Shared hosting means many websites share one server's resources; dedicated hosting gives one website its own server (Correct answer)
- Shared hosting is faster than dedicated
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.
Question 44: What is event bubbling in the browser DOM?
- Multiple events are grouped into a single batch for performance
- Events fired on hidden elements are suppressed
- After an event fires on a target element, it propagates upward through ancestor elements (Correct answer)
- Events are captured from the root down to the target element
Correct answer: After an event fires on a target element, it propagates upward through ancestor elements
Event bubbling means an event triggered on a child element propagates up through its parent elements in the DOM tree unless stopped.
Question 45: In a one-to-many relationship, how is the relationship typically implemented in a relational database?
- By placing a foreign key in the 'many' side table referencing the 'one' side (Correct answer)
- By duplicating the table
- By using a junction table
- By merging both tables into one
Correct answer: By placing a foreign key in the 'many' side table referencing the 'one' side
A one-to-many relationship is implemented by adding a foreign key column in the child ('many') table that references the parent ('one') table's primary key.
Question 46: Which color model is primarily used for colors displayed on computer monitors and web browsers?
- Pantone
- CMYK
- HSL only
- RGB (Correct answer)
Correct answer: RGB
Monitors use the RGB (Red, Green, Blue) additive color model to produce on-screen colors.
Question 47: What does FTP stand for and what is it used for in web development?
- Fast Text Processing — used to compress HTML
- Form Transfer Protocol — used to submit web forms
- File Transfer Protocol — used to upload and download files to/from a web server (Correct answer)
- Firewall Traversal Protocol — used to bypass security
Correct answer: File Transfer Protocol — used to upload and download files to/from a web server
FTP (File Transfer Protocol) is a standard network protocol used to transfer files between a local computer and a remote web server.
Question 48: What does the SQL `GROUP BY` clause do?
- Filters rows before aggregation
- Groups rows with the same values so aggregate functions can be applied per group (Correct answer)
- Sorts the result set in ascending order
- Joins two tables together
Correct answer: Groups rows with the same values so aggregate functions can be applied per group
The `GROUP BY` clause groups rows sharing the same values in specified columns so aggregate functions like COUNT or SUM operate per group.
Question 49: What is a wireframe's role in the web development process?
- Create a low-fidelity structural layout to plan page content and user interface before coding begins (Correct answer)
- Test server load capacity
- Write the final production code
- 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 50: Which HTML5 element represents a self-contained composition that could be independently distributed, such as a blog post?
- <aside>
- <main>
- <section>
- <article> (Correct answer)
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 51: What is the purpose of CSS3 @keyframes?
- To define reusable sets of CSS properties as named blocks
- To specify breakpoints for responsive layouts
- To import font files for web use
- 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 52: What is the purpose of the CSS 'float' property?
- Fixes an element's position relative to the viewport
- Makes an element transparent and overlay other content
- Animates an element to slide up the page
- Positions an element to the left or right, allowing content to wrap around it (Correct answer)
Correct answer: Positions an element to the left or right, allowing content to wrap around it
The float property positions an element to one side of its container, allowing surrounding content to flow around it.
Question 53: Which HTTP status code indicates that a resource has been permanently moved to a new URL?
- 404 Not Found
- 301 Moved Permanently (Correct answer)
- 200 OK
- 500 Internal Server Error
Correct answer: 301 Moved Permanently
HTTP 301 tells clients and search engines that the resource has permanently relocated to a new URL.
Question 54: Which web technology allows web pages to update content dynamically without reloading the entire page?
- FTP uploads
- CSS animations
- HTML tables
- AJAX (Asynchronous JavaScript and XML) (Correct answer)
Correct answer: AJAX (Asynchronous JavaScript and XML)
AJAX allows web pages to fetch data from a server asynchronously and update parts of the page without a full reload.
Question 55: Which HTTP status code indicates that a requested resource has been permanently moved to a new URL?
- 301 (Correct answer)
- 404
- 200
- 500
Correct answer: 301
HTTP 301 (Moved Permanently) tells browsers and search engines that a resource has permanently relocated to a new URL.
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