Docsity

PrepIQ IAO Web developer Certificate Ultimate Exam, Exams of Technology

Toggle sidebar
bg1
PrepIQ IAO Web developer
Certificate Ultimate Exam
**Question 1.** Which protocol ensures that data transferred between a browser
and server is encrypted?
A) FTP
B) HTTP
C) HTTPS
D) SMTP
Answer: C
Explanation: HTTPS adds a TLS/SSL layer to HTTP, encrypting the data in transit
and protecting it from eavesdropping.
**Question 2.** In the client-server model, which component initiates a request
for a resource?
A) Server
B) Router
C) Client
D) DNS resolver
Answer: C
Explanation: The client (e.g., a web browser) sends an HTTP request to the
server, which then returns the requested resource.
**Question 3.** What does the DNS system primarily translate?
A) IP addresses to MAC addresses
B) Domain names to IP addresses
C) URLs to file paths
D) HTTP methods to status codes
Answer: B
Explanation: DNS resolves human-readable domain names (e.g., example.com)
into the numeric IP addresses required for routing.
**Question 4.** Which part of a browser is responsible for converting HTML, CSS,
and JavaScript into pixels on the screen?
A) Network layer
B) Rendering engine
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e

Partial preview of the text

Download PrepIQ IAO Web developer Certificate Ultimate Exam and more Exams Technology in PDF only on Docsity!

Certificate Ultimate Exam

Question 1. Which protocol ensures that data transferred between a browser and server is encrypted? A) FTP B) HTTP C) HTTPS D) SMTP Answer: C Explanation: HTTPS adds a TLS/SSL layer to HTTP, encrypting the data in transit and protecting it from eavesdropping. Question 2. In the client-server model, which component initiates a request for a resource? A) Server B) Router C) Client D) DNS resolver Answer: C Explanation: The client (e.g., a web browser) sends an HTTP request to the server, which then returns the requested resource. Question 3. What does the DNS system primarily translate? A) IP addresses to MAC addresses B) Domain names to IP addresses C) URLs to file paths D) HTTP methods to status codes Answer: B Explanation: DNS resolves human-readable domain names (e.g., example.com) into the numeric IP addresses required for routing. Question 4. Which part of a browser is responsible for converting HTML, CSS, and JavaScript into pixels on the screen? A) Network layer B) Rendering engine

Certificate Ultimate Exam

C) JavaScript engine D) Storage engine Answer: B Explanation: The rendering engine (e.g., Blink, WebKit) parses markup and styles, builds the DOM and CSSOM, and paints pixels. Question 5. The “critical rendering path” begins after which event? A) DNS lookup B) TCP handshake C) First byte of HTML is received D) JavaScript execution finishes Answer: C Explanation: Once the first byte of HTML arrives, the browser can start parsing and constructing the DOM, initiating the critical rendering path. Question 6. Which VS Code extension is most useful for live-reloading a static site during development? A) Prettier B) Live Server C) GitLens D) ESLint Answer: B Explanation: Live Server launches a local development server and automatically reloads the page when files change. Question 7. In Chrome DevTools, which panel lets you examine the CSS box model of a selected element? A) Elements B) Network C) Sources D) Performance Answer: A

Certificate Ultimate Exam

A) ``

B) C) D) Answer: B Explanation: triggers standards mode and is the simple HTML5 doctype. Question 12. Where should the character encoding meta tag be placed in an HTML document? A) Inside B) Inside before any other tags C) After the first element D) At the end of the document Answer: B Explanation: The tag must be in the and ideally the first element to ensure correct parsing. **Question 13.** Which meta tag is essential for responsive design on mobile devices? A) B) C) D) Answer: B Explanation: The viewport meta tag tells browsers how to scale the page, enabling responsive layouts. **Question 14.** Which HTML5 element is most appropriate for wrapping navigation links? A) B) C)

Certificate Ultimate Exam

D) Answer: B Explanation: semantically represents a block of navigation links. Question 15. Using semantic markup improves SEO because: A) Search engines ignore CSS classes B) Semantic tags convey the meaning of content to crawlers C) It reduces page load time D) It automatically adds schema.org markup Answer: B Explanation: Semantic elements (e.g., ,) help search engines understand page structure and relevance. Question 16. Which HTML attribute provides alternative text for an image, crucial for accessibility? A) title B) src C) alt D) href Answer: C Explanation: The alt attribute describes the image content for screen readers and when the image cannot load. Question 17. Which element is used to embed a video that provides native playback controls? A) B) C) D) Answer: C Explanation: `` with the controls attribute displays built-in playback UI.

Certificate Ultimate Exam

