WorksheetsWeb Sys ICS
Total questions: 20
Worksheet time: 10mins
A video conferencing app prefers UDP instead of TCP. Which is the strongest reason?
It always guarantees packet order
It minimizes lag
It auto-encrypts without extra effort
It requires fewer servers
A developer’s <img> loads blank space. What attribute is required to locate the file?
href
src
alt
id
A team adds <ul> with plain text but no <li>. Why is this invalid?
Only <li> is valid inside <ul>
Browsers automatically wrap text in <p>
It must be <ol> instead
Whitespace breaks the list
A visually impaired user benefits when <strong> is used. Why?
Text size doubles
Screen readers announce emphasis
It adds both bold and underline
It blocks inline CSS
A link opens in a fresh tab after clicking. Which attribute made this happen?
href
target
rel
alt
Why are HTML comments valuable in collaboration?
They hide sensitive passwords
They allow invisible developer notes
They add SEO keywords secretly
They reduce bandwidth
A banner with position: fixed remains visible while scrolling. Why?
It resets with screen refresh
It follows DOM order
It pins the element to the viewport
It hides automatically on small screens
Why is separating HTML from CSS considered best practice?
It stops inline images from loading
It makes content maintainable and accessible
It reduces tag count
It forces faster DNS lookups
A hover effect feels smooth because of CSS transition: 0.4s;. Why?
It caches scripts
It animates property changes gradually
It delays server requests
It increases frame rate
JavaScript is client-side mainly because:
It executes inside the user’s browser
It compiles before HTML loads
It runs only in databases
It loads before CSS
A modal closes with the “X” but not on outside click. What’s missing?
A window-level click handler
A CSS background color
An id for modal
A close button tag
A password box reveals each keystroke. Which is the correct input type?
hidden
password
text
secure
Which layer does JavaScript represent in the HTML-CSS-JS model?
Interactivity and logic
Page structure
Layout styling
Server storage
Which JS snippet best validates that a field is not empty?
Add hover in CSS
Inline onclick in HTML
if(input.value === "") alert("Required")
Force a background color
Which CSS ensures images resize automatically on smaller screens?
z-index: 10;
max-width: 100%;
position: absolute;
float: left;
An e-commerce website uses forms to collect customer data. The developer forgot to include the name attribute in <input> fields. What will happen during submission?
Data will not be sent to the server
Form will fail to load
Inputs will not accept typing
Values will be hidden from JavaScript
Why is inline CSS problematic in large projects?
Fonts fail to render
It increases maintenance difficulty
It breaks JavaScript code
It slows DNS lookups
A <script> in <head> without defer makes the page freeze. Why?
Scripts block HTML rendering until loaded
Scripts must have IDs
CSS blocks JavaScript
Head cannot hold <script>
Before submitting a form, the script checks if input is blank. What is the correct method?
Inline CSS validation
Checking .value with JavaScript
CSS hover rule
Adding onclick only
Which happens when a container has overflow: hidden;?
Scrollbars are removed, clipped content hidden
CSS animation halts
Text bolds automatically
Background fails to load
