Each question below shows the correct answer with a full explanation. Use these to build conceptual understanding before attempting a timed quiz.
Server-Side ProgrammingEasy
Q1. What is server-side rendering?
- A.A database operation for aggregating records
- B.A CSS technique for optimizing visual layout
- C.Rendering CSS on the server before delivery
- D.Generating HTML on the server before sending it✓ Correct
Explanation
SSR generates complete HTML pages on the server.
Report an error in this question
Server-Side ProgrammingEasy
Q2. Which language is commonly used for server-side programming?
- A.HTML
- B.Python✓ Correct
- C.CSS
- D.SVG
Explanation
Python is a popular server-side language used with Django and Flask.
Report an error in this question
Server-Side ProgrammingEasy
Q3. What is PHP?
- A.A relational database management system
- B.A CSS framework for responsive web layouts
- C.A server-side scripting language for web dev✓ Correct
- D.A JavaScript library for building interfaces
Explanation
PHP is a server-side scripting language designed for web development.
Report an error in this question
Server-Side ProgrammingEasy
Q4. What is Django?
- A.A CSS framework for responsive component design
- B.A NoSQL database for storing document collections
- C.A high-level Python web framework for rapid dev✓ Correct
- D.A JavaScript library for building front-end UIs
Explanation
Django is a Python web framework with built-in URL routing, ORM, and authentication.
Report an error in this question
Server-Side ProgrammingEasy
Q5. What is a template engine?
- A.A database tool for managing schema migrations
- B.A JavaScript framework for reactive UI development
- C.Software combining templates with data for HTML✓ Correct
- D.A CSS generator for building style sheets
Explanation
Template engines merge HTML templates with dynamic data to generate pages.
Report an error in this question
Server-Side ProgrammingEasy
Q6. What is the purpose of a controller in server-side MVC?
- A.To control the browser rendering engine
- B.To control CSS styles of page elements
- C.To handle requests, process data, and respond✓ Correct
- D.To control the database schema directly
Explanation
A controller receives requests, interacts with models, and selects views.
Report an error in this question
Server-Side ProgrammingEasy
Q7. What is a server-side session?
- A.Data stored on server to maintain user state✓ Correct
- B.A database backup for disaster recovery
- C.A CSS animation effect with keyframes
- D.A JavaScript variable in the global scope
Explanation
Server-side sessions store user-specific data on the server.
Report an error in this question
Server-Side ProgrammingEasy
Q8. What is Flask?
- A.A JavaScript runtime built on V8 engine
- B.A CSS container element for layouts
- C.A NoSQL database for document storage
- D.A lightweight Python web framework for apps✓ Correct
Explanation
Flask is a minimalist Python web framework.
Report an error in this question
Server-Side ProgrammingEasy
Q9. What is a request object in server-side programming?
- A.A database query for retrieving record sets
- B.A CSS class for styling specific elements
- C.An object containing incoming HTTP request data✓ Correct
- D.A JavaScript event fired by user interactions
Explanation
The request object contains information about the incoming HTTP request.
Report an error in this question
Server-Side ProgrammingEasy
Q10. What does npm start typically do?
- A.Starts CSS compilation for the build process
- B.Opens a browser window to the application URL
- C.Creates a new project with boilerplate code
- D.Runs the start script in package.json for server✓ Correct
Explanation
npm start executes the start script from package.json.
Report an error in this question
Server-Side ProgrammingMedium
Q11. What is the difference between SSR and CSR?
- A.They are identical in every rendering aspect
- B.SSR generates HTML on server; CSR generates in browser✓ Correct
- C.CSR is always faster in initial page load performance
- D.SSR is unable to use any JavaScript on the page
Explanation
SSR sends fully rendered HTML, while CSR renders content in the browser.
Report an error in this question
Server-Side ProgrammingMedium
Q12. What is a REST controller?
- A.A component handling HTTP requests for REST endpoints✓ Correct
- B.A database controller for managing query execution
- C.A sleep controller for pausing execution
- D.A CSS component for building styled page layouts
Explanation
A REST controller maps HTTP methods to handler functions for resource endpoints.
Report an error in this question
Server-Side ProgrammingMedium
Q13. What is server-side validation?
- A.Validating HTML syntax for standards compliance
- B.Validating CSS on the server for correctness
- C.Checking browser compatibility for CSS features
- D.Checking data on server to ensure requirements✓ Correct
Explanation
Server-side validation verifies data integrity on the server.
Report an error in this question
Server-Side ProgrammingMedium
Q14. What is the purpose of a .env file?
- A.To define HTML entities for special character display
- B.To style web pages with dynamic CSS variables
- C.To store environment-specific config like API keys✓ Correct
- D.To configure CSS preprocessor compilation options
Explanation
A .env file stores environment variables as key-value pairs.
Report an error in this question
Server-Side ProgrammingMedium
Q15. What is a cron job?
- A.A scheduled task running automatically at intervals✓ Correct
- B.A database backup run at a specific time point
- C.A JavaScript timeout for delaying code execution
- D.A CSS animation timer for scheduling effects
Explanation
A cron job is a time-based scheduler that runs scripts at specified intervals.
Report an error in this question
Server-Side ProgrammingMedium
Q16. What is the purpose of logging in server-side applications?
- A.Displaying logs visually in the browser console
- B.Recording events and errors for debugging and monitoring✓ Correct
- C.Creating log files that track CSS style changes
- D.Logging into user accounts through authentication
Explanation
Logging records application events, errors, and performance data.
Report an error in this question
Server-Side ProgrammingMedium
Q17. What is SSR hydration?
- A.A database operation for replicating table data
- B.A CSS technique for fluid responsive layout design
- C.Attaching JS event handlers to server-rendered HTML✓ Correct
- D.Adding water to servers for cooling systems
Explanation
Hydration is when client-side JavaScript takes over server-rendered HTML.
Report an error in this question
Server-Side ProgrammingMedium
Q18. What is a reverse proxy in server-side programming?
- A.A database proxy for managing connection pools
- B.A backwards web server that inverts requests
- C.A CSS preprocessor for compiling style files
- D.A server forwarding requests to backend servers✓ Correct
Explanation
A reverse proxy receives client requests and forwards them to backend servers.
Report an error in this question
Server-Side ProgrammingMedium
Q19. What is the purpose of body parsing middleware?
- A.To parse CSS files for style extraction
- B.To parse HTML body elements for rendering content
- C.To parse database queries for execution planning
- D.To extract and parse HTTP request bodies into objects✓ Correct
Explanation
Body parsing middleware parses incoming request bodies into JavaScript objects.
Report an error in this question
Server-Side ProgrammingMedium
Q20. What is the difference between stateless and stateful server-side apps?
- A.Stateless is always better for every use case scenario
- B.Stateless apps store no session data; stateful apps maintain it✓ Correct
- C.Stateful apps are completely unable to scale horizontally
- D.They are identical in session management behavior
Explanation
Stateless servers treat each request independently without remembering previous interactions.
Report an error in this question
Server-Side ProgrammingHard
Q21. What is the difference between process-based and event-driven server architectures?
- A.Process-based architectures cannot handle concurrent requests
- B.They are identical in concurrency approach
- C.Event-driven is always slower in handling concurrent requests
- D.Process-based creates threads per request; event-driven uses async I/O✓ Correct
Explanation
Process-based servers create threads per request, while event-driven use a single thread with non-blocking I/O.
Report an error in this question
Server-Side ProgrammingHard
Q22. What is the purpose of a load balancer?
- A.To balance database queries across shards
- B.To balance CSS style specificity weights
- C.To load JavaScript files in parallel
- D.To distribute traffic across multiple servers✓ Correct
Explanation
A load balancer distributes requests across multiple backend servers.
Report an error in this question
Server-Side ProgrammingHard
Q23. What is serverless computing?
- A.A client-side only architecture without any backend logic
- B.Computing without any servers whatsoever
- C.A static site generator for building HTML pages
- D.A cloud model with provider-managed infrastructure on demand✓ Correct
Explanation
Serverless lets developers run code without managing servers.
Report an error in this question
Server-Side ProgrammingHard
Q24. What is the difference between monolithic and microservices architecture?
- A.They are identical in application structure
- B.Monolithic is a single unit; microservices are independent✓ Correct
- C.Microservices are always faster in every scenario
- D.Monolithic applications are unable to scale at all
Explanation
Monolithic packages everything together, while microservices break it into independent services.
Report an error in this question
Server-Side ProgrammingHard
Q25. What is gRPC?
- A.A CSS framework for responsive web design
- B.A JavaScript library for building reactive interfaces
- C.A high-performance RPC framework using Protocol Buffers✓ Correct
- D.A relational database management system for apps
Explanation
gRPC uses Protocol Buffers for serialization and HTTP/2 for transport.
Report an error in this question
Server-Side ProgrammingHard
Q26. What is the circuit breaker pattern?
- A.A database locking mechanism for transaction isolation levels
- B.An electrical safety feature for server power
- C.A CSS layout pattern for organizing grid-based page elements
- D.A pattern preventing cascading failures by stopping failing requests✓ Correct
Explanation
The circuit breaker detects failures and prevents repeated attempts to a failing operation.
Report an error in this question
Server-Side ProgrammingHard
Q27. What is the difference between synchronous and asynchronous processing?
- A.Synchronous processing cannot handle any I/O operations
- B.Synchronous blocks until complete; asynchronous allows other ops✓ Correct
- C.They are identical in execution flow handling
- D.Asynchronous is always slower than synchronous code processing
Explanation
Synchronous blocks the thread, while asynchronous continues execution.
Report an error in this question
Server-Side ProgrammingHard
Q28. What is server-sent events (SSE)?
- A.A technology for pushing real-time updates over HTTP✓ Correct
- B.Server-side CSS events triggered by style changes
- C.A database trigger that fires on record modifications
- D.A JavaScript event system for handling user interactions
Explanation
SSE allows servers to push data to clients over a single HTTP connection.
Report an error in this question
Server-Side ProgrammingHard
Q29. What is the purpose of health check endpoints?
- A.Checking only database health and connection status
- B.Checking user health data in medical applications
- C.Checking CSS health for validation errors
- D.Providing a way for load balancers to verify server health✓ Correct
Explanation
Health check endpoints let load balancers route traffic away from unhealthy instances.
Report an error in this question
Server-Side ProgrammingHard
Q30. What is the Twelve-Factor App methodology?
- A.A database design pattern for normalized tables
- B.A CSS framework following twelve core principles
- C.A methodology for building scalable SaaS apps✓ Correct
- D.A 12-step coding tutorial for learning web dev
Explanation
The Twelve-Factor App defines best practices for building cloud-native applications.
Report an error in this question