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 to create a responsive layout where items wrap automatically based on screen size. Which CSS solution is best?

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

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

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

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

 

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

Why are Docker containers lighter than VMs?

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

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

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

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

 

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

In an MVC application, where should business logic reside?

 

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

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

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

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

 

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

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

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

 

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

Why use Docker in development?

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

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

 

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

CSS Performance

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

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

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

C. Automating workflows
D. Monitoring UI performance
B. Managing databases
A. Writing backend code
17.

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

 

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

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

 

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

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

 

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

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

 

 

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

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

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

React Rendering

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

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

Why should secrets be stored in environment variables?

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

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

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

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

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

 

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

Why should integration tests use a test database?

 

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

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

 

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

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

 

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

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

 

A. Supports only static files
B. Built-in CI, CDN, and serverless functions
C. Requires Docker
D. No environment variables
  • 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