Have a question?
Message sent Close
time left:
:
:

Students Final Assessment

Submit quiz
Once you submit, you will no longer be able to change your answers. Are you sure you want to submit the quiz?
1.

You are building a real-time chat app. Why choose WebSockets over HTTP polling?

C. Better SEO
D. Stronger encryption
B. Reduced latency and persistent connection
A. Easier authentication
2.

React Rendering

Your React component re-renders unnecessarily when props don’t change. What should you use?

B. useCallback
C. useEffect
D. useRef
A.React.memo
3.

A database must handle complex joins and enforce strict data relationships between tables. Which choice best satisfies this requirement?

 

 

C. Relational schema
B. Document-based storage
D. In-memory cache
A. Key-value storage
4.

 A backend service must handle thousands of concurrent requests efficiently without blocking while waiting for database responses. Which design choice best supports this?

 

C. Event-driven, non-blocking execution
D. Multi-threading per request
B. Blocking I/O operations
A. Synchronous request handling
5.

A user interface updates automatically when underlying data changes, without manually manipulating the DOM. What enables this behavior?

D. Reactive rendering
C. Static HTML
B. Two-way data binding
A. Template literals
6.

A developer structures the app so that business logic, data handling, and presentation are clearly separated. What is the main benefit of this approach?

 

C. Smaller file sizes
B. Easier maintenance and scalability
D. Automatic testing coverage
A. Faster internet speed
7.

In an MVC application, where should business logic reside?

 

 

B. Controller
C. Model
D. Router
A. View
8.

A deployment pipeline automatically runs tests and blocks releases if any test fails.
What is the primary benefit?

 

B. Smaller repositories
C. Less documentation
A. Faster coding
D. Reduced production errors
9.

Your API must clearly define how clients should interact with resources using standard conventions. What principle ensures this consistency?

B. Stateless communication
C. Hard-coded responses
A. Tight coupling
D. UI-driven logic
10.

A developer exposes sensitive credentials directly in the frontend bundle, which becomes visible in the browser. What is the correct preventive measure?

 

 

A. Encrypt the JavaScript files
B. Store secrets in environment variables on the server
D. Obfuscate the HTML
C. Use stronger passwords
11.

Your application state must be shared across multiple deeply nested components without passing props at every level. What is the best solution?

 

 

B. Browser localStorage
C. Direct DOM manipulation
D. Centralized state management
A. Global CSS variables
12.

You want to release breaking API changes without affecting existing clients. What’s the best approach?

 

 

D. Use query parameters
A.  Version the API (e.g. /v2)
B. Remove old endpoints
C. Change database schema
13.

 A button on a web page should display a confirmation message only after the user clicks it, without reloading the page. Which approach best achieves this?

 

 

C. Client-side event handling
B. Server-side rendering
D. HTML form submission
A. Inline CSS styling
14.

A request updates only one field of an existing resource instead of replacing the entire object. Which HTTP method is most appropriate?

C. PATCH
A. POST
B. PUT
D. DELETE
15.

You need to validate API endpoints automatically after every code change to ensure they still behave correctly. What is the best practice?

D. Logging requests only
B. Unit testing UI components
A. Manual browser testing
C. Automated API tests
16.

You need to create a responsive layout where items wrap automatically based on screen size. Which CSS solution is best?

 

 

C. Flexbox with flex-wrap
D. Inline-block elements
A. Float layout
B. CSS Grid with fixed columns
17.

A landing page looks correct on desktop but breaks on mobile because elements overflow the screen. You need a solution that adapts layouts based on screen size without duplicating markup. What is the best approach?

B. Use fixed pixel widths for all elements
D. Increase the viewport width
C. Load a separate mobile HTML file
A. Apply media queries with flexible units
18.

Your app stores user profiles with varying fields that may change frequently over time. Which data storage approach is most flexible?

 

 

C. Flat files
A. Fixed-schema tables
B. Document-oriented storage
D. CSV files
19.

An API returns different responses based on whether a requested resource exists or not. Which status code should be returned when the resource is missing?

 

 

A. 404
B. 201
C. 200
D. 500
20.

An endpoint is designed to fetch a list of users. Calling it multiple times with the same request should not change server data. Which HTTP method best fits this behavior?

 

 

B. PUT
D. GET
A. POST
C. PATCH
21.

A component re-renders unnecessarily whenever its parent updates, even though its data hasn’t changed. This is causing performance issues.
What is the most appropriate fix?

D. Convert it to a class-based component
A. Move the component to a different file
B. Use memoization to prevent unnecessary renders
C. Replace the component with plain HTML
22.

You want to reduce the number of database queries made during repeated API requests for the same data. What strategy helps most?

 

 

D. More endpoints
A. Client-side validation
C. Larger payloads
B. Server-side caching
23.

An application works on one machine but fails on another due to environment differences. What is the best way to ensure consistent behavior everywhere?

C. Containerized environments
D. Hard-coded paths
B. Virtual machines only
A. Manual setup guides
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23