Lesson 1.3.4a

1.3.4a HTML, CSS, JavaScript and client-side and server-side processing Quiz: OCR Computer Science, Unit 3

20 questions

In partnership with Revision Ninja

Lesson 1.3.4a, HTML, CSS, JavaScript and client-side and server-side processing: 20 multiple choice questions for the OCR Computer Science (H446), Unit 3: Exchanging data, written with Revision Ninja.

Host it live on the board and students join with a game code on their own devices, or revise alone with Free Play. The answers are revealed in the game.

Host this setFree Play

The 20 questions

  1. What primary role does HTML play in web page design?

    • Adding dynamic behaviour
    • Processing database queries
    • Styling visual elements
    • Defining content structure
  2. What primary role does CSS play in web page development?

    • Client-side script execution
    • Database query execution
    • Structuring semantic data
    • Visual presentation styling
  3. Which programming language provides dynamic behaviour directly inside the user's web browser?

    • PHP
    • JavaScript
    • SQL
    • HTML
  4. Which HTML tag is used to create the highest level heading?

    • <head>
    • <header>
    • <h1>
    • <h6>
  5. Which CSS selector prefix targets an element with a specific ID attribute?

    • Hash symbol
    • Dot symbol
    • At symbol
    • Ampersand symbol
  6. Which CSS selector prefix targets elements belonging to a specific class?

    • Colon symbol
    • Period symbol
    • Hash symbol
    • Semicolon symbol
  7. Where is client-side code executed when a web page is loaded?

    • Database server
    • User's web browser
    • Web hosting server
    • Domain Name Server
  8. What is a major advantage of using client-side processing for form validation?

    • Hides source code
    • Guarantees database security
    • Prevents code tampering
    • Reduces server load
  9. Why must critical security validation always be performed on the server?

    • Faster execution
    • Client-side bypass
    • Easier debugging
    • Lower bandwidth
  10. Which HTML element attribute connects a button to a JavaScript function upon clicking?

    • src
    • onclick
    • href
    • action
  11. Which HTML tag links an external CSS stylesheet to an HTML document?

    • <style>
    • <css>
    • <script>
    • <link>
  12. What does a web server generate and send back after executing server-side scripts?

    • Raw server memory
    • PHP source code
    • HTML code
    • Database SQL code
  13. In the CSS box model, what defines the space between content and its border?

    • Padding
    • Outline
    • Width
    • Margin
  14. In the CSS box model, what defines the space outside an element's border?

    • Margin
    • Padding
    • Gap
    • Indent
  15. Which type of CSS styling takes the highest precedence when resolving styling conflicts?

    • Browser default CSS
    • Inline CSS
    • Internal CSS
    • External CSS
  16. Which JavaScript DOM method selects an element based on its unique identifier?

    • document.selectClass()
    • document.queryID()
    • document.getElementByTag()
    • document.getElementById()
  17. Which language is primarily used for server-side processing in web applications?

    • PHP
    • HTML
    • CSS
    • JSON
  18. What is a primary reason to choose server-side processing over client-side processing?

    • Offloading computation
    • Accessing central databases
    • Instant user feedback
    • Reducing server bandwidth
  19. Which HTML attribute specifies the file path of an image inside an img tag?

    • src
    • alt
    • link
    • href
  20. What happens if JavaScript is disabled in a user's web browser?

    • CSS styles disappear
    • HTML stops loading
    • Client-side scripts fail
    • Server-side scripts fail

All OCR Computer Science quizzes