Pro Coder Quiz

Top 3 Winners:
Sayali Dhadge, Rajeshwari Kulkarni and Vippan Kumar
Congratulations!!
Quiz Questions and answers are below:
1) What is the primary focus of web performance?
A) Improving conversion rate of users, visiting site
B) Reducing the time it takes for a page to load
C) Google search will rank the website better in search index listing.
D) All of the above
Correct Answer: Option D) All of the above
2) What does the Largest Contentful Paint (LCP) metric measure?
A) The time it takes to fully load a web page
B) The time until the user sees the largest piece of content on the screen
C) The number of resources loaded by the page
D) The time it takes for a page to become interactive
Correct Answer: Option B) The time until the user sees the largest piece of content on the screen
3) Which web performance metric is focused on the visual stability of a page?
A) First Contentful Paint (FCP)
B) Largest Contentful Paint (LCP)
C) Cumulative Layout Shift (CLS)
D) First Input Delay (FID)
Correct Answer: Option C) Cumulative Layout Shift (CLS)
4) What is the impact of a high Cumulative Layout Shift (CLS) score?
A) Faster page load time
B) More stable visual experience
C) Disruption in the user’s visual experience
D) Improved SEO ranking
Correct Answer: Option C) Disruption in the user’s visual experience
5) Which technique is used to defer the loading of offscreen images until they are needed?
A) Prefetching
B) Lazy loading
C) Synchronous loading
D) Minifying
Correct Answer: Option B) Lazy loading
6) What is the effect of asynchronous loading of JavaScript?
A) It blocks HTML parsing
B) It does not block HTML parsing
C) It increases the page load time
D) It makes the website unresponsive
Correct Answer: Option B) It does not block HTML parsing
7) Which of the following is NOT a core Web Vital?
A) First Contentful Paint (FCP)
B) Largest Contentful Paint (LCP)
C) First Input Delay (FID)
D) Total Blocking Time (TBT)
Correct Answer: Option D) Total Blocking Time (TBT)
8) Where the script tag should be ideally placed in a HTML document?
A) Before style tag
B) At the top
C) Doesn’t matter, it can be placed anywhere
D) At the bottom
Correct Answer: Option D) At the bottom
9) How does using a Content Delivery Network (CDN) improve web performance?
A) By serving content from servers closer to the user
B) By adding more HTTP requests
C) By increasing the size of the web page
D) By slowing down content delivery
Correct Answer: Option A) By serving content from servers closer to the user
10) What is the main reason for optimizing images on a website?
A) To increase their resolution
B) To reduce file size and improve load time
C) To make them look better on mobile devices
D) To enhance color accuracy
Correct Answer: Option B) To reduce file size and improve load time
11) Which of these practices can slow down a web page?
A) Minifying JavaScript files
B) Using a large number of custom fonts
C) Compressing images
D) Reducing the number of HTTP requests
Correct Answer: Option B) Using a large number of custom fonts
12) Which of the following is true about debugging asynchronous code?
A) It is easier to debug than synchronous code
B) It often requires handling promises or callbacks
C) Breakpoints do not work with asynchronous code
D) Asynchronous code cannot be debugged
Correct Answer: Option B) It often requires handling promises or callbacks
13) Which of these actions can be performed in the Network panel of Chrome DevTools?
A) Inspect HTML elements
B) View and analyze HTTP requests and responses
C) Add breakpoints to JavaScript code
D) Modify CSS styles
Correct Answer: Option B) View and analyze HTTP requests and responses
14) What does the term 'call stack' refer to in debugging?
A) A list of functions that are currently being executed
B) A log of all console messages
C) A list of all network requests
D) A list of CSS styles applied to an element
Correct Answer: Option A) A list of functions that are currently being executed
15) How can you check the runtime values of variables during debugging?
A) By using alert()
B) By placing breakpoints and inspecting the variables in the DevTools
C) By adding more lines of code
D) By editing the CSS styles
Correct Answer: Option B) By placing breakpoints and inspecting the variables in the DevTools