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.

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

 

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

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

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

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

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

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

 

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

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

 

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

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

 

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

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

 

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

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
9.

Why should integration tests use a test database?

 

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

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

 

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

Why use Docker in development?

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

Why are Docker containers lighter than VMs?

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

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

 

 

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

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

 

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

You need real-time validation while a user types. Which approach is ideal?

D. Form submission only
C. DOM queries
B. Controlled components
A. Uncontrolled inputs
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
A. Float layout
B. CSS Grid with fixed columns
D. Inline-block elements
17.

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

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

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

 

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

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

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

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

 

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

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

 

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

CSS Performance

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

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

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

 

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

In an MVC application, where should business logic reside?

 

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

 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
26.

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

 

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

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

 

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

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

 

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

Why should secrets be stored in environment variables?

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

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

C. 401
B. 400
D. 500
A. 200
  • 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