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?

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

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

 

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

CSS Performance

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

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

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

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

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

 

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

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

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

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

Why use Docker in development?

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

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

 

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

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

 

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

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

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

Why should secrets be stored in environment variables?

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

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

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

 

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

React Rendering

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

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

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

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

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

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

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

 

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

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

 

 

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

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

 

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

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

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

 

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

Why are Docker containers lighter than VMs?

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

In an MVC application, where should business logic reside?

 

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

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

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

 

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

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

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

 

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

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

 

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

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

 

C. Better SEO
B. Reduced latency and persistent connection
D. Stronger encryption
A. Easier authentication
  • 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