




























































































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
This general credential from CIW evaluates foundational knowledge in internet technologies, networking, web development, and security principles. Often taken by aspiring web developers, IT support staff, or individuals entering the digital technology field.
Typology: Exams
1 / 106
This page cannot be seen from the preview
Don't miss anything!





























































































Question 1. Which principle emphasizes designing websites that adjust seamlessly across various device sizes and orientations? A) Mobile-first approach B) Fixed-width design C) Desktop-centric design D) Static layout Answer: A Explanation: The mobile-first approach prioritizes designing for mobile devices first, ensuring responsiveness and seamless adaptation across all screen sizes, which is crucial for user experience and accessibility. Question 2. In HTML5, which semantic element is most appropriate for grouping navigation links? A) B) C) D) Answer: A Explanation: The element semantically indicates a section of navigation links, helping both browsers and assistive technologies understand the structure of the page.
Question 3. Which CSS property is used to control the space between lines of text? A) line-height B) letter-spacing C) word-spacing D) text-indent Answer: A Explanation: The line-height property adjusts the vertical spacing between lines of text, affecting readability and visual hierarchy. Question 4. Which JavaScript data type is used to store multiple values in an ordered collection? A) Array B) Object C) String D) Boolean Answer: A Explanation: Arrays are used to store multiple ordered items, enabling efficient management of collections of data. Question 5. Which HTML element is best suited for embedding a video file? A)
Answer: A Explanation: Flexbox provides a flexible layout system that distributes space along a single axis, making it ideal for responsive design. Question 8. Which JavaScript concept allows code to execute asynchronously, improving performance and user experience? A) Promises B) Variables C) Functions D) Loops Answer: A Explanation: Promises enable asynchronous operations, such as data fetching, allowing other code to run without blocking. Question 9. Which HTTP status code indicates a successful request? A) 200 B) 404 C) 500 D) 301 Answer: A Explanation: Status code 200 signifies that the request was successful and the server returned the requested data.
Question 10. Which DNS record type is primarily used to map a domain name to an IP address? A) A record B) MX record C) CNAME record D) TXT record Answer: A Explanation: The A record maps a domain name to its corresponding IP address, enabling browsers to locate the server. Question 11. Which web server software is known for its high performance and is commonly used in high-traffic environments? A) Nginx B) IIS C) Apache D) Lighttpd Answer: A Explanation: Nginx is renowned for its efficiency, scalability, and high performance in handling numerous simultaneous connections. Question 12. Which HTML attribute specifies alternative text for an image, improving accessibility and SEO?
Answer: A Explanation: document.getElementById() retrieves a single element with the specified ID, allowing direct manipulation. Question 15. Which HTML element is used to define the main content area of a webpage? A) B) C) D) Answer: A Explanation: The element semantically indicates the dominant content of the , improving accessibility. Question 16. Which CSS property is used to control the stacking order of overlapping elements? A) z-index B) position C) float D) display Answer: A Explanation: z-index specifies the stack order of elements; higher values appear in front of lower ones.
Question 17. Which JavaScript event is triggered when a user clicks on an element? A) click B) mouseover C) keydown D) submit Answer: A Explanation: The click event fires when a user presses and releases a mouse button over an element. Question 18. Which HTML element is best suited for grouping related form controls? A) B) C) D) Answer: A Explanation: groups related controls and labels, enhancing form accessibility and organization. Question 19. Which CSS property is used to specify the font size of text?
D) Answer: A Explanation: The element creates hyperlinks, with the href attribute specifying the destination URL. Question 22. Which CSS property can be used to change the background color of an element? A) background-color B) color C) border-color D) fill Answer: A Explanation: background-color sets the background fill color of an element. Question 23. Which JavaScript feature allows you to handle errors during code execution? A) try-catch B) if-else C) switch D) for loop Answer: A
Explanation: try-catch blocks handle exceptions, allowing graceful error handling and debugging. Question 24. Which HTML form input type is used to allow users to select a date? A) date B) datetime C) calendar D) pickdate Answer: A Explanation: The provides a user-friendly date picker interface. Question 25. Which CSS layout technique is best suited for creating multi-column layouts? A) CSS Grid B) Flexbox C) Float D) Positioning Answer: A Explanation: CSS Grid allows for complex, two-dimensional layouts with precise control over rows and columns.
D) text-indent Answer: A Explanation: line-height controls the vertical spacing between lines, improving readability. Question 29. Which JavaScript function is used to execute code after the DOM has fully loaded? A) window.onload B) document.ready C) document.onload D) window.onload() Answer: A Explanation: window.onload executes code after the entire page, including all resources, is fully loaded. Question 30. Which HTML element is used to include external CSS stylesheets? A) B) Explanation: The element links external resources like CSS files to the HTML document. Question 31. Which CSS property controls the space between characters in text? A) letter-spacing B) word-spacing C) line-height D) text-indent Answer: A Explanation: letter-spacing adjusts the horizontal space between characters. Question 32. Which JavaScript method is used to fetch data asynchronously from an API? A) fetch() B) get() C) load() D) retrieve() Answer: A Explanation: fetch() initiates a network request to retrieve resources asynchronously.
B) let C) var D) static Answer: A Explanation: const declares a constant variable whose value cannot be changed after initialization. Question 36. Which HTML element is used to specify metadata about the document? A) B) C) D) <body> Answer: A Explanation: The <head> element contains metadata, including scripts, styles, and meta tags. Question 37. Which CSS property is used to control the transparency of an element? A) opacity B) visibility C) transparency
D) alpha Answer: A Explanation: opacity sets the transparency level of an element, with 0 being fully transparent. Question 38. Which JavaScript feature allows defining a function with a shorter syntax? A) Arrow functions B) Function expressions C) Function declarations D) Anonymous functions Answer: A Explanation: Arrow functions provide a concise syntax for writing functions, especially for inline or callback functions. Question 39. Which HTML element is used for defining a section of related content, often with a heading? A) B) C) D) Answer: B
Question 42. Which HTML element is used to define the title of a webpage displayed in the browser tab? A) B) <header> C) <h1> D) <meta> Answer: A Explanation: The <title> element defines the title shown in the browser tab and is essential for SEO. Question 43. Which CSS property is used to add a shadow behind an element? A) box-shadow B) text-shadow C) shadow D) outline-shadow Answer: A Explanation: box-shadow adds shadow effects around an element's box, enhancing visual depth. Question 44. Which JavaScript method is used to remove the last element from an array? A) pop()
B) shift() C) splice() D) delete() Answer: A Explanation: pop() removes and returns the last element of an array. Question 45. Which HTML element is used to define a form for user input? A) B) C) D) Answer: A Explanation: The element encapsulates form controls and manages user input submission. Question 46. Which CSS property is used to specify the width of an element? A) width B) size C) max-width D) flex-basis Answer: A