C) #open D) data-state=open Answer: A Explanation: Attribute selectors use square brackets; [attr="value"] matches elements with that exact attribute value. Question 22. The CSS specificity of the selector ul#menu li.active a:hover is: A) 0,1,2, B) 1,0,3, C) 1,1,2, D) 0,2,1, Answer: C Explanation: Specificity is calculated as (inline, ID, class/attribute/pseudo-class, element/pseudo-element). Here: 0 inline, 1 ID (#menu), 2 classes (.active, :hover), 1 element (ul, li, a => actually three elements, but only count element selectors, so 3 → total (0,1,2,3). Wait answer C is 1,1,2,1 which is incorrect. Let's compute correctly: selectors: ul (element) =1, #menu (ID)=1, li (element)=1, .active (class)=1, a (element)=1, :hover (pseudo-class)=1. So total: IDs=1, classes/pseudo-classes=2 (.active, :hover), elements=3 (ul,li,a). Specificity = (0,1,2,3). None of the options match exactly. Need to adjust options. Let's rewrite question. Question 22. What is the specificity value of the selector #header .nav > li a:hover? A) 0,1,2, B) 0,1,3, C) 1,0,2, D) 0,2,1, Answer: A Explanation: Specificity is (inline, ID, class/pseudo-class/attribute, element). The selector has one ID (#header) → 1, two class/pseudo-class (.nav, :hover) → 2, and two element selectors (li, a) → 2, giving (0,1,2,2). Question 23. Which CSS property controls the space between an element’s border and its content?

Certificate Ultimate Exam

A) margin B) padding C) border-width D) outline Answer: B Explanation: Padding sits inside the border, separating the border from the element’s content. Question 24. In Flexbox, the property justify-content: space-between; aligns items along which axis? A) Main axis B) Cross axis C) Both axes equally D) It does not affect alignment Answer: A Explanation: justify-content distributes free space along the main axis (row or column, depending on flex-direction). Question 25. Which CSS Grid property defines the size of columns in a grid container? A) grid-template-rows B) grid-template-columns C) grid-auto-flow D) grid-gap Answer: B Explanation: grid-template-columns sets explicit column tracks, e.g., grid- template-columns: 1fr 2fr;. Question 26. An element with position: sticky; top: 0; will: A) Remain fixed at the top of the viewport at all times B) Scroll normally until it reaches the top, then stick there C) Never move from its original place D) Behave like position: absolute

Certificate Ultimate Exam

Question 30. The transition property in CSS requires at least which two values? A) duration and timing-function B) property and duration C) delay and iteration-count D) name and keyframes Answer: B Explanation: transition needs the property to animate and the duration (e.g., transition: opacity 0.3s;). Optional values include timing-function, delay, etc. Question 31. Which JavaScript keyword creates a block-scoped variable that cannot be reassigned? A) var B) let C) const D) static Answer: C Explanation: const declares a read-only binding; the variable identifier cannot be reassigned (though object contents may still be mutable). Question 32. What will typeof NaN return in JavaScript? A) "number" B) "NaN" C) "undefined" D) "object" Answer: A Explanation: NaN (Not-a-Number) is a special numeric value; typeof NaN evaluates to "number". Question 33. Which loop will always execute its body at least once? A) for B) while C) do…while

Certificate Ultimate Exam

D) for…in Answer: C Explanation: do…while checks its condition after executing the loop body, guaranteeing at least one iteration. Question 34. In JavaScript, the spread operator (...) can be used to: A) Merge two objects into a new object B) Convert a string to a number C) Declare a function parameter as optional D) Prevent variable hoisting Answer: A Explanation: {...obj1, ...obj2} creates a shallow copy that merges properties of both objects. Question 35. Which method adds an event listener that captures events during the capture phase? A) element.addEventListener('click', handler) B) element.addEventListener('click', handler, true) C) element.attachEvent('onclick', handler) D) element.on('click', handler) Answer: B Explanation: The third argument true (or {capture:true}) sets the listener to the capture phase. Question 36. What does event.preventDefault() do inside an event handler? A) Stops the event from propagating to parent elements B) Prevents the default browser action associated with the event C) Removes the event listener after execution D) Logs the event to the console automatically Answer: B Explanation: preventDefault() cancels the browser’s default behavior (e.g., following a link or submitting a form).

Certificate Ultimate Exam

B) useEffect C) useContext D) useReducer Answer: B Explanation: useEffect runs after render and can be configured to mimic mounting, updating, and unmounting behavior. Question 41. What is the purpose of the key prop in a list rendered by React? A) To set the HTML id attribute of each item B) To uniquely identify each element for efficient diffing C) To bind an event handler to the list item D) To encrypt the component’s state Answer: B Explanation: React uses key to track items between renders, minimizing DOM updates. Question 42. In Vue.js, which option is used to pass data from a parent component to a child component? A) props B) data C) methods D) watchers Answer: A Explanation: props are declared in the child component and receive values from the parent’s template. Question 43. Which Angular decorator marks a class as a service that can be injected? A) @Component B) @Injectable C) @Directive D) @Pipe

