




























































































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
Aimed at entry-level developers, this exam validates core web development skills using platforms such as SAS . or similar software. Topics include HTML, CSS, JavaScript, REST APIs, data processing, and front-end/back-end integration. Suited for junior developers building and deploying data-driven web applications.
Typology: Exams
1 / 128
This page cannot be seen from the preview
Don't miss anything!





























































































Question 1. Which HTML5 element is semantically appropriate for marking up the main content of a webpage? A) B) C) D) Answer: C Explanation: The element is specifically designed to encapsulate the dominant content of a document, improving accessibility and SEO by clearly indicating the primary content area. Question 2. Which attribute is essential when creating a form input that requires user to enter an email address? A) type="text" B) type="email" C) name="email" D) placeholder="Email" Answer: B
Explanation: The type="email" attribute enables browsers to validate the input as an email address and provides appropriate virtual keyboard on mobile devices. Question 3. Which HTML element is used to embed a video with controls into a webpage? A) B) C) D) Answer: B Explanation: The element is specifically intended for embedding video content, and the controls attribute adds playback controls to the player. Question 4. When structuring tabular data in HTML, which element is used to define the header row? A) B) C)
D) float Answer: B Explanation: The z-index property determines the stack level of positioned elements, influencing which appears on top when elements overlap. Question 7. In CSS, which property is used to create a flexible container that distributes space along a single row or column? A) display: block B) display: inline C) display: flex D) display: grid Answer: C Explanation: display: flex activates Flexbox layout, allowing flexible alignment and distribution of child elements along one dimension. Question 8. Which media query applies styles when the device width is 768px or less? A) @media (min-width: 768px) B) @media (max-width: 768px)
C) @media (width: 768px) D) @media (device-width: 768px) Answer: B Explanation: @media (max-width: 768px) targets devices with widths less than or equal to 768px, commonly used for responsive design. Question 9. Which CSS property creates a smooth transition effect when a property value changes? A) animation B) transition C) transform D) keyframes Answer: B Explanation: The transition property enables smooth animation between property changes, specified with transition-duration and other timing functions. Question 10. Which JavaScript keyword declares a block-scoped, immutable variable? A) var
A) user["name"] B) user.name C) user->name D) user: name Answer: B Explanation: user.name accesses the "name" property directly using dot notation, which is concise and readable. Question 13. Which DOM method selects an element by its unique ID? A) document.querySelector() B) document.getElementById() C) document.getElementsByClassName() D) document.querySelectorAll() Answer: B Explanation: document.getElementById() retrieves an element with the specified ID and is optimized for this purpose. Question 14. Which method attaches an event listener that triggers a callback function when the event occurs?
A) addEventListener() B) attachEvent() C) on() D) bind() Answer: A Explanation: addEventListener() registers an event handler for specified events, allowing multiple handlers and better control. Question 15. Which JavaScript feature allows writing asynchronous code that looks synchronous by using "await"? A) Promises B) Callbacks C) Async/await D) Generators Answer: C Explanation: async/await syntax simplifies working with Promises, making asynchronous code easier to read and write.
Question 18. Which HTTP status code indicates a successful request? A) 404 B) 500 C) 200 D) 301 Answer: C Explanation: 200 OK indicates that the request was successful and the server returned the requested data. Question 19. Which browser storage API stores data as key-value pairs persistently even after the browser is closed? A) sessionStorage B) localStorage C) cookies D) IndexedDB Answer: B Explanation: localStorage persists data across browser sessions until explicitly cleared, suitable for long-term storage.
Question 20. Which security vulnerability involves malicious scripts executing within a trusted website, often due to unescaped user input? A) CSRF B) XSS C) SQL Injection D) Man-in-the-middle Answer: B Explanation: Cross-Site Scripting (XSS) involves injecting malicious scripts into webpages, which can execute in other users’ browsers. Question 21. Which HTTP header is used to specify the preferred language of the response? A) Accept B) Content-Language C) Accept-Language D) Content-Type Answer: C
Question 24. Which browser developer tool panel is primarily used for inspecting and editing HTML and CSS? A) Console B) Elements C) Sources D) Network Answer: B Explanation: The Elements panel allows inspection and modification of DOM elements and styles. Question 25. Which package manager is commonly used for managing project dependencies in JavaScript? A) Maven B) pip C) npm D) Composer Answer: C
Explanation: npm (Node Package Manager) manages JavaScript projects' dependencies, scripts, and packages. Question 26. Which build tool is primarily used for bundling JavaScript modules and assets? A) Webpack B) Gulp C) Grunt D) Make Answer: A Explanation: Webpack is a module bundler that compiles various assets and dependencies into optimized bundles. Question 27. What is a primary benefit of using a JavaScript framework or library? A) Manual DOM manipulation B) Component-based architecture C) Static page generation D) Server-side scripting
D) Improved network requests Answer: B Explanation: Virtual DOM minimizes direct DOM manipulations by batching updates, leading to improved performance. Question 30. Which testing type involves simulating real user interactions across the entire application? A) Unit testing B) Integration testing C) End-to-end testing D) Static testing Answer: C Explanation: End-to-end testing emulates user behavior to verify the application's overall functionality. Question 31. Which HTML attribute is used to specify alternative text for an image? A) src B) alt
C) title D) description Answer: B Explanation: The alt attribute provides descriptive text for images, enhancing accessibility and SEO. Question 32. Which CSS property is used to set the background image of an element? A) background-color B) background-image C) background-style D) image-background Answer: B Explanation: background-image specifies the image to display as the background of an element. Question 33. Which CSS property is used to make an element's position fixed relative to the viewport? A) position: absolute
B) newElement() C) makeElement() D) generateElement() Answer: A Explanation: document.createElement() creates a new DOM element of the specified type. Question 36. Which property is used to change the style of an element directly via JavaScript? A) style B) cssText C) className D) setStyle Answer: A Explanation: The style property allows inline modification of CSS styles on a DOM element. Question 37. Which JavaScript method removes the first element from an array?
A) pop() B) shift() C) unshift() D) splice() Answer: B Explanation: shift() removes the first element from an array and shifts subsequent elements. Question 38. Which object property holds the URL of the current webpage? A) document.URL B) window.location C) location.href D) Both B and C Answer: D Explanation: window.location and location.href both provide the current page URL.