Notice: Due to an ongoing migration of our storage and publishing system, material requested since last month will not be uploaded for the time being, and new requests are paused. All existing notes remain available.

Unit 6 MCQs Real-world applications

ECE181 — Introduction To Python 60 questions. Pick an option to check it.

Read the notes Subjective questions

0 of 60 answered 0 right 0 wrong , 60 left

  1. Question 1 of 60 OpenCV-based image operations Easy

    Which Python library is primarily used for computer vision and image processing tasks?

  2. Question 2 of 60 OpenCV-based image operations Easy

    Which function is used to read an image from a file in OpenCV?

  3. Question 3 of 60 OpenCV-based image operations Easy

    In OpenCV, which color format are images loaded in by default?

  4. Question 4 of 60 OpenCV-based image operations Easy

    Which OpenCV function displays an image in a window?

  5. Question 5 of 60 PyGame-based gaming creation Easy

    PyGame is a Python library mainly used for creating what type of applications?

  6. Question 6 of 60 PyGame-based gaming creation Easy

    Which function must be called to start using PyGame's modules?

  7. Question 7 of 60 PyGame-based gaming creation Easy

    In PyGame, which object represents the main window or drawing surface?

  8. Question 8 of 60 PyGame-based gaming creation Easy

    Which PyGame concept is typically used to continuously update the game and handle events?

  9. Question 9 of 60 web-scraping-based url access Easy

    Which Python library is commonly used to send HTTP requests to access a URL?

  10. Question 10 of 60 web-scraping-based url access Easy

    Which library is widely used to parse HTML content during web scraping?

  11. Question 11 of 60 web-scraping-based url access Easy

    What does the term "web scraping" mean?

  12. Question 12 of 60 web-scraping-based url access Easy

    An HTTP status code of 200 typically indicates what?

  13. Question 13 of 60 data visualization Easy

    Which Python library is one of the most widely used for creating basic plots and charts?

  14. Question 14 of 60 data visualization Easy

    Which chart type is best suited for showing trends in data over time?

  15. Question 15 of 60 data visualization Easy

    Which library is built on top of Matplotlib and provides attractive statistical graphics?

  16. Question 16 of 60 data visualization Easy

    Which chart is most appropriate for showing the proportion of parts to a whole?

  17. Question 17 of 60 discussion on advanced toolboxes in python Easy

    Which library is commonly used for numerical computing and working with arrays in Python?

  18. Question 18 of 60 discussion on advanced toolboxes in python Easy

    Which Python library is primarily used for data analysis and handling tabular data?

  19. Question 19 of 60 demonstration of real-world applications Easy

    Which of the following is a real-world application where Python is commonly used?

  20. Question 20 of 60 storytelling Easy

    In the context of data, what does "data storytelling" mainly involve?

  21. Question 21 of 60 OpenCV-based image operations Medium

    In OpenCV, when you read an image using cv2.imread(), in what channel order are the pixel values stored by default?

  22. Question 22 of 60 OpenCV-based image operations Medium

    You want to convert a color image img to grayscale in OpenCV. Which line accomplishes this?

  23. Question 23 of 60 OpenCV-based image operations Medium

    What does the shape attribute img.shape return as (480, 640, 3) indicate about the image?

  24. Question 24 of 60 PyGame-based gaming creation Medium

    In a typical PyGame program, which function must be called first to start up all imported PyGame modules?

  25. Question 25 of 60 PyGame-based gaming creation Medium

    Inside a PyGame main loop, which call is responsible for actually updating the full screen with everything drawn?

  26. Question 26 of 60 PyGame-based gaming creation Medium

    Why is pygame.time.Clock() combined with clock.tick(60) used in a game loop?

  27. Question 27 of 60 PyGame-based gaming creation Medium

    In PyGame, how do you typically detect that the user clicked the window's close button?

  28. Question 28 of 60 web-scraping-based url access Medium

    When scraping a webpage in Python, which combination is most commonly used to fetch the HTML and then parse it?

  29. Question 29 of 60 web-scraping-based url access Medium

    After response = requests.get(url), which attribute do you check to confirm the request succeeded (HTTP 200)?

  30. Question 30 of 60 web-scraping-based url access Medium

    Using BeautifulSoup, which method returns a list of all <a> anchor tags on a page?

  31. Question 31 of 60 web-scraping-based url access Medium

    A website's robots.txt disallows scraping certain paths. What is the correct interpretation for a responsible scraper?

  32. Question 32 of 60 data visualization Medium

    In Matplotlib, which plot type is most appropriate for showing the relationship between two continuous numeric variables?

  33. Question 33 of 60 data visualization Medium

    You want to visualize the distribution and frequency of a single continuous variable such as exam scores. Which chart is best?

  34. Question 34 of 60 data visualization Medium

    In Matplotlib, what is the purpose of calling plt.show() at the end of a plotting script?

  35. Question 35 of 60 data visualization Medium

    Which library is built on top of Matplotlib and provides high-level functions for attractive statistical graphics?

  36. Question 36 of 60 discussion on advanced toolboxes in python Medium

    Which Python library is primarily used for numerical computing with efficient multi-dimensional array operations?

  37. Question 37 of 60 discussion on advanced toolboxes in python Medium

    A data analyst needs to load a CSV file into a labeled, tabular data structure with columns. Which library and object are most appropriate?

  38. Question 38 of 60 discussion on advanced toolboxes in python Medium

    Which pair correctly matches a Python toolbox to its main purpose?

  39. Question 39 of 60 demonstration of real-world applications Medium

    A team builds a Python system that detects faces in a live camera feed. Which library is the natural core of this application?

  40. Question 40 of 60 demonstration of real-world applications Medium

    A company wants to automatically collect daily product prices from several e-commerce sites into a spreadsheet for analysis. Which workflow best fits?

  41. Question 41 of 60 OpenCV-based image operations Hard

    In OpenCV, you load an image with cv2.imread('img.png') and display it using Matplotlib's plt.imshow(). The colors appear distorted (blues look red). What is the root cause and correct fix?

  42. Question 42 of 60 OpenCV-based image operations Hard

    You apply a averaging (box) blur kernel to an image, then apply the same kernel again. Compared to a single box blur, the two-pass approach:

  43. Question 43 of 60 OpenCV-based image operations Hard

    When performing edge detection with cv2.Canny(img, threshold1, threshold2), what best describes the role of the two thresholds in hysteresis?

  44. Question 44 of 60 PyGame-based gaming creation Hard

    In a PyGame loop, a developer moves a sprite by adding a fixed number of pixels each frame without using clock.tick(). On faster hardware the object moves too quickly. What is the correct fix?

  45. Question 45 of 60 PyGame-based gaming creation Hard

    A PyGame program's window becomes unresponsive and shows "Not Responding" during gameplay. Which omission most likely causes this?

  46. Question 46 of 60 PyGame-based gaming creation Hard

    For pixel-perfect collision between two moving sprites in PyGame, which approach is most accurate but computationally heavier than rectangle collision?

  47. Question 47 of 60 web-scraping-based url access Hard

    You scrape a page with requests.get(url) and BeautifulSoup, but the target data is missing from the returned HTML even though it appears in the browser. What is the most probable reason?

  48. Question 48 of 60 web-scraping-based url access Hard

    Which statement about robots.txt and web scraping is most accurate?

  49. Question 49 of 60 web-scraping-based url access Hard

    A scraper repeatedly hits a site and starts receiving HTTP 429 responses. Which combination best addresses this while remaining respectful?

  50. Question 50 of 60 data visualization Hard

    You plot data spanning to on a linear y-axis and small values become invisible near zero. Which change best reveals structure across all magnitudes?

  51. Question 51 of 60 data visualization Hard

    When designing a chart for viewers who may be color-blind, which practice is most effective?

  52. Question 52 of 60 data visualization Hard

    A bar chart of average sales per region hides the fact that one region has a bimodal distribution. Which visualization better exposes this within-group structure?

  53. Question 53 of 60 data visualization Hard

    In Matplotlib, what is the key difference between the stateful pyplot interface and the object-oriented (Axes) interface for complex multi-panel figures?

  54. Question 54 of 60 discussion on advanced toolboxes in python Hard

    You perform an element-wise operation on two large arrays. Why is NumPy vectorization typically much faster than a Python for loop?

  55. Question 55 of 60 discussion on advanced toolboxes in python Hard

    A Pandas operation df[df['a'] > 0]['b'] = 5 produces a SettingWithCopyWarning and the change may not persist. What is the correct fix?

  56. Question 56 of 60 discussion on advanced toolboxes in python Hard

    When training a scikit-learn model, why should scaling (e.g., StandardScaler) be fit only on the training data and not on the full dataset before splitting?

  57. Question 57 of 60 storytelling Hard

    In data storytelling, a stakeholder audience needs to grasp one key takeaway quickly. Which approach best supports this goal?

  58. Question 58 of 60 storytelling Hard

    A chart truncates its y-axis to start at instead of , making a change look dramatic. In the context of ethical storytelling, this is best described as:

  59. Question 59 of 60 demonstration of real-world applications Hard

    You must process a live video stream, detect motion, and log events to a dashboard. Which combination of Python tools maps most appropriately to each subtask?

  60. Question 60 of 60 demonstration of real-world applications Hard

    A pipeline scrapes prices hourly, stores them, and predicts trends. To keep it maintainable and avoid re-scraping unchanged pages, which design choice is most sound?

That's unit 6

Answer a few questions and your score shows up here.