Certificate Ultimate Exam

Answer: B Explanation: @Injectable tells Angular’s dependency injection system that the class can be provided and injected. Question 44. What is the primary role of a package manager like npm? A) Compile TypeScript to JavaScript B) Bundle modules into a single file C) Install, version-manage, and update third-party libraries D) Minify CSS files Answer: C Explanation: npm registers packages, resolves dependencies, and provides scripts for project management. Question 45. Which tool transforms modern JavaScript (ES6+) into code compatible with older browsers? A) Webpack B) Babel C) ESLint D) PostCSS Answer: B Explanation: Babel is a transpiler that converts newer syntax into equivalent ES code. Question 46. In Webpack, what does the entry property define? A) The output file name B) The starting point(s) for building the dependency graph C) The development server port D) The list of plugins to use Answer: B Explanation: entry tells Webpack where to begin bundling, often src/index.js. Question 47. Which image format typically provides the smallest file size for photographic content without visible loss?

Certificate Ultimate Exam

Answer: A Explanation: 'self' allows scripts from the same origin but blocks inline scripts unless 'unsafe-inline' is added. Question 51. Which type of attack injects malicious JavaScript into a web page viewed by other users? A) CSRF B) XSS C) SQL Injection D) Man-in-the-middle Answer: B Explanation: Cross-Site Scripting (XSS) places attacker-controlled scripts into pages that other users load. Question 52. In a CI/CD pipeline, the stage that automatically deploys a verified build to production is called: A) Continuous Integration B) Continuous Testing C) Continuous Delivery D) Continuous Deployment Answer: D Explanation: Continuous Deployment pushes every passing change to production without manual intervention. Question 53. Which platform allows you to host a static site directly from a GitHub repository with a custom domain? A) Heroku B) Netlify C) AWS EC D) DigitalOcean Droplets Answer: B Explanation: Netlify can connect to a GitHub repo, build the site, and serve it with CDN and custom domain support.

Certificate Ultimate Exam

Question 54. Which HTTP header informs the browser how long a cached resource is considered fresh? A) ETag B) Cache-Control C) Authorization D) Content-Type Answer: B Explanation: Cache-Control: max-age=SECONDS tells the browser the duration the response may be reused. Question 55. The git push origin feature-branch command does what? A) Sends local commits of feature-branch to the remote named origin B) Pulls changes from the remote origin into feature-branch C) Deletes the remote branch feature-branch D) Creates a new local branch called origin Answer: A Explanation: git push transfers commits from the local branch to the specified remote repository. Question 56. Which HTML element is best suited for a block of code that should be displayed with preserved whitespace? A) B) C) D) Answer: A Explanation: `` preserves line breaks and spaces, rendering text exactly as written. Question 57. In CSS, the selector a[href^="https"] matches: A) All anchor tags with an href attribute B) Anchors whose href ends with “https” C) Anchors whose href starts with “https”

Certificate Ultimate Exam

Question 61. In JavaScript, which method removes the last element from an array and returns it? A) pop() B) shift() C) splice() D) slice() Answer: A Explanation: Array.prototype.pop mutates the array by removing its final element. Question 62. Which operator checks both value and type equality in JavaScript? A) = B) == C) === D) !== Answer: C Explanation: === (strict equality) returns true only when both operand type and value are identical. Question 63. The async keyword before a function declaration indicates that the function: A) Runs in a separate thread B) Returns a Promise automatically C) Must contain at least one await statement D) Is executed before the DOM is ready Answer: B Explanation: An async function always returns a Promise; its return value becomes the resolved value. Question 64. Which HTTP method is idempotent and typically used to update a resource partially? A) POST

Certificate Ultimate Exam

B) GET

C) PATCH

D) DELETE

Answer: C Explanation: PATCH applies partial modifications and can be safely repeated without additional side effects. Question 65. In a Single Page Application, which browser API enables navigation without a full page reload? A) window.location.reload() B) history.pushState() C) document.write() D) navigator.geolocation Answer: B Explanation: history.pushState updates the URL and history stack while keeping the SPA loaded. Question 66. Which of the following statements about the module field in a package.json file is true? A) It defines the entry point for CommonJS modules only B) It specifies the main file for ES modules when using Node.js with "type":"module" C) It is ignored by npm during installation D) It must always point to a .css file Answer: B Explanation: When "type":"module" is set, the module field can point to an ES module entry point. Question 67. Which Webpack loader would you use to import SCSS files into JavaScript? A) css-loader B) style-loader C) sass-loader D) file-loader