Q11easyWhat is the difference between State and Props in React?AProps are private; State is public.BProps are for JS; State is for HTML.CProps are data passed *into* a component (read-only); State is data *managed inside* the component (mutable).DThere is no difference.Check AnswerReveal Answer & ExplanationDiscuss on Board
Q12easyWhat is the main advantage of using TypeScript with modern frameworks like React or Angular?AIt removes the need for CSS.BIt adds "Type Safety," catching bugs during development that would otherwise only show up at runtime.CIt makes the browser run code faster.DIt allows the use of Python in the browser.Check AnswerReveal Answer & ExplanationDiscuss on Board
Q13easyWhat is One-Way Data Binding (common in React)?AData cannot be transferred between components.BData flows in one direction, from the Parent component to the Child component via props.CData can only flow from the database to the browser.DThe database is read-only.Check AnswerReveal Answer & ExplanationDiscuss on Board
Q14easyWhat is the main benefit of Server-Side Rendering (SSR)? <li v-for="item in items"> {{ item.name }} </li> AIt improves initial load time and is better for Search Engine Optimization (SEO).BIt allows the browser to run without JavaScript.CIt stores all user passwords on the server.DIt makes the browser load slower.Check AnswerReveal Answer & ExplanationDiscuss on Board
Q15easyWhat does the "Hooks" feature in React allow you to do?AUse state and other React features (like lifecycle methods) inside functional components.BAutomatically deploy the app to the cloud.CPerform API requests in the browser.DWrite CSS directly in the JS file.Check AnswerReveal Answer & ExplanationDiscuss on Board