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

Instructor's Assessment test

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 need real-time validation while a user types. Which approach is ideal?

A. Uncontrolled inputs
C. DOM queries
D. Form submission only
B. Controlled components
2.

What problem does Socket.IO solve on top of WebSockets?

 

C. File uploads
D. Authentication
B. Automatic reconnection and fallbacks
A. Database persistence
3.

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

 

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

Before deploying a full-stack app, what is MOST critical?

 

 

B. Writing more features
A. Logging, monitoring, and error handling
D. Removing tests
C. Increasing UI animations
5.

You need strict relationships and transactions for financial data. Which database should you choose?

 

A. MongoDB
C.Elasticsearch
B. Firebase
D. PostgreSQL
6.

CSS Performance

A webpage feels slow due to heavy style recalculations. Which CSS practice helps improve performance?

C. Inline styles
D. Using simple class selectors
A. Deeply nested selectors
B. Using !important everywhere
7.

You are building a form for a public-facing application. To improve accessibility for screen readers, which HTML practice is MOST appropriate?

B. Adding aria-hidden="true" to input fields
A. Using
elements for all form fields
C. Associating
D. Using placeholders instead of labels
8.

You want to log every incoming request globally. Where should this logic go?

 

D. In the database layer
A. Inside route handlers
B. In the controller
C. As an Express middleware
9.

A client wants to update only one field of a resource. Which HTTP method is most appropriate?

 

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

In an MVC application, where should business logic reside?

 

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

A deeply nested component needs access to global authentication data. What is the BEST solution?

 

B. Local state in each component
D. Using refs
C. Context API or Redux
A. Passing props through all components
12.

Why use Docker in development?

C. Better UI
D. Automatic scaling
B. Same environment across machines
A. Faster internet
13.

You are storing chat messages with varying schemas. Which database fits best?

 

B. MySQL
A. PostgreSQL
C. MongoDB
D. Redis
14.

Your Node.js app becomes slow under heavy traffic. Which Node.js module can help you scale?

B. Path
C. Cluster
D. HTTP
A. OS
15.

Your pipeline fails if tests don’t pass. What principle does this enforce?

 

A. Manual deployment
B. Continuous delivery
D. Continuous integration
C. Agile methodology
16.

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

 

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

Why should secrets be stored in environment variables?

D. Improved security
B. Easier debugging
A. Faster access
C. Better performance
18.

Why should integration tests use a test database?

 

C. To avoid affecting production data
A. Faster development
D. To reduce test files
B. Better UI testing
19.

Why should JWTs NOT be stored in localStorage for sensitive apps?

A. Limited size
D. They expire too fast
C. Vulnerable to XSS attacks
B. Difficult to decode
20.

A function runs repeatedly during scroll events, causing lag. What should you implement?

 

B. Recursion
A. Memoization
D. Debounding
C. Closures
21.

React Rendering

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

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

You are fetching data from an API and need to handle errors gracefully. Which approach is best?

 

C. Synchronous XMLHttpRequest
D. Using setTimeout
A. Callback functions only
B. try...catch with async/await
23.

Why are Docker containers lighter than VMs?

D. They run without an OS
A. They use less JavaScript
B. They share the host OS kernel
C. They don’t need RAM
24.

A user sends invalid input data to your API. What status code should you return?

A. 200
D. 500
B. 400
C. 401
25.

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

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

Why is Vercel ideal for React and Next.js apps?

 

B. Built-in CI, CDN, and serverless functions
D. No environment variables
A. Supports only static files
C. Requires Docker
27.

A bug occurs because a variable declared inside a loop is accessible outside it. Which keyword likely caused this?

B. let
C. const
D. function
A. var
28.

Your query performance is slow on large datasets. What improves it?

 

C. Increasing server RAM only
A. Removing joins
D. Using more APIs
B. Adding indexes
29.

You want to automatically test both the request and the database response in an Express API. What tools are best?

 

D. Postman
C. Cypress only
B. Jest and Supertest
A. Mocha and Chai
30.

 What is the main role of GitHub Actions in a project?

D. Monitoring UI performance
C. Automating workflows
B. Managing databases
A. Writing backend code
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30