How can jQuery enhance navigation menus in responsive design?
A). By hiding menus permanently
B). By creating dynamic show/hide functionality based on viewport size
C). By increasing menu complexity
D). By restricting menu items
How can jQuery complement CSS3 media queries in responsive design?
A). By replacing CSS3 entirely
B). By providing dynamic functionality and interactions
C). By increasing website load times
D). By limiting the use of media queries
Which jQuery event is triggered when the window is resized?
A). .resize()
B). .change()
C). .load()
D). .click()
How can jQuery be used to handle touch events on mobile devices?
A). By using .on('swipeleft') and .on('swiperight')
B). By using .click() and .hover()
C). By using .resize() and .load()
D). By using .submit() and .change()
Why is it important to handle touch events in responsive web design?
A). To increase server load
B). To enhance user experience on touch devices
C). To restrict access to desktop users
D). To decrease website loading speed
What does the following jQuery code do: $('.carousel').on('swipeleft', function() { $(this).carousel('next'); });
A). Enables swipe gestures to navigate the carousel
B). Disables carousel functionality
C). Increases carousel speed
D). Decreases carousel visibility
Which jQuery method can be used to animate smooth scrolling for anchor links?
A). .fadeIn()
B). .slideUp()
C). .animate()
D). .hide()
How can jQuery be used to load different image sizes based on the viewport?
A). By using .append()
B). By using .load()
C). By dynamically changing the image src attribute based on viewport size
D). By using .resize() to stretch images
Which jQuery method is used to detect changes in the viewport size?
A). .change()
B). .resize()
C). .scroll()
D). .toggle()
Why should images be optimized for different devices in responsive web design?
A). To improve loading times and performance
B). To decrease image quality
C). To increase server load
D). To restrict image visibility