What is the output of print(type({})) in Python 3.12? A) <class 'dict'> B) <class 'set'> C) <class 'tuple'> D) <class 'list'> Correction: A is correct. {} creates an empty dictionary. An empty set requires set() . This is a classic trick question updated for modern Python.
Which of the following HTTP headers is most effective at preventing Cross-Site Scripting (XSS) in modern browsers? A) X-Frame-Options B) Content-Security-Policy C) Cache-Control D) ETag Correction: B is correct. While X-Frame-Options prevents clickjacking, Content-Security-Policy (CSP) is the definitive, updated standard for XSS mitigation because it allows you to whitelist trusted sources of scripts. (C and D affect caching only). qcm informatique corrige pdf updated
Check out our companion article: "Top 10 GitHub Repositories for French Computer Science QCMs (2025 Updates)" and download our free, community-verified "QCM Informatique Corrige - Edition 2025" PDF using the form below. What is the output of print(type({})) in Python 3