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 are building a form for a public-facing application. To improve accessibility for screen readers, which HTML practice is MOST appropriate?

A. Using <div> elements for all form fields
B. Adding aria-hidden="true" to input fields
C. Associating <label> elements with inputs using for
D. Using placeholders instead of labels
2.

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

CSS Performance

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

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

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

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

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

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

 

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

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

 

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

React Rendering

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

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

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

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

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

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

 

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

In an MVC application, where should business logic reside?

 

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

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

 

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

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

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

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

 

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

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

 

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

Why should integration tests use a test database?

 

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

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

 

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

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

 

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

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

 

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

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

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

 

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

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

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

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

 

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

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

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

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

Why should secrets be stored in environment variables?

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

Why use Docker in development?

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

Why are Docker containers lighter than VMs?

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

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

 

 

A. Logging, monitoring, and error handling
B. Writing more features
C. Increasing UI animations
D. Removing tests
  • 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