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.
The 20 questions
-
What primary role does HTML play in web page design?
- Adding dynamic behaviour
- Processing database queries
- Styling visual elements
- Defining content structure
-
What primary role does CSS play in web page development?
- Client-side script execution
- Database query execution
- Structuring semantic data
- Visual presentation styling
-
Which programming language provides dynamic behaviour directly inside the user's web browser?
- PHP
- JavaScript
- SQL
- HTML
-
Which HTML tag is used to create the highest level heading?
- <head>
- <header>
- <h1>
- <h6>
-
Which CSS selector prefix targets an element with a specific ID attribute?
- Hash symbol
- Dot symbol
- At symbol
- Ampersand symbol
-
Which CSS selector prefix targets elements belonging to a specific class?
- Colon symbol
- Period symbol
- Hash symbol
- Semicolon symbol
-
Where is client-side code executed when a web page is loaded?
- Database server
- User's web browser
- Web hosting server
- Domain Name Server
-
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
-
Why must critical security validation always be performed on the server?
- Faster execution
- Client-side bypass
- Easier debugging
- Lower bandwidth
-
Which HTML element attribute connects a button to a JavaScript function upon clicking?
- src
- onclick
- href
- action
-
Which HTML tag links an external CSS stylesheet to an HTML document?
- <style>
- <css>
- <script>
- <link>
-
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
-
In the CSS box model, what defines the space between content and its border?
- Padding
- Outline
- Width
- Margin
-
In the CSS box model, what defines the space outside an element's border?
- Margin
- Padding
- Gap
- Indent
-
Which type of CSS styling takes the highest precedence when resolving styling conflicts?
- Browser default CSS
- Inline CSS
- Internal CSS
- External CSS
-
Which JavaScript DOM method selects an element based on its unique identifier?
- document.selectClass()
- document.queryID()
- document.getElementByTag()
- document.getElementById()
-
Which language is primarily used for server-side processing in web applications?
- PHP
- HTML
- CSS
- JSON
-
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
-
Which HTML attribute specifies the file path of an image inside an img tag?
- src
- alt
- link
- href
-
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
Related quizzes
- Compression, encryption and hashing Quiz · 1.3.1 · 20 questions
- Database design: keys, entity relationships, normalisation and indexing Quiz · 1.3.2a · 20 questions
- SQL, data management, referential integrity and ACID transactions Quiz · 1.3.2b · 20 questions
- Network characteristics, protocols, TCP/IP, DNS and protocol layering Quiz · 1.3.3a · 20 questions
- LANs, WANs, switching, network hardware, security and client-server Quiz · 1.3.3b · 20 questions
- Search engine indexing and the PageRank algorithm Quiz · 1.3.4b · 20 questions
- Processor components: ALU, control unit, registers and buses Quiz · 1.1.1a · 20 questions
- Operating systems and memory management Quiz · 1.2.1a · 20 questions
- Primitive data types and binary number representation Quiz · 1.4.1a · 20 questions
- Data Protection Act 1998 and Computer Misuse Act 1990 Quiz · 1.5.1a · 20 